TLDR InfoSec · STRATEGIES & TACTICS

MAKING SERIALIZATION GADGETS BY HAND - .NET

vulncheck.com1 min read

Summary from the TLDR InfoSec newsletter

Creating deserialization gadgets for .NET by hand requires understanding the structure of .NET serialization streams, which are composed of sequential records that define objects and references. By breaking down these records, including headers, class information, member types, and values, it becomes possible to craft custom gadget chains directly in code, without relying on pre-generated payloads or Windows-only tools. The approach presented demonstrates how to reconstruct objects, assign values, and embed complex references, providing insight into the safe and dynamic generation of deserialization payloads.