Skip to content
RCE Write-up Intermediate

Open Web Analytics <= 1.5.6 (queue.php) PHP Object Injection Vulnerability

The queue.php script passes a base64-decoded POST parameter directly into PHP's unserialize() function without validation. An attacker could send a crafted serialised object to trigger PHP object injection, which may lead to further exploitation depending on available gadget chains.

karmainsecurity.com

Published on karmainsecurity.com

Input passed through the “owaevent” POST parameter is not properly sanitized before being used in a call to the unserialize() PHP function at line 47. This could be exploited to change certain configuration options or create a file containing arbitrary PHP code via specially crafted serialized objects.

The author, on karmainsecurity.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 application calls unserialize() on a base64-decoded value taken directly from a user-controlled POST parameter without any validation or restriction on allowed classes.

Impact

An attacker could inject arbitrary PHP objects into the application, which may lead to code execution or other serious consequences if suitable gadget chains exist in the codebase or its dependencies.

What the attacker needed

Network access to queue.php; no authentication stated

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.

PHP can turn a piece of text back into a live object using a function called unserialize. If a website feeds user-supplied text into that function, an attacker can craft the text so that the site builds objects the developer never intended, which can sometimes be abused to run code or read data. Here the site takes a value from a form post, decodes it and hands 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.

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.