Home

Awesome

SerPHPer

Serialized PHP toolkit for Burp Suite

From a security testing perspective, one interesting feature of PHP is that of PHP Serialized objects. They typically show up as Base64 encoded strings which, once decoded, resemble a format that looks something like JSON (only not). See PHP Internals on Serialization for more detais on the format.

Issues presented by PHP serialization when these objects are passed from the browser and deserialized on the server include:

The purpose of the SerPHPer toolkit, which is a Burp Suite extension, is to facilitate security testing of PHP serialized objects.

Limitations

The current functionality should be considered an "alpha" release. The only thing working so far is a transformation from PHP Serialized to JSON(-ish) and back, and even that is limited to only strings, ints, and arrays. There is much more to come.

The "JSON-ish" format is not a perfect representation of JSON. It is just meant to be a simpler markup to make manual editing of PHP serialized data much easier.