HACKR.GG
Injection

Deserialization Attacks

When an application deserializes attacker-controlled data, it can execute arbitrary code before any validation runs. Python's pickle, PHP's unserialize, and Java's ObjectInputStream have ended careers.

Intermediate45 min8 lessons2 hands-on
Start free →I have an account
First lesson free. The full module is part of Pro.

You'll be able to

  • ✓Recognise serialized data formats in cookies, request bodies, and API responses
  • ✓Craft a malicious Python pickle payload using the __reduce__ method
  • ✓Understand PHP magic methods (__wakeup, __destruct) and gadget chains
  • ✓Identify Java deserialization entry points and the risks of ObjectInputStream
  • ✓Replace unsafe deserialization with JSON and HMAC-signed serialized data

Lessons

  1. 1Serialization & Deserialization Basics
  2. 2Python pickle RCE
  3. 3PHP Object Injection
  4. 4Defence & Remediation
  5. 5Mini Lab — Deserialization Triage
  6. 6Module quiz
  7. 7Your Turn: Forge a Serialized ObjectHANDS-ON
  8. 8Hands-on Lab: Exploit MembrHANDS-ON
Start free →