A Trio of Bugs Used to Exploit Inductive Automation at Pwn2Own Miami
An unauthenticated attacker could access a sensitive project diff function that deserialized untrusted Java objects without a class allow list, and by chaining this with an outdated Apache Commons Beanutils library, achieve remote code execution as SYSTEM or root.
zerodayinitiative.com
Published on zerodayinitiative.com
This post describes a chain of Java vulnerabilities that were found by Pedro Ribeiro (@pedrib1337) and Radek Domanski (@RabbitPro). These bugs were put to use in ZDI's Pwn2Own Miami 2020 competition in January.
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 project diff function called a deserialisation helper without a class allow list, so it used a standard unsafe ObjectInputStream, and the presence of an old vulnerable library provided a gadget for code execution.
Impact
An unauthenticated attacker could achieve remote code execution as SYSTEM on Windows or root on Linux.
What the attacker needed
Network access to the gateway; no authentication required
The fix
The vendor fixed these bugs in version 8.0.10.
How it was found
- Create a ysoserial CommonsBeanutils1 payload.
- Base64 encode the payload.
- Encapsulate the payload in a Java String object.
- Serialize the String object using standard Java serialization.
- Base64 encode the serialized String object.
- Send a request to /system/gateway invoking getDiffs() with the malicious parameters.
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.
This is a chain of three bugs in a industrial control system. The first lets an unauthenticated user reach a function that compares project data. That function then deserialises data without checking what classes are allowed, and because an old library is present, the attacker can run their own code 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.