{"id":"MSF-linux--http--wanem_exec","name":"WAN Emulator v2.3 Command Execution","description":"This module exploits a command execution vulnerability in WAN Emulator version 2.3 which can be abused to allow unauthenticated users to execute arbitrary commands under the context of the 'www-data' user. The 'result.php' script calls shell_exec() with user controlled data from the 'pc' parameter. This module also exploits a command execution vulnerability to gain root privileges. The 'dosu' binary is suid 'root' and vulnerable to command execution in argument one.","cves":["CVE-2012-10041"],"author":"bcoles","published":"2012-08-12","platform":"Unix","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/linux/http/wanem_exec.rb","path":"modules/exploits/linux/http/wanem_exec.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"wanem_exec.rb","vulnerabilities":[{"id":"CVE-2012-10041","state":"PUBLISHED","title":"WAN Emulator v2.3 Command Execution","titleSource":"CVE Program","description":"WAN Emulator v2.3 contains two unauthenticated command execution vulnerabilities. The result.php script calls shell_exec() with unsanitized input from the pc POST parameter, allowing remote attackers to execute arbitrary commands as the www-data user. The system also includes a SUID-root binary named dosu, which is vulnerable to command injection via its first argument. An attacker can exploit both flaws in sequence to achieve full remote code execution and escalate privileges to root.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2012-10041","cvss":{"version":"4.0","baseScore":9.3,"severity":"critical","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2012-10041"},"updatedAt":"2026-04-07T14:02:37.528Z","retrievedAt":"2026-11-26T13:57:36.401Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-linux--http--wanem_exec.png?v=2","url":"https://exploitbin.com/exploits/MSF-linux--http--wanem_exec","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--wanem_exec/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--wanem_exec/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}