“To live is to fight, to fight is to live! - IBM ODM Remote Code Execution
IBM ODM contained a pre-authenticated Java deserialization flaw in the JSF ViewState parameter and a JNDI injection flaw in the 'About' API, both allowing remote code execution. An attacker could exploit these to execute arbitrary commands on the server.
labs.watchtowr.com
Published on labs.watchtowr.com
This research is a glimpse into the capability powering the watchTowr Platform, a Preemptive Exposure Management solution. We enable organizations to autonomously validate and mitigate their exposure to emerging threats, ahead of in-the-wild exploitation.
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 application deserialized untrusted input (the ViewState parameter and the datasource parameter used in a JNDI lookup) without validation, allowing an attacker to supply a malicious serialized object or LDAP reference that led to code execution.
Impact
An attacker could achieve pre-authenticated remote code execution, potentially taking full control of the server.
What the attacker needed
Network access to the ODM server; No authentication required
The fix
IBM released an advisory and fixed the vulnerabilities in affected versions.
How it was found
- Send a request to the login page with a modified ViewState parameter to confirm it is processed before authentication.
- Generate a serialized Java object using a tool like ysoserial and URL-encode it.
- Send the encoded object in the ViewState parameter and observe a DNS callback, confirming deserialization.
- For the second vulnerability, send a request to the About API with a datasource parameter pointing to an attacker-controlled LDAP server.
- Host a malicious LDAP server that returns a serialized object chain.
- The server deserializes the object and executes the embedded command, confirmed by an HTTP callback.
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.
The application accepted data from users and turned it back into Java objects without checking it was safe. An attacker could send a specially crafted object that, when rebuilt, runs commands on the server. This is called deserialization, and it can lead to full control of the machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.