Rapid7

module

Sophos Web Protection Appliance Interface Authenticated Arbitrary Command Execution

Disclosed
Apr 8, 2014
Created
May 30, 2018

Description

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.

Author

Brandon Perry [email protected]

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/sophos_wpa_iface_exec
msf exploit(sophos_wpa_iface_exec) > show targets
...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

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.