Synopsis
Sophos XG Firewall provides login pages for users at https://[target]/userportal/webpages/myaccount/login.jsp and administrators at https://[target]:4444/webconsole/webpages/login.jsp. These links can insert a value into the "username" login field through the "utype" parameter. For example, the following will pre-populate the "username" field to be albino_lobster:
https://[target]:4444/webconsole/webpages/login.jsp?utype=1albino_lobster
An attacker can also inject JavaScript through this method. The following will create a popup box that says “LOBSTER” when the user mouses over the username field:
https://[target]/userportal/webpages/myaccount/login.jsp?utype=lalbino_lobster%22%20onmouseover=%22alert(%27LOBSTER%27);%22
Note that Google Chrome detects/disables these attacks but Mozilla Firefox does not. Additionally, the Sophos XG Firewall comes with default admin credentials of "admin/admin" that can be used with the admin HTTP interface (port 4444) and SSH, as seen on page 8 of the Sophos XG Firewall Administrator Guide.
Solution
The vendor has released Sophos XG Firewall 16.05 MR1 to address this issue.
Additional References
https://www.sophos.com/en-us/medialibrary/PDFs/documentation/Sophos-XG-Firewall-Administrator-Guide.pdf?la=enhttps://community.sophos.com/products/xg-firewall/b/xg-blog/posts/sfos-16-05-1-mr1-released
Disclosure Timeline
All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.
Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.
For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.
If you have questions or corrections about this advisory, please email [email protected]