Sophos Web Appliance Remote/Secure Web Gateway Server up to 4.2.1.3 Web Admin Interface MgrDiagnosticTools.php exec $this->dtObj->executeCommand) command injection
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.4 | $0-$5k | 0.00 |
Summary
A vulnerability identified as critical has been detected in Sophos Web Appliance Remote and Secure Web Gateway Server up to 4.2.1.3. The affected element is the function exec of the file /controllers/MgrDiagnosticTools.php of the component Web Admin Interface. The manipulation of the argument $this->dtObj->executeCommand) leads to command injection.
This vulnerability is referenced as CVE-2016-9554. Remote exploitation of the attack is possible. Furthermore, an exploit is available.
You should upgrade the affected component.
Details
A vulnerability was found in Sophos Web Appliance Remote and Secure Web Gateway Server up to 4.2.1.3 (Firewall Software). It has been rated as critical. This issue affects the function exec of the file /controllers/MgrDiagnosticTools.php of the component Web Admin Interface. The manipulation of the argument $this->dtObj->executeCommand) with an unknown input leads to a command injection vulnerability. Using CWE to declare the problem leads to CWE-77. The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. Impacted is confidentiality, integrity, and availability. The summary by CVE is:
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.
The bug was discovered 02/24/2017. The weakness was published 01/28/2017 by Russell Sanford (Website). The advisory is shared at community.sophos.com. The identification of this vulnerability is CVE-2016-9554 since 11/22/2016. The attack may be initiated remotely. A simple authentication is required for exploitation. Technical details as well as a public exploit are known. MITRE ATT&CK project uses the attack technique T1202 for this issue.
The exploit is available at exploit-db.com. It is declared as proof-of-concept. By approaching the search of inurl:controllers/MgrDiagnosticTools.php it is possible to find vulnerable targets with Google Hacking. The vulnerability scanner Nessus provides a plugin with the ID 100846 (Sophos Web Appliance < 4.3.1 Multiple Remote Command Injection Vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CGI abuses and running in the context r.
Upgrading eliminates this vulnerability. A possible mitigation has been published before and not just after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at Exploit-DB (41414), Tenable (100846) and SecurityFocus (BID 95858†). Similar entry is available at VDB-96244. If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Product
Type
Vendor
Name
Version
License
Website
- Vendor: https://www.sophos.com/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.7VulDB Meta Temp Score: 6.4
VulDB Base Score: 6.3
VulDB Temp Score: 5.7
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 7.2
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Command injectionCWE: CWE-77 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
Google Hack: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 100846
Nessus Name: Sophos Web Appliance < 4.3.1 Multiple Remote Command Injection Vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Timeline
11/22/2016 🔍01/20/2017 🔍
01/28/2017 🔍
01/28/2017 🔍
01/28/2017 🔍
01/28/2017 🔍
02/24/2017 🔍
06/16/2017 🔍
05/16/2026 🔍
Sources
Vendor: sophos.comAdvisory: community.sophos.com
Researcher: Russell Sanford
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2016-9554 (🔍)
GCVE (CVE): GCVE-0-2016-9554
GCVE (VulDB): GCVE-100-96245
SecurityFocus: 95858 - Sophos Web Appliance CVE-2016-9554 Remote Command Injection Vulnerability
scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍
Entry
Created: 01/28/2017 22:32Updated: 05/16/2026 23:21
Changes: 01/28/2017 22:32 (69), 12/29/2019 21:29 (11), 12/08/2024 13:25 (18), 05/16/2026 23:21 (1)
Complete: 🔍
Cache ID: 216::103
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
No comments yet. Languages: en.
Please log in to comment.