qdPM <= 9.1 (executeExport) PHP Object Injection Vulnerability
The time report export action passes the user-supplied 'export' request parameter straight into PHP's unserialize() function without sanitising it. An attacker could send a crafted serialised value to trigger PHP object injection, which may lead to further exploitation depending on the classes available in the application.
karmainsecurity.com
Published on karmainsecurity.com
The vulnerability is located in the /core/apps/qdPM/modules/timeReport/actions/actions.class.php script, specifically within the timeReportActions::executeExport() method:
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 raw request parameter without validating or restricting the input.
What the attacker needed
Access to the time report export action
The fix
The export parameter should not be passed to unserialize(); the data should be sent in a safe format such as JSON and decoded instead.
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 lets a visitor supply that text, the visitor can choose which kind of object gets created, and some objects do dangerous things when they are created or destroyed. Here the export feature of the time report takes the text straight from the request, so a visitor controls what gets rebuilt.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.