Document Title: =============== SonicWall GMS v8.1 - Filter Bypass & Persistent Vulnerability References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1819 Release Notes: http://documents.software.dell.com/sonicwall-gms-os/8.2/release-notes/known-issues?ParentProduct=867 Release Date: ============= 2018-01-12 Vulnerability Laboratory ID (VL-ID): ==================================== 1819 Common Vulnerability Scoring System: ==================================== 4.1 Vulnerability Class: ==================== Multiple Current Estimated Price: ======================== 1.000a! - 2.000a! Product & Service Introduction: =============================== Dell SonicWALL`s management and reporting solutions provide a comprehensive architecture for centrally creating and managing security policies, providing real-time monitoring and alerts, and delivering intuitive compliance and usage reports, all from a single management interface. Whether your organization is a small- or medium-sized business, a distributed enterprise or a managed service provider, DellaC/ SonicWALLaC/ offers software and appliance solutions to meet its needs. The award-winning Dell SonicWALL Global Management System (GMS) provides organizations, distributed enterprises and service providers with a flexible, powerful and intuitive solution to centrally manage and rapidly deploy SonicWALL firewall, anti-spam, backup and recovery, and secure remote access solutions. Flexibly deployed as software, hardwareain the form of the Universal Management Appliance (UMA)aor a virtual appliance, SonicWALL GMS also provides centralized real-time monitoring and comprehensive policy and compliance reporting to drive down the cost of owning and managing SonicWALL security appliances. Multiple GMS software, hardware, and virtual appliance agents, when deployed in a cluster, can scale to manage thousands of SonicWALL security appliances. This makes GMS an ideal solution for small- to medium-sized businesses, enterprises and managed service providers that have either single-site or distributed multi-site environments. (Copy of the Vendor Homepage: http://www.sonicwall.com/emea/en/products/Centralized_Management_Reporting.html ) Abstract Advisory Information: ============================== The Vulnerability Laboratory Core Research Team discovered filter bypass and an application-side input validation vulnerability in the official SonicWall GMS v8.1 appliance web-application. Vulnerability Disclosure Timeline: ================================== 2018-01-12: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== DELL SonicWall Product: SonicWall GMS Networks Appliance Application 8.1 (VA) Exploitation Technique: ======================= Remote Severity Level: =============== Medium Technical Details & Description: ================================ A persistent web vulnerability and filter bypass issue has been discovered in the SonicWall GMS v8.1 appliance web-application. The application-side vulnerability allows remote attacker or privileged user accounts to inject own malicious persistent script codes to the sonicwall gms appliance web-application. The filter bypass issue allows an attacker to bypass the basic application validation. The vulnerability is located in the `newName` and `Name` values of the `/sgms/TreeControl` module POST method request. Attackers are able to inject own payloads as name in the firewall device name listing to compromise session data or the java module. The method to inject is POST and the attack vector is located on the application-side of the sonicwall gms appliance web-application. The basic fitler validation of the gms appliance web-application encodes basic strings like frames and other tags by a restriction of privileges on execution of for example iframes. Remote attackers can bypass the validation by usage of a double path value with double quotes. The way to bypass is very unique to the basic configuration of the appliance web-application. The security risk of the persistent vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 4.1. Exploitation of the persistent web vulnerability requires a low privileged account with restricted access and low user interaction. Successful exploitation of the vulnerabilities results in persistent phishing mails, session hijacking, persistent external redirect to malicious sources and application-side manipulation of affected or connected module context. Request Method(s): [+] POST Vulnerable Section(s): [+] Firewall (Device List) Affected Module(s): [+] ./sgms/TreeControl Vulnerable Parameter(s): [+] newName [+] name Proof of Concept (PoC): ======================= The filter bypass issue and persistent vulnerability can be exploited by remote attackers with low privileged user account and low user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue. Manual steps to reproduce the vulnerability ... 1. Login to the gms 8.x appliance web-application 2. Click on top the firewall module in the menu 3. Surf to the firewall device listing 4. Change the input name to a script code payload 5. Save the entry 6. Now the no privleges exception occurs, refresh 7. The code executes in the firewall device listing 8. Successful reproduce of the vulnerability! PoC: Payload(s) ">"