PEAR HTML_AJAX <= 0.5.7 (PHP Serializer) PHP Object Injection Vulnerability
The HTML_AJAX PHP serializer class passes user-controlled input to PHP's unserialize() function, only checking that class names in the serialized string appear in an allow-list. An attacker could supply a crafted serialized string to trigger PHP object injection, potentially leading to further exploitation depending on available gadget chains.
karmainsecurity.com
Published on karmainsecurity.com
https://pear.php.net/package/HTMLAJAX
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 the allow-list check on class names extracted from the serialized string is insufficient to prevent object injection, since unserialize() is still called on user-controlled input.
Impact
An attacker could inject PHP objects through user-controlled serialized input, which may lead to further exploitation such as code execution depending on available gadget chains; the text does not demonstrate a full exploit chain.
What the attacker needed
User-controlled input reaches the serializer; suitable gadget classes available
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 has a function called unserialize() that turns a stored text string back into live objects in memory. If a website lets a visitor supply that string, the visitor can choose which kinds of objects get created, and some objects do dangerous things when they are created or destroyed. This report says the library only checks the class names against a list, which may not be enough to stop abuse.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.