vendor:
CMS Made Simple
by:
Keerati T.
7.5
CVSS
HIGH
Remote Code Execution
78
CWE
Product Name: CMS Made Simple
Affected Version From: 2.1.6
Affected Version To: 2.1.6
Patch Exists: YES
Related CWE: CVE-2018-7448
CPE: 2.1.6
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Linux
2018
CMS Made Simple 2.1.6 – Remote Code Execution
Arbitrary PHP code can be injected into configuration file (config.php) after installation has been finished. In order to inject PHP code, fresh install and valid database credentials is required. Application will force an installer (usually "www-data" due to web-based installation) to set a write permission (777) to destination directory and related installation file. An attacker will proceed installation process until reach step 4 and inject malicious PHP code into "timezone" parameter. Once PHP code has been injected to "config.php", an attacker will be able to execute OS command by accessing backdoor "config.php" file along with injected parameter which contain OS command value.
Mitigation:
Ensure that the web server is configured to deny write access to the configuration file, and that the configuration file is not accessible from the web.