All rules →
Rules / C#
SHIELD-CSHARP-021

Unsafe reflection from user-controlled type name

highC#CWE-470CVSS 8.1

What it detects

Type.GetType or Activator.CreateInstance is invoked with a variable type name from untrusted input.

How to fix

Map user input to an allowlisted set of known types rather than resolving arbitrary type names.

Scan your repo freeFull documentation
Back to all rules
SHIELD-CSHARP-021: Unsafe reflection from user-controlled type name — Zennoxa Shield