Full Disclosure mailing list archives
The QRadar RemoteJavaScript Servlet deserialises base64-encoded Java objects from JSON-RPC arguments without any checks. An authenticated user can send a crafted serialised object to trigger a denial of service, change system settings, or execute arbitrary code.
seclists.org
Published on seclists.org
An attacker can exploit this vulnerability by creating a specially crafted (serialized) object, which amongst other things can result in a denial of service, change of system settings, or execution of arbitrary code.
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
The Servlet passes user-supplied base64 strings to Apache Commons Lang SerializationUtils.deserialize without validating the resulting object, so any class on the classpath can be instantiated.
Impact
An authenticated user could cause a denial of service, change system settings, or execute arbitrary code as the nobody user; the Servlet is only reachable by authenticated users.
What the attacker needed
Authenticated QRadar user account; network access to the Servlet URLs
The fix
IBM released QRadar 7.4.1 Patch 1 and 7.3.3 Patch 5, which resolve the issue.
How it was found
- Authenticate to QRadar and reach one of the RemoteJavaScript Servlet URLs.
- Send a JSON-RPC request whose method is qradar.validateChangesAssetConfiguration, which takes a java.util.List argument.
- Supply the argument as a base64-encoded serialised Jython gadget that sets the console.enableExecuteCommand property to true.
- Call the qradar.executeCommand method to run arbitrary shell commands as the nobody user.
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.
Java can turn an object into a stream of bytes (serialisation) and rebuild it later (deserialisation). If a program rebuilds objects from data supplied by a user without checking what those objects are, the user can supply a malicious object that runs code when rebuilt. Here, a logged-in user could send such an object to a QRadar web endpoint and take over the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.