CVE-2020-12271: Sophos SFOS SQL Injection Vulnerability
A SQL injection issue was found in SFOS 17.0, 17.1, 17.5, and 18.0 before 2020-04-25 on Sophos XG Firewall devices, as exploited in the wild in April 2020. This affected devices configured with either the administration (HTTPS) service or the User Portal exposed on the WAN zone. A successful attack may have caused remote code execution that exfiltrated usernames and hashed passwords for the local device admin(s), portal admins, and user accounts used for remote access (but not external Active Directory or LDAP passwords)
Other sources
Sophos Firewall operating system (SFOS) firmware contains a SQL injection vulnerability when configured with either the administration (HTTPS) service or the User Portal is exposed on the WAN zone. Successful exploitation may cause remote code execution to exfiltrate usernames and hashed passwords for the local device admin(s), portal admins, and user accounts used for remote access (but not external Active Directory or LDAP passwords).
— CISA
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Sophos XG Firewall (SFOS)to a version that resolves this vulnerability.Fixed in 2020-04-25 - Configuration
Ensure the administration (HTTPS) service is not exposed on the WAN zone to prevent SQL injection exploitation.
Sophos Firewall (SFOS) administration (HTTPS) service exposed_on_WAN_zone = false - Configuration
Ensure the User Portal is not exposed on the WAN zone to prevent SQL injection exploitation.
Sophos Firewall (SFOS) User Portal exposed_on_WAN_zone = false - Operational
If the device may have been exploited, review local device admin(s), portal admins, and remote-access user accounts because usernames and hashed passwords may have been exfiltrated; rotate/reset the affected credentials as needed.
Event History
Frequently Asked Questions
What is the severity of CVE-2020-12271?
The severity of CVE-2020-12271 is critical with a CVSS score of 9.8.
Which software versions are affected by CVE-2020-12271?
SFOS versions 17.0, 17.1, 17.5, and 18.0 are affected by CVE-2020-12271.
How can I fix the Sophos SFOS SQL Injection Vulnerability (CVE-2020-12271)?
To fix the Sophos SFOS SQL Injection Vulnerability (CVE-2020-12271), update to a patched version provided by Sophos.
Where can I find more information about CVE-2020-12271?
You can find more information about CVE-2020-12271 on the Sophos community website, CWE website, and the Sophos news website.