Skip to content
RCE Disclosed report Advanced

Deserialization of Untrusted Data in www/delivery/adxmlrpc.php

The XML-RPC endpoint in the delivery script passed the 'what' parameter of the 'openads.spc' method to PHP's unserialize() without validation. An attacker could send a crafted payload to trigger PHP object injection and potentially exploit serialisation-related vulnerabilities.

mbeccati Follow

Originally disclosed on HackerOne

Critical 9.1 View original
  • Fixed in under an hour
  • Disclosed after 35 days

An attacker could send a specifically crafted payload to the XML-RPC invocation script and trigger the unserialize() call on the "what" parameter in the "openads.spc" RPC method.

Impact

Such vulnerability could be used to perform various types of attacks, e.g. exploit serialize-related PHP vulnerabilities or PHP object injection.

It is possible, although unconfirmed, that the vulnerability has been used by some attackers in order to gain access to some Revive Adserver instances and deliver malware through them to third party websites.

The original report as published on HackerOne, by mbeccati. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the XML-RPC handler passed user-controlled input directly to PHP's unserialize() without restricting which classes could be created or validating the data.

Impact

An attacker could perform PHP object injection and exploit serialise-related PHP vulnerabilities; the text says it is unconfirmed whether this was used to compromise instances and deliver malware.

What the attacker needed

Network access to the XML-RPC endpoint

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 report has not been written yet. The Original tab links to the source.

PHP's unserialize() turns a stored text string back into live objects. If an attacker controls that string, they can create objects the developer never intended, which may lead to further attacks. Here the XML-RPC endpoint accepted such a string from the network and passed it straight to unserialize().

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 mbeccati

View all

2 more disclosed reports, best first.

More from Revive Adserver

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.