Exploit database

Vulnerability

CVE-2014-2850

Vulnerability details

Score
8.5
Severity
high

CVSS 2.0 · NVD

Vector string

AV:N/AC:M/Au:S/C:C/I:C/A:C

Description

The network interface configuration page (netinterface) in Sophos Web Appliance before 3.8.2 allows remote administrators to execute arbitrary commands via shell metacharacters in the address parameter.

CVE Program

Exploit source choices

2 sources
Sophos Web Protection Appliance Interface Authenticated Arbitrary Command Execution
MSF-linux--http--sophos_wpa_iface_execMetasploitUnix / remote

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.

2014-04-08sophos_wpa_iface_exec.rb