Deserialization

Exploiting PHP Deserialization - Building a POP Chain to RCE

Exploiting PHP Deserialization - Building a POP Chain to RCE

This post covers a PHP insecure deserialization challenge from DG’hAck 2022 that involves chasing down a POP gadget and building a chain from scratch. We trace __destruct through __call and trait inheritance, then bypass __wakeup restrictions and forbidden attributes to call getContents for arbitrary file read on the flag.

Read More