Gambio 4.9.2.0 - Insecure Deserialization
The Gambio online shop software deserialises user-supplied data in the 'search' parameter of the Parcelshopfinder/AddAddressBookEntry function, allowing an attacker to execute arbitrary code via a crafted serialised object. This could lead to complete system compromise.
Published on herolab.usd.de
Gambio is software designed for running online shops. It provides various features and tools to help businesses manage their inventory, process orders, and handle customer interactions.
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 user-controlled input without validating or restricting the classes that can be instantiated, enabling PHP object injection.
Impact
An attacker could execute arbitrary commands, potentially resulting in complete system compromise, data exfiltration, or unauthorised access to sensitive information.
What the attacker needed
No authentication required; Guest account creation possible
The fix
The vendor released a new version that fixes the vulnerability; users should upgrade to the patched version.
How it was found
- Create a guest user account via the CreateGuest/Proceed endpoint.
- Send a POST request to the Parcelshopfinder/AddAddressBookEntry endpoint with a base64-encoded serialised payload in the 'search' parameter.
- The payload uses a Guzzle gadget chain to write a file into the web root.
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.
Deserialisation is when a program turns stored data back into objects. If that data comes from an untrusted user, an attacker can craft it to make the program run their own code. Here, the shop software did exactly that, letting an attacker run commands on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.