Rapid7

module

WAN Emulator v2.3 Command Execution

Disclosed
Aug 12, 2012
Created
May 30, 2018

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.

Author

Platform

Unix

Architectures

cmd

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/linux/http/wanem_exec
msf exploit(wanem_exec) > show targets
...targets...
msf exploit(wanem_exec) > set TARGET < target-id >
msf exploit(wanem_exec) > show options
...show and set options...
msf exploit(wanem_exec) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.