Transformers: Dark Side of the Type - Weaponizing the Conversion Layer

No ratings

Presented at Black Hat USA 2026 by

In 2017, we presented "Friday the 13th: JSON Attacks" and forced the industry to confront Insecure Deserialization. We demonstrated that Java and .NET serialization libraries are vulnerable to Remote Code Execution (RCE) when an attacker can control the type of object being instantiated. Developers responded by hardening the configurations of complex parsers and serializers: disabling TypeNameHandling, implementing strict binders, and restricting polymorphic binding. That hardening worked for the parsers and serializers we highlighted in 2017. But it created a dangerous blind spot. Developers and security reviewers now assume that simpler code patterns, those that do not involve complex parsers, are inherently safe. We demonstrate that they are not.This Briefing changes the hunt for RCE vulnerabilities, moving the focus away from the serialization format entirely and targeting the transformation layer: the code that turns a simple string into a complex object. We expose "Insecure String Transformers": mechanisms that silently resolve types, trigger complex logic, and instantiate objects during what looks like a safe string conversion. This overlooked attack surface remains invisible to the tools and reviews focused on the parser-level bugs from 2017. Within the .NET ecosystem, we uncover such patterns in TypeConverter and Parse() implementations, custom transformation logic, and other conversion primitives. In every case, the root cause is the same: any transformation from string to object is a potential RCE vector when it invokes type resolution without validation.We perform a real-world autopsy of enterprise applications and dissect specific CVEs where string-to-object conversion was the root cause of RCE. We release new gadget chains targeting popular .NET libraries and present a methodology for hunting dangerous conversion patterns across any codebase. The goal is to redefine how the industry classifies this vulnerability: it is not "Insecure Deserialization" - it is Insecure Transformation, and it may be hiding in your application even if it does not use any serialization library.