GHSL-2024-069: Unsafe YAML Deserialization in ngrinder
The endpoint /script/api/github/validate remained vulnerable to unsafe YAML deserialization because user-controlled YAML was passed to YamlBeans' YamlReader#read. An attacker could potentially execute code if a suitable gadget chain exists on the classpath, though the report notes it seemed not exploitable in an impactful manner.
A retest of GHSL-2023-239/CVE-2024-28212 uncovered that the endpoint /script/api/github/validate of ngrinder remained susceptible to unsafe YAML deserialization. However, it seemed not to be exploitable in an impactful manner.
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 up to remote code execution in case an attacker is able to find appropriate gadgets on ngrinder’s classpath, but the report notes it seemed not to be exploitable in an impactful manner.
What the attacker needed
No authentication required; suitable gadget on classpath
How it was found
- Send a POST request to /script/api/github/validate with a JSON body containing a 'content' field.
- The content field holds YAML that specifies a class name and properties to set.
- The server deserializes the YAML using YamlBeans, instantiating the specified class and calling setters.
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.
YAML is a data format like JSON. Deserialization is turning that data back into objects in the program. If the program lets the data choose which classes to create, an attacker can sometimes pick a class that runs code when set up in a certain way, leading to remote code execution.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.