Ray, Versions 2.6.3, 2.8.0
Ray versions 2.6.3 and 2.8.0 lack authentication on the Dashboard and Client APIs, allowing unauthenticated attackers to submit jobs and execute arbitrary OS commands. A separate SSRF in the Dashboard's log_proxy endpoint and a path traversal in the logs/file endpoint let attackers retrieve AWS IAM credentials and sensitive files such as SSH private keys.
Published on bishopfox.com
The following document describes identified vulnerabilities in the Ray application version 2.6.3 and 2.8.0.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Ray Dashboard and Client APIs were designed without authentication or authorisation, and the log_proxy and logs/file endpoints failed to validate user-supplied URLs and file paths.
Impact
An unauthenticated remote attacker could execute arbitrary commands on all cluster nodes, retrieve highly privileged AWS IAM credentials, and read sensitive files such as SSH private keys; the text notes that authentication is not yet supported in Ray as of the update.
What the attacker needed
Network access to Ray Dashboard port 8265; no authentication required
The fix
Anyscale released Ray 2.8.1 to address the SSRF and insecure input validation issues, but authentication was not yet supported; users should deploy clusters in isolated networks and require authentication via a reverse proxy if the dashboard must be exposed.
How it was found
- Identify the Ray Dashboard API endpoint, which listens on TCP port 8265 by default.
- Craft a JSON job submission containing an arbitrary operating system command as the entrypoint.
- Send the JSON to the jobs API endpoint without authentication.
- Retrieve the output of the executed command from the job logs endpoint.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Ray is a tool for running distributed computing jobs. The report found that its management interfaces had no login requirement, so anyone who could reach them could run commands on the servers. It also found two other flaws that let attackers read files and cloud credentials from the servers.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.