TestLink <= 1.9.12 (execSetResults.php) PHP Object Injection Vulnerability
The execSetResults.php script passes user input from a request parameter into PHP's unserialize() function without proper sanitisation. An attacker could inject arbitrary PHP objects, which the text says could allow deletion of arbitrary files, SSRF, SQL injection, or local/remote file inclusion via crafted serialised objects.
karmainsecurity.com
Published on karmainsecurity.com
The vulnerable code is located in the /lib/execute/execSetResults.php script:
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 application calls unserialize() on a request parameter without validating or restricting the resulting object types.
Impact
An attacker could inject arbitrary PHP objects, which could allow deletion of arbitrary files, SSRF, SQL injection, or local/remote file inclusion; the text does not demonstrate any of these outcomes.
What the attacker needed
Access to the execSetResults.php script
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 feeds text from a visitor straight into that function, the visitor can choose which object gets built and what it does. Here the text claims this could let an attacker delete files or make the server fetch other resources.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.