{"schemaVersion":3,"id":"CVE-2016-9554","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2017-01-28T12:38:00.000Z","modified":"2024-08-06T02:50:38.595Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.2,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":9,"severity":"high","vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.25063,"percentile":0.97911,"severity":"high","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.4330000000000028,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.2463},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.21308,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.25063,"percentile":0.97911}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.21308,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.2463,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.25063,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.25063,"percentile":0.97911}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_503A50CA444AB808","name":"Exploit Reference (pastebin.com)","source":"reference","url":"http://pastebin.com/UB8Ye6ZU","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"41414","name":"Sophos Web Appliance 4.2.1.3 - DiagnosticTools Remote Command Injection (Metasploit)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/41414","maturity":"poc","reliabilityScore":0.8,"verified":true,"type":null,"platforms":["linux"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"webapps","platform":"linux","file":"exploits/linux/webapps/41414.rb","codes":["CVE-2016-9554"]},"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command ('Command Injection')","description":"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.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/77.html"}],"affected":[{"vendor":"sophos","product":"web_appliance","name":"Web Appliance","label":"web_appliance","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.2.1.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.2.1.3","eol":null,"hubHref":"/vendor/sophos/web_appliance"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.securityfocus.com/bid/95858","label":"www.securityfocus.com/bid/95858","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"http://pastebin.com/UB8Ye6ZU","label":"pastebin.com/UB8Ye6ZU","hostname":"pastebin.com","tags":["X Refsource MISC","Exploit"]},{"url":"https://community.sophos.com/products/web-appliance/b/blog/posts/release-of-swa-version-4-3-1","label":"community.sophos.com/products/web-appliance/b/blog/posts/release-of-swa-version-4-3-1","hostname":"community.sophos.com","tags":["X Refsource CONFIRM","Release Notes"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2017-01-28T12:38:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T02:50:38.595Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T00:16:40.928Z","stale":false,"partial":false}}