CubeCart <= 5.2.0 (cubecart.class.php) PHP Object Injection Vulnerability
The CubeCart application unserialises user-supplied data from the 'shipping' POST parameter without proper sanitisation. An attacker could exploit this to inject arbitrary PHP objects, potentially leading to remote code execution or other malicious outcomes.
karmainsecurity.com
Published on karmainsecurity.com
The vulnerable code is located in the Cubecart::basket() method defined in the /classes/cubecart.class.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
Impact
An attacker could inject arbitrary PHP objects, potentially leading to remote code execution or other severe consequences.
What the attacker needed
Ability to send POST requests to the basket endpoint
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.
This report describes a flaw where a web application takes data from a form field and turns it back into a program object without checking it. An attacker could craft a special value that, when turned into an object, runs harmful code on the server. This is dangerous because it might let the attacker take control of the website.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.