Joomla! <= 3.0.2 (highlight.php) PHP Object Injection Vulnerability
The Joomla highlight system plugin takes a request parameter, base64-decodes it and passes the result straight into PHP's unserialize() without any validation. An attacker could send a crafted value to trigger PHP object injection, which may lead to further exploitation depending on the classes available in the codebase.
karmainsecurity.com
Published on karmainsecurity.com
User input passed through the “highlight” parameter is not properly sanitized before being used in an unserialize() call at line 58. This can be exploited to inject arbitrary PHP objects into the application scope.
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 plugin passed user-controlled, base64-decoded input directly to unserialize() without validating or restricting the data.
What the attacker needed
Reachable highlight plugin; crafted highlight parameter
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.
When PHP stores an object it can turn it into a text string, and unserialize() turns that text back into a live object. If a website lets a visitor supply that text, the visitor can choose which internal object gets rebuilt, and some objects do dangerous things when they are created or destroyed. Here the highlight parameter was decoded and unserialized with no checks, so a visitor could control what object the server built.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.