CVE-2016-9554

HIGH

Sophos Web Appliance 4.2.1.3 - Remote Command Injection via MgrDiagnosticTools.php URL Parameter

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2016-9554. PoCs published by xort.

AI-analyzed exploit summary This Metasploit module exploits a command injection vulnerability in Sophos Web Appliance <= v4.2.1.3 via the diagnostic_tools wget functionality. It authenticates, injects commands via URL-encoded payloads, and either executes arbitrary commands or deploys an ELF payload for a reverse shell.

Description

The Sophos Web Appliance Remote / Secure Web Gateway server (version 4.2.1.3) is vulnerable to a Remote Command Injection vulnerability in its web administrative interface. These vulnerabilities occur in MgrDiagnosticTools.php (/controllers/MgrDiagnosticTools.php), in the component responsible for performing diagnostic tests with the UNIX wget utility. The application doesn't properly escape the information passed in the 'url' variable before calling the executeCommand class function ($this->dtObj->executeCommand). This function calls exec() with unsanitized user input allowing for remote command injection. The page that contains the vulnerabilities, /controllers/MgrDiagnosticTools.php, is accessed by a built-in command answered by the administrative interface. The command that calls to that vulnerable page (passed in the 'section' parameter) is: 'configuration'. Exploitation of this vulnerability yields shell access to the remote machine under the 'spiderman' user account.

Exploits (1)

exploitdb WORKING POC VERIFIED
by xort · rubywebappslinux
https://www.exploit-db.com/exploits/41414

This Metasploit module exploits a command injection vulnerability in Sophos Web Appliance <= v4.2.1.3 via the diagnostic_tools wget functionality. It authenticates, injects commands via URL-encoded payloads, and either executes arbitrary commands or deploys an ELF payload for a reverse shell.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Sophos Web Appliance <= v4.2.1.3
Auth required
Prerequisites: Valid admin credentials · Network access to the target's administrative interface
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (3)

Core 3
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/95858
Exploit x_refsource_misc
http://pastebin.com/UB8Ye6ZU

Scores

CVSS v3 7.2
EPSS 0.2445
EPSS Percentile 97.6%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-77
Status published
Products (1)
sophos/web_appliance 4.2.1.3
Published Jan 28, 2017
Tracked Since Feb 18, 2026