Tuleap <= 9.6 Second-Order PHP Object Injection Vulnerability
A user preference value is passed to PHP's unserialize() function, and that value can be set arbitrarily through the REST API. An attacker could supply a crafted serialised value to trigger PHP object injection, which may lead to further exploitation depending on available gadget chains.
karmainsecurity.com
Published on karmainsecurity.com
The vulnerable code can be triggered through the User::getRecentElements() method defined in /src/common/user/User.class.php:
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 user-controlled preference value without validating or restricting its contents.
Impact
An attacker could achieve PHP object injection, which may lead to further exploitation such as code execution depending on the classes available in the application.
What the attacker needed
An account able to call the REST API
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 a program saves data, it sometimes turns it into a text string and later turns it back into an object. If an attacker can control that text, they can make the program build objects of their choosing, which can be dangerous. Here the saved 'recent elements' preference is turned back into objects without checking it came from a trusted source.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.