~/talk

Second Breakfast: Implicit and Mutation-Based Serialization Vulnerabilities in .NET

Talkat NDC Security 2024 · 2024-01-09..01-10· [security, dotnet]
links:none on file
slides:none on file

Demonstrates concrete remote code execution across .NET serializers: proven RCEs against LiteDB, MongoDB, RavenDB, ServiceStack.Redis and MartenDB using gadgets like AssemblyInstaller and ObjectDataProvider to launch calc.exe, plus a novel mutation-based serialization attack that turns key/value dictionaries (e.g. a "$type" key) into executable payloads. Shows techniques to bypass serialization binders via generics and contagion, and a confused-delegate binary formatter exploit using a crafted IConvertible u64 and byte[] that survives deserialize→serialize→deserialize. Recommends dropping polymorphic serializers and using safe serializers.

AI-written summary · about

  1. 0:00Serialization vulnerabilities intro
  2. 1:28Security design review background
  3. 3:59NoSQL implicit serialization
  4. 9:14LightDB RCE exploit
  5. 11:41MongoDB & RavenDB flaws
  6. 14:52Mutation-based attacks discovery
  7. 20:10Exploitable .NET serializers
  8. 22:55Bypassing serialization binders
  9. 28:31BinaryFormatter mutation attacks
  10. 37:39Vendor fixes & limitations
  11. 40:05Preventing exploits best practices
  12. 42:10Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.