CVE-2018-19520
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…
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (2.92%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
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.
- CVSS 3.0
- 8.8 HIGHCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 2.92% probability · 86th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-94
- Affected
- sdcms/sdcms · php/php
- Source
- cve@mitre.org
References
- https://blog.whiterabbitxyj.com/cve/SDCMS_1.6_code_execution.docExploit, Third Party Advisory
- https://github.com/WhiteRabbitc/WhiteRabbitc.github.io/blob/master/cve/SDCMS_1.6_code_execution.docExploit, Third Party Advisory
- https://blog.whiterabbitxyj.com/cve/SDCMS_1.6_code_execution.docExploit, Third Party Advisory
- https://github.com/WhiteRabbitc/WhiteRabbitc.github.io/blob/master/cve/SDCMS_1.6_code_execution.docExploit, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.