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

Description#

The code creates a new object using a class name that comes directly from user input, such as GET, POST, COOKIE, REQUEST, or SERVER variables. This allows attackers to control which class is instantiated, leading to unsafe behavior.

Impact#

An attacker could instantiate arbitrary classes within your application, potentially triggering dangerous code paths or bypassing security controls. In the worst case, this could result in remote code execution or full compromise of the system.