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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| WAN Emulator | WAN Emulator | 2.3 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
WAN Emulator v2.3 Command Execution
exploit/linux/http/wanem_exec
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/linux/http/wanem_exec.rb exploit
- https://www.exploit-db.com/exploits/21190 exploit
- https://sourceforge.net/projects/wanem/ product
- https://www.vulncheck.com/advisories/wan-emulator-command-execution third-party-advisory