SolarWinds Security Event Manager AMF deserialization RCE (CVE-2024-0692)
The SolarWinds Security Event Manager exposed an unauthenticated AMF deserialization endpoint whose class validator was configured to allow every class, so an attacker could send crafted AMF data to instantiate arbitrary classes. The author chains this into a HikariCP JNDI lookup and then a restricted H2 JDBC path to reach remote code execution.
exp10it.io
Published on exp10it.io
https://www.zerodayinitiative.com/advisories/ZDI-24-215/
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
Likely the BlazeDS class deserialization validator was configured with a wildcard allow pattern, disabling the default whitelist and permitting arbitrary classes to be deserialized from unauthenticated AMF requests.
What the attacker needed
Network access to the AMF endpoint; no authentication required; attacker-hosted LDAP or JDBC service
How it was found
- Download the appliance image and extract the application source from the disk image.
- Read the BlazeDS services configuration and note the AMF endpoints and the wildcard allow-classes setting.
- Build an AMF message containing a HikariConfig object whose metric registry field points at an attacker LDAP URL.
- Send the AMF payload to the streaming AMF endpoint with the AMF content type and observe the incoming JNDI request.
- Serve a JNDI reference that makes HikariCP open a JDBC connection to an H2 database.
- Use H2 aliases over that connection to write a library and load it, or to start a Spring XML context that runs a command.
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 product accepts a binary message format called AMF on a web endpoint, and it turns that data back into Java objects. A setting meant to restrict which classes may be rebuilt was set to allow everything, so an attacker can ask the server to build dangerous classes. The author then uses those classes to make the server connect to an attacker-controlled database or directory service, which can end in running commands on 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.