C#
C-sharp : Determining type via class name comparison
Classification
CWE
Overview
The application determines the type of an object based on a class name. Undefined behavior and malicious code injection is possible.
An attacker can create a class of the same name with the malicious code, which will be executed by an application. The class name should not be used as an object type identifier.
References
LOW
DerScanner Severity Score
Check your C# code for this vulnerability, free
Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.
Try it on your code, free
By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.
