Property
Languagejava
Severitylow
CWECWE-470: Use of Externally-Controlled Input to Select Classes or Code (‘Unsafe Reflection’)
OWASPA03:2021 - Injection
Confidence LevelLow
Impact LevelLow
Likelihood LevelLow

Description#

The code uses Class.forName with a class name that can be influenced by user input. This allows attackers to control which classes are loaded at runtime, leading to unexpected or unsafe application behavior.

Impact#

An attacker could load arbitrary classes, potentially bypassing security checks, executing unauthorized code, or causing the application to malfunction. This could lead to privilege escalation, data exposure, or compromise of the application’s integrity.