module

Sophos Web Protection Appliance Interface Authenticated Arbitrary Command Execution

Disclosed
2014-04-08
Created
2018-05-30

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 bperry.volatile@gmail.com

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
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.