Advisory Details

December 15th, 2016

Sophos XG Firewall Controller filter SQL Injection Remote Code Execution Vulnerability

ZDI-16-671
ZDI-CAN-3745

CVE ID
CVSS SCORE 6.5, AV:N/AC:L/Au:S/C:P/I:P/A:P
AFFECTED VENDORS Sophos
AFFECTED PRODUCTS XG Firewall
VULNERABILITY DETAILS


This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Sophos XG Firewall. Authentication is required to exploit this vulnerability.

The specific flaw exists within the handling of the filter parameter provided to the /userportal/Controller endpoint. The issue lies in the failure to properly validate a user-supplied string before using it to construct SQL queries. An attacker can leverage this vulnerability to execute arbitrary code under the context of the database.

ADDITIONAL DETAILS Sophos has issued an update to correct this vulnerability. More details can be found at:
https://blogs.sophos.com/2016/10/04/xg-firewall-v16-has-arrived/
DISCLOSURE TIMELINE
  • 2016-06-06 - Vulnerability reported to vendor
  • 2016-12-15 - Coordinated public release of advisory
CREDIT Alexander Innes
BACK TO ADVISORIES