vendor:
w-CMS
by:
ICheer_No0M
9,3
CVSS
HIGH
Remote Code Execution
94
CWE
Product Name: w-CMS
Affected Version From: 2.0.1
Affected Version To: 2.0.1
Patch Exists: NO
Related CWE: N/A
CPE: a:w-cms:w-cms:2.0.1
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Windows 7 + PHP 5.2.6
2013
w-CMS 2.0.1 Remote Code Execution Vulnerability
w-CMS 2.0.1 is vulnerable to a remote code execution vulnerability due to insufficient sanitization of user-supplied input. An attacker can exploit this vulnerability by sending a crafted HTTP request to the vulnerable application, which will allow the attacker to execute arbitrary code on the server. The vulnerable code is located in the userFunctions.php file, where the procActivity() function is called with user-supplied input. This function then writes the user-supplied input to a file, which is specified by the 'type' parameter. This allows an attacker to write arbitrary code to a file, which can then be executed on the server.
Mitigation:
The application should validate user-supplied input to ensure that it does not contain malicious code. Additionally, the application should not allow user-supplied input to be used to specify the name of a file that is written to the server.