GHSL-2022-063: Remote Code Execution (RCE) in Arvados Workbench - CVE-2022-36006
The Arvados Workbench deserialised untrusted JSON using Oj.load without a restricting mode, allowing arbitrary Ruby objects to be constructed. An authenticated attacker could send a crafted filter query to the search endpoint and execute arbitrary code on the server.
A remote code execution (RCE) vulnerability in the Arvados Workbench allowed authenticated attackers to execute arbitrary code via specially crafted JSON payloads.
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 report has not been written yet. The Original tab links to the source.
How it worked
Impact
This issue may lead to Remote Code Execution (RCE).
What the attacker needed
Authenticated user account; valid CSRF token and session cookie
How it was found
- Authenticate to the Arvados Workbench and obtain a valid CSRF token and session cookie.
- Send a GET request to the search endpoint with a crafted filters parameter containing a deserialisation gadget chain.
- The server deserialises the JSON and executes the gadget chain, creating a file as proof of code execution.
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 report has not been written yet. The Original tab links to the source.
The application turned JSON data from users into full Ruby objects without checking what kind of objects were allowed. An attacker with a valid account could send a special JSON payload that, when converted, triggered existing Ruby code to run commands on the server. This is called insecure deserialisation.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.