Server-side
Insecure Deserialization
Insecure deserialization of untrusted data can allow RCE, authentication bypass, or denial of service via crafted serialized payloads.
- 259 payloads
- 2 files
- README on GitHub
Payloads are read from main at 35c1f2b (committed 22 Nov 2026). Project version 1.0.2.
These payloads are for authorized testing only: systems you own, authorized bug bounty programs, or controlled lab environments. Unauthorized testing is illegal.
Payload files
Use the arrow keys to move between payloads. Press Enter or C to copy the focused payload.
deserialization-payloads.txt
129 payloads · 6.0 KBLoading payloads for Deserialization…
What it is#
Insecure deserialization vulnerabilities occur when untrusted data is deserialized without sufficient validation. Attackers can supply crafted serialized objects that, when deserialized, execute arbitrary code through gadget chains in the application's class path. Common targets include Java, PHP, Python, Ruby, and .NET deserialization.
Attack vectors#
- Cookie values containing serialized session objects
- API request bodies with serialized data
- Database-stored serialized objects
- Message queue payloads
- File upload features (YAML, JSON, XML)
Testing methodology#
- Identify serialized data in cookies (base64-encoded PHP objects, Java rO0AB...)
- Decode and examine the serialized payload structure
- Use ysoserial (Java) or phpggc (PHP) to generate gadget chain payloads
- Test for blind deserialization with time-based or out-of-band detection
Indicators of vulnerability#
- Application crashes or behaves unexpectedly with malformed serialized data
- Command execution evidence in response or out-of-band
- Java deserialization exceptions in server logs
Detection guidance#
Implement deserialization monitoring to detect gadget chain class loading. Use Java agents (SerialKiller) to block dangerous classes during deserialization.
Mitigation and remediation#
- Avoid deserializing data from untrusted sources
- Implement integrity checks (HMAC) on serialized data before deserialization
- Use deserialization filters to allowlist expected classes
- Keep deserialization libraries patched and updated
- Use safer data formats (JSON with schema validation) instead of native serialization
References#
Responsible Use
All content in this reference is for authorized security testing only. Use only on systems you own or have explicit written permission to test.
- Systems and applications you own
- Authorized penetration testing engagements
- Bug bounty programs with defined scope
- Educational lab environments (DVWA, WebGoat, HackTheBox)