Analysis of the Joomla PHP Object Injection Vulnerability
A PHP object injection vulnerability existed in the Joomla CMS due to an unsafe unserialize() call. The author initially believed it was not exploitable because no useful magic method was found, but later disclosed it as a vulnerability.
karmainsecurity.com
Published on karmainsecurity.com
Today I have disclosed KIS-2013-03, a PHP Object Injection vulnerability which affects the Joomla CMS. I have reported this vulnerability to the Joomla Security Strike Team only some months ago, but to be honest I have noticed that vulnerable unserialize() call a long time before.
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 an unsafe unserialize() call on user-controlled input without proper validation or restrictions.
Impact
The text does not describe a concrete impact; the author initially concluded it was not exploitable because no useful magic method was found.
What the attacker needed
None 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 object injection happens when an application takes untrusted input and turns it back into a PHP object using a function called unserialize(). If the code later calls special methods on that object (called magic methods), an attacker might be able to run harmful actions. In this case, the author first thought no such methods existed, so the bug seemed harmless.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.