Skip to content
RCE Write-up Advanced

Pwn2Owning Two Hosts At The Same Time: Abusing Inductive Automation Ignition’s Custom Deserialization

A custom XML deserializer in Inductive Automation Ignition allows an attacker to specify any Java class, constructor, and method with arbitrary arguments, leading to remote code execution. A malicious project file can execute code on both the client that opens it and the server that imports it.

Piotr Bazydło Follow

Published on zerodayinitiative.com

Pwn2Own Miami 2022 was a fine competition. At the contest, I successfully exploited three different targets.

Piotr Bazydło (@chudyPB), on zerodayinitiative.com

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 deserializer resolves user-supplied class names without validation and then uses reflection to instantiate objects and invoke methods with attacker-controlled arguments.

Impact

An attacker could achieve remote code execution on both the client workstation and the Ignition server, but the remote vector requires authentication.

What the attacker needed

Victim opens malicious project file; victim finalizes project import; remote vector requires authentication

How it was found

  1. Create a malicious project file containing a crafted data.bin with XML that specifies a dangerous class and method.
  2. Deliver the project file to a victim, for example via the Ignition Exchange platform.
  3. The victim opens the project file in Ignition Designer, triggering deserialization on the client.
  4. The victim finalizes the project import, sending the project to the server.
  5. The server imports the project and deserializes the malicious data.bin, executing code on the server.

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 bug in how a program reads saved project files. The program trusts the file to say which Java code to run, so a bad file can make the program run the attacker's commands. This means opening a malicious project file can let an attacker run code on your computer and 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.

More by Piotr Bazydło

View all

14 more disclosed reports, best first.

More from Inductive Automation Ignition

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.