vetkit.csharp.unsafe-reflection.tainted-type-or-assembly
A type name or assembly is loaded from request input. An attacker can instantiate arbitrary types (deserialization-style gadgets) or load attacker-supplied code.
Last updated:
Suite: Security
csharp
A type name or assembly is loaded from request input. An attacker can instantiate arbitrary types (deserialization-style gadgets) or load attacker-supplied code.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Map request values to types through a fixed dictionary of allowed types; never load assemblies from user-supplied names, paths or bytes.
References
Source: packages/engine/rules/sast/csharp.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.