OWASP Deserialization Cheat Sheet
Official docs outline
9 sections- What Is Deserialization
Serialization, deserialization and why untrusted data is dangerous.
- PHP
PHP unserialize risks and safe alternatives.
- Python
Pickle and YAML loading hazards.
- Java
ObjectInputStream filtering and look-ahead deserialization.
- .NET C#
BinaryFormatter and safer serializers.
- Alternative Data Formats
Using JSON or protobuf in place of native serialization.
- Only Deserialize Signed Data
HMAC signing to ensure integrity before deserializing.
- Mitigation Tools and Libraries
Libraries that harden deserialization.
- Detection Tools
Tools for detecting deserialization vulnerabilities.
Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.
More in OWASP
All 33- OWASP Authentication Cheat Sheets
- OWASP Authorization Cheat Sheets
- OWASP CI/CD and Supply Chain Cheat Sheets
- OWASP Cryptographic Storage Cheat Sheets
- OWASP CSRF Prevention Cheat Sheet
-
OWASP Dependency-Check
- OWASP Django Security Cheat Sheets
- OWASP Docker Security Cheat Sheet
- OWASP File Upload Cheat Sheet
- OWASP GraphQL Cheat Sheet
- OWASP Injection Prevention Cheat Sheets
- OWASP Input Validation Cheat Sheets