Piwik <= 2.14.3 (DisplayTopKeywords) PHP Object Injection Vulnerability
The DisplayTopKeywords method in the Referrers plugin builds a URL from the request host and request URI and then fetches it, and the text indicates this leads to PHP object injection. An attacker could potentially supply crafted input that is unserialised by the application.
karmainsecurity.com
Published on karmainsecurity.com
The vulnerability is caused by the DisplayTopKeywords() method defined in the /plugins/Referrers/Controller.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 method builds a URL from user-controlled request data and passes it into a code path that unserialises attacker-influenced content.
Impact
An attacker could potentially inject a PHP object and, depending on available gadget chains, achieve code execution or other serious effects.
What the attacker needed
Access to the affected Piwik instance
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 is a flaw where an application turns untrusted text back into a program object. If an attacker controls that text, they can sometimes make the program behave in unintended ways, such as running code or reading files. Here the problem is in a function that builds a web address from parts of the incoming request.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.