An issue was discovered in SDCMS 1.6 with PHP 5.x. app/admin/controller/themecontroller.php uses a check_bad function in an attempt to block certain PHP functions such as eval, but does not prevent use of preg_replace 'e' calls, allowing users to execute arbitrary code by leveraging access to admin template management.
References
Link | Resource |
---|---|
https://blog.whiterabbitxyj.com/cve/SDCMS_1.6_code_execution.doc | Exploit Third Party Advisory |
https://github.com/WhiteRabbitc/WhiteRabbitc.github.io/blob/master/cve/SDCMS_1.6_code_execution.doc | Exploit Third Party Advisory |
Configurations
History
No history.
Information
Published : 2018-11-25 20:29
Updated : 2024-02-04 20:03
NVD link : CVE-2018-19520
Mitre link : CVE-2018-19520
CVE.ORG link : CVE-2018-19520
JSON object : View
Products Affected
sdcms
- sdcms
php
- php
CWE
CWE-94
Improper Control of Generation of Code ('Code Injection')