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://github.com/WhiteRabbitc/WhiteRabbitc.github.io/blob/master/cve/SDCMS_1.6_code_execution.doc | Exploit Third Party Advisory |
https://blog.whiterabbitxyj.com/cve/SDCMS_1.6_code_execution.doc | Exploit Third Party Advisory |
Information
Published : 2018-11-25 12:29
Updated : 2019-02-04 06:50
NVD link : CVE-2018-19520
Mitre link : CVE-2018-19520
JSON object : View
CWE
CWE-94
Improper Control of Generation of Code ('Code Injection')
Products Affected
sdcms
- sdcms
php
- php