Insecure Deserialization

Insecure Deserialization #

Serialization is the process of turning some object into a data format that can be restored later. People often serialize objects in order to save them to storage, or to send as part of communications. Deserialization is the reverse of that process – taking data structured from some format, and rebuilding it into an object - OWASP Check the following sub-sections, located in other files :

Object TypeHeader (Hex)Header (Base64)
Java SerializedAC EDrO
.NET ViewStateFF 01/w
Python Pickle80 04 95gASV
PHP Serialized4F 3ATz

POP Gadgets #

A POP (Property Oriented Programming) gadget is a piece of code implemented by an application’s class, that can be called during the deserialization process. POP gadgets characteristics:

  • Can be serialized
  • Has public/accessible properties
  • Implements specific vulnerable methods
  • Has access to other “callable” classes

Labs #

References #