Rapid7 Vulnerability & Exploit Database

WAN Emulator v2.3 Command Execution

Back to Search

WAN Emulator v2.3 Command Execution

Disclosed
08/12/2012
Created
05/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(s)

  • bcoles <bcoles@gmail.com>

Platform

Unix

Architectures

cmd

Development

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

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;