Test PHP object injection in AJAX handlers

Insecure deserializationDiscovery

Written with a model's help from “Exploiting a PHP Object Injection in Profile Builder Pro in the era of AI” by Mattia (0xbro) Brollo on Sicuranext (WAAP research). Read the writeup before relying on it.

To find PHP object injection vulnerabilities, test AJAX handlers for deserialization of user-controlled input. Send a POST request to an AJAX handler with a serialized PHP object in the args parameter, such as args=O:8:"stdClass":1:{s:4:"test";s:10:"nuclei-poi";}. If the application deserializes the object without validation, it may lead to remote code execution or other security issues. Look for a response with a 500 status code or other indicators of deserialization errors. Use tools like Semgrep to identify potential vulnerabilities and speed up the testing process.

Follow #deserialization, #php-object-injection or #wordpress for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.