Document Title: =============== SonicWall SonicOS 7.5.0.12 & 6.x - Client Side Cross Site Scripting Vulnerability References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1359 Release Date: ============= 2015-04-23 Vulnerability Laboratory ID (VL-ID): ==================================== 1359 Common Vulnerability Scoring System: ==================================== 3 Product & Service Introduction: =============================== The proven SonicOS architecture is at the core of every Dell™ SonicWALL™ firewall from the SuperMassive™ E10800 to the TZ 100. SonicOS uses deep packet inspection technology in combination with multi-core specialized security microprocessors to deliver application intelligence, control, and real-time visualization, intrusion prevention, high-speed virtual private networking (VPN) technology and other robust security features. (Copy of the Vendor Homepage: http://www.sonicwall.com/us/en/products/Network-Security-Platform.html ) Abstract Advisory Information: ============================== The Vulnerability Laboratory Research Team discovered a cross site vulnerability in the official SonicWall SonicOS v6.x and v7.5.0.12. Vulnerability Disclosure Timeline: ================================== 2015-04-23: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== DELL Product: Sonicwall SonicOS 7.5.0.12 & v6.x Exploitation Technique: ======================= Remote Severity Level: =============== Medium Technical Details & Description: ================================ Multiple client-side cross site scripting web vulnerabilities has been discovered in the official SonicWall SonicOS v6.x and v7.5.0.12. The security vulnerability allows remote attackers to manipulate client-side application to browser requests to compromise session information. The vulnerability is located in the `searchSpoof and searchSpoofIpDet` values of the `Network > MAC-IP Anti-spoof` module. Remote attackers are able to inject malicious script codes to client-side application requests. Remote attackers are able to prepare special crafted weblinks to execute client-side script code that compromises the sonicos application user/admin session data. The execution of the script code occurs in the mac-ip anti spoof module. The attack vector of the vulnerability is located on the client-side of the online-service and the request method to inject or execute the code is GET. The security risk of the non-persistent cross site vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.0. Exploitation of the non-persistent cross site scripting web vulnerability requires no privileged web application user account and low user interaction. Successful exploitation of the vulnerability results in session hijacking, non-persistent phishing, non-persistent external redirects, non-persistent load of malicious script codes or non-persistent web module context manipulation. Request Method(s): [+] GET Vulnerable Module(s): [+] Network > MAC-IP Anti-spoof Vulnerable File(s): [+] macIpSpoofView.html Vulnerable Parameter(s): [+] searchSpoof [+] searchSpoofIpDet During the client security tests the research team noticed that the official vm version and the all appliance models are affected by the security issue. The following versions and models of the sonicwall appliance web-application are affected by the remote cross site scripting vulnerability. Affected Model(s): [+] (CASS) Anti Spam - UTM Integrated Anti-Spam [+] (CASS) Anti Spam - Enhanced Comprehensive Anti-spam [+] (CASS) Anti Spam - Email Security Affected Version(s): [+] SonicOS v7.5.0.12 [+] SonicOS v6.x Proof of Concept (PoC): ======================= The client-side cross site scripting vulnerability can be exploited by remote attackers without privileged application user account and with low or medium user interaction. For security demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue. PoC: Payload(s) https://cas.127.0.0.1:8080/macIpSpoofView.html?mainFrameYAxis=0&startItem=0&startItemIpDet=0&currIfaceConfig=0&currIfaceConfigIndex=1&searchSpoof=%22%3E%3Ciframe%20src=http://www.vulnerability-lab.com onload=alert("PENTEST")%20<&searchSpoofIpDet=[x] https://cas.127.0.0.1:8080/macIpSpoofView.html?mainFrameYAxis=0&startItem=0&startItemIpDet=0&currIfaceConfig=0&currIfaceConfigIndex=1&searchSpoof=[x] &searchSpoofIpDet=%22%3E%3Ciframe%20src%3Da%20onload%3Dalert%28%22PENTEST%22%29%20 PoC: Exploit Sonicwall AntiSpam "SonicOS Enhanced 5.9.0.7" - (searchSpoof & searchSpoofIpDet) Cross Site Scripting PoC