Exploiting a PHP Object Injection in Profile Builder Pro in the era of AI
An unauthenticated PHP object injection in the Profile Builder Pro plugin allowed an attacker to deserialize arbitrary objects via the 'args' parameter. By chaining a gadget in another plugin, the researchers achieved remote code execution and deployed a web shell.
Published on blog.sicuranext.com
It was just another ordinary day in the life of a penetration tester. We were analysing one of our clients' WordPress sites, where all the most common attack vectors had been properly protected.
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 AJAX action 'wppb_request_users_pins' is registered for unauthenticated users and passes the 'args' parameter directly to unserialize() without validation.
Impact
An unauthenticated attacker could execute arbitrary code on the server, but this depends on the presence of a suitable gadget chain in other installed plugins.
What the attacker needed
Profile Builder Pro <= 3.14.5; A gadget chain in another plugin; No authentication required
The fix
The vulnerability was fixed in version 3.14.6.
How it was found
- Send a POST request to /wp-admin/admin-ajax.php with action=wppb_request_users_pins and a serialized object in the args parameter.
- The plugin deserializes the args parameter without validation.
- Use a gadget chain from another plugin (e.g., Monolog in The Events Calendar) to execute arbitrary commands.
- The command runs and creates a web shell file on the server.
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 happens when a website takes data from a user and turns it back into a program object without checking it. An attacker can craft that data to create a harmful object that, when combined with other code on the site, can run commands on the server. This is like tricking a machine into following your instructions instead of its own.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.