9.1 CVE-2024-4990

Exploit
 

In yiisoft/yii2 version 2.0.48, the base Component class contains a vulnerability where the `__set()` magic method does not validate that the value passed is a valid Behavior class name or configuration. This allows an attacker to instantiate arbitrary classes, passing parameters to their constructors and invoking setter methods. Depending on the installed dependencies, various types of attacks are possible, including the execution of arbitrary code, retrieval of sensitive information, and unauthorized access.
https://nvd.nist.gov/vuln/detail/CVE-2024-4990

Categories

CWE-470 : Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
If the product uses external inputs to determine which class to instantiate or which method to invoke, then an attacker could supply values to select unexpected classes or methods. If this occurs, then the attacker could create control flow paths that were not intended by the developer. These paths could bypass authentication or access control checks, or otherwise cause the product to behave in an unexpected manner. This situation becomes a doomsday scenario if the attacker can upload files into a location that appears on the product's classpath (CWE-427) or add new entries to the product's classpath (CWE-426). Under either of these conditions, the attacker can use reflection to introduce new, malicious behavior into the product.

References

134c704f-9b21-4f2e-91b3-4a467353bcc0 Exploit

security@huntr.dev Exploit


 

CPE

cpe start end
Configuration 1
cpe:2.3:a:yiiframework:yii:2.0.48:*:*:*:*:*:*:*


REMEDIATION




EXPLOITS


Exploit-db.com

id description date
No known exploits

POC Github

Url
No known exploits

Other Nist (github, ...)

Url
https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f
https://huntr.com/bounties/4fbdd965-02b6-42e4-b57b-f98f93415b8f


CAPEC


Common Attack Pattern Enumerations and Classifications

id description severity
138 Reflection Injection
Very High