Skip to content
RCE Advisory Advanced CVE-2022-36006

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.

p Follow

Originally disclosed on GitHub Security Lab

A remote code execution (RCE) vulnerability in the Arvados Workbench allowed authenticated attackers to execute arbitrary code via specially crafted JSON payloads.

p-, on GitHub Security Lab

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

  1. Authenticate to the Arvados Workbench and obtain a valid CSRF token and session cookie.
  2. Send a GET request to the search endpoint with a crafted filters parameter containing a deserialisation gadget chain.
  3. 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.

More by p

View all

49 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.