Rapid7 Vulnerability & Exploit Database

Sophos Web Protection Appliance Interface Authenticated Arbitrary Command Execution

Back to Search

Sophos Web Protection Appliance Interface Authenticated Arbitrary Command Execution



This module takes advantage of two vulnerabilities in order to gain remote code execution as root as an otherwise non-privileged authorized user. By taking advantage of a mass assignment vulnerability that allows an unprivileged authenticated user to change the administrator's password hash, the module updates the password to login as the admin to reach the second vulnerability. No server-side sanitization is done on values passed when configuring a static network interface. This allows an administrator user to run arbitrary commands in the context of the web application, which is root when configuring the network interface. This module will inadvertently delete any other users that may have been present as a side effect of changing the admin's password.


  • Brandon Perry <bperry.volatile@gmail.com>






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/sophos_wpa_iface_exec
msf exploit(sophos_wpa_iface_exec) > show targets
msf exploit(sophos_wpa_iface_exec) > set TARGET < target-id >
msf exploit(sophos_wpa_iface_exec) > show options
    ...show and set options...
msf exploit(sophos_wpa_iface_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