insecure deserialization
Turning untrusted bytes back into program objects in a way that lets an attacker create objects that run code.
Deserialising untrusted data can let an attacker run code inside the process.
In more detail
Formats that can describe arbitrary objects, such as Python pickle or Java serialization, are the usual culprits. It is an example of in-process code execution that a missing shell does not stop, because the attacker's code runs inside the application itself.
Related terms
- command injection — An attack where input meant as data, such as a file name or form field, gets run as commands because a program built code from it.
Taught in
- Container Hardening: Distroless & Rootless — Cloud Security & DevSecOps Engineering