~/talk

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

Talkat Black Hat USA 2023 · 2023-08-05..08-10· [security]
links:none on file
slides:none on file

Demonstrates concrete RCEs by crafting serialized payloads and showstopping mutations that turn innocuous key/value maps into gadgets, successfully exploiting LiteDB, MongoDB, RavenDB, ServiceStack.Redis, MartenDB, JSON.Net and the .NET JavaScriptSerializer. Describes the mutation-based serialization trick (put "$type" into a string→string dictionary), an implicit serialization danger where libraries deserialize storage for callers, and multiple serialization binder bypass techniques via generics and contagion. Recommends removing polymorphic serializers and unsafe settings; most vendors patch differently and JSON.Net refuses to change.

AI-written summary · about

  1. 0:00Introduction
  2. 0:17Understanding type get type
  3. 1:43LiteDB serialization
  4. 2:54Deserialization gadgets
  5. 4:35Implicit vulnerabilities
  6. 6:12NoSQL client risks
  7. 6:54Vulnerabilities in MongoDB
  8. 8:16RavenDB and ServiceStack
  9. 9:37MartinDB and mutations
  10. 11:18Mutation attack mechanics
  11. 13:28Impact of mutation attacks
  12. 15:22Vulnerable serializers
  13. 16:24Defending against attacks
  14. 16:51Bypassing security binders
  15. 18:58Binder bypass examples
  16. 20:35Vendor fixes and status
  17. 21:50Conclusion and Q&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.