Hunting Dotnet Deserialization Type Injection

Hunt .NET deserialization where untrusted input reaches a formatter that resolves the type from the data itself: BinaryFormatter, SoapFormatter, NetDataContractSerializer, LosFormatter or ObjectStateFormatter on ViewState, or Json.NET and similar with type-name handling enabled. Covers formatters that instantiate an attacker-named type and drive a gadget through a set accessor, a callback, or a converter to a command, a process start, or a file operation. Use when a service reads serialized .NET objects it did not produce and the formatter honors an embedded or annotated type name. The untrusted serialized payload is the source, the type-resolving formatter is the sink, and the attacker-chosen type driving a gadget to a dangerous call is the bug.

UnboundCompute Updated

File contents

UnboundCompute/security-agent-skills/tree/main/skills/hunting-dotnet-deserialization-type-injection commit bbcc10bf03

Frequently asked questions

npx skillmds@latest add unboundcompute/hunting-dotnet-deserialization-type-injection