What is deserialization
Serialization is a mechanism
of converting the state of an
object into a byte stream.
Deserialization is the reverse
process where the byte
stream is used to recreate
the actual object in memory
Exploit - 1
Unprotected API
Show data
Send GET request for retrieved save serialized data
Create data
Send POST request with json data for serialization.
Payload Create
● arbitrary code execution should occur when untrusted input is
passed into unserialize() function. The best way to create a
payload is to use the serialize() function of the same module.
Payload Create
I created the following JavaScript object and passed it to serialize() function.
Which gives the following output.