Document Title: =============== Dell SonicWall EMail Security Appliance Application v7.4.5 - Multiple Vulnerabilities References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1191 Dell (SonicWall) Security Bulletin: http://www.sonicwall.com/us/shared/download/Support-Bulletin_Email-Security_Scripting_Vulnerability__Resolved_in__ES746.pdf Release Date: ============= 2014-03-26 Vulnerability Laboratory ID (VL-ID): ==================================== 1191 Common Vulnerability Scoring System: ==================================== 3.5 Product & Service Introduction: =============================== While most businesses now have some type of anti-spam protection, many must deal with cumbersome management, frustrated users, inflexible solutions, and a higher-than-expected total cost of ownership. SonicWALL® Email Security can help. Elegantly simple to deploy, manage and use, award-winning SonicWALL Email Security solutions employ a variety of proven and patented technology designed to block spam and other threats effectively, easily and economically. With innovative protection techniques for both inbound and outbound email plus unique management tools, the Email Security platform delivers superior email protection today—while standing ready to stop the new attacks of tomorrow. SonicWALL Email Security can be flexibly deployed as a SonicWALL Email Security Appliance, as a software application on a third party Windows® server, or as a SonicWALL Email Security Virtual Appliance in a VMW® environment. The SonicWALL Email Security Virtual Appliance provides the same powerful protection as a traditional SonicWALL Email Security appliance, only in a virtual form, to optimize utilization, ease migration and reduce capital costs. (Copy of the Vendor Homepage: http://www.sonicwall.com/us/products/Anti-Spam_Email_Security.html) Abstract Advisory Information: ============================== The Vulnerability Laboratory Research Team discovered multiple persistent input validation vulnerabilities in the official Dell SonicWall EMail Security Appliance v7.4.6 Web-Application. Vulnerability Disclosure Timeline: ================================== 2014-02-07: Researcher Notification & Coordination (Benjamin Kunz Mejri) 2014-02-08: Vendor Notification (Dell Security Team) 2014-02-14: Vendor Response/Feedback (Dell Security Team) 2014-03-25: Vendor Fix/Patch (SonicWall Developer Team) 2014-03-26: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== DELL SonicWall Product: EMail Security Appliance Application 7.4.5.1393 Exploitation Technique: ======================= Remote Severity Level: =============== Medium Technical Details & Description: ================================ Multiple persistent input validation web vulnerabilities has been discovered in the official Dell SonicWall EMail Security Appliance v7.4.6 Web-Application. The vulnerability allows remote attackers or low privileged user accounts to inject own malicious script codes via POST method request to compromise the application or user session data/information. The first vulnerability is located in the `filename` value of the `settings_advanced.html` file. Remote attackers and low privileged application user accounts are able to inject own malicious script codes to the application-side of the `Advanced Settings - Patch hochladen > Patch-Datei` module. Attackers can manipulate the file upload POST method request by tampering the session. Next to tampering the session the attacker exchange the file name with a malicious script code as payload. In the next step the website reloads the next firmware upgrade page (wait.html) with the file details. The execute of the injected script code via POST method request occurs at the location of the listed file name value. The security risk of the persistent validation web vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.5(-). The second vulnerability is located in the file name value of the settings_upload_dlicense.html file. Remote attackers and low privileged application user accounts are able to inject own malicious script codes to the application-side of the Lizenz Verwaltung - Lizenzen Upload module. The request method is POST and the attack vector is persistent. The execute occurs in the exception context of the license update page module. The security risk of the persistent validation web vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.0(+). Exploitation of both vulnerabilities requires to bypass the regular validation of the web application appliance. To bypass the filter remote attackers can inject two payloads with a split in the middle. The validation encodes the first injected payload and the second after the split executes the code. Exploitation of the remote web vulnerabilities requires a privileged user account without user interaction or a remote user with medium to high user interaction. Successful exploitation of the persistent web vulnerabilities results in session hijacking, persistent external redirects, persistent phishing and persistent manipulation of vulnerable connected or affected modules. Request Method: [+] POST Vulnerable Module: [+] Advanced Settings - Patch hochladen > Patch-Datei (settings_advanced.html) [+] Lizenz Verwaltung - Lizenzen Upload > (settings_upload_dlicense.html) Vulnerable Parameter(s): [+] file name Affected Module(s): [+] Firmware Update - Waiting Page (wait.html) [+] License Update Page (exception) Affected Version(s): [+] 7.4.6 Affected Appliance Model(s): [+] Dell SonicWall EMail Security Appliance Web Application - All Models Proof of Concept (PoC): ======================= The two persistent input validation web vulnerabilities can be exploited by remote attackers with low privileged email security application user account and low user interaction or without privileged web-application user account on client-side via POST inject. For security demonstration or to reproduce the vulnerability follow the provided information and steps below. URL: Input http://ess.localhost:8619/settings_advanced.html URL: Execute http://ess.localhost:8619/wait.html PoC: Firmware Update - Status Waiting Site
Die Firmware wird aktualisiert...
Installationsdateien werden vorbereitet. Starten Sie keine Dienste neu!
Email Security ist immer noch mit der Verarbeitung von E-Mails beschäftigt.
Aktuelle Produktversion von Email Security 7.4.5.1393.
Upgrade mit >>"%20<[PERSISTENT INJECTED SCRIPT CODE!]>.jpg.

Abgelaufene Zeit: 00:00:36
--- PoC Session Logs [POST] --- Status: 302[Moved Temporarily] POST http://ess.localhost:8619/settings_advanced.html Load Flags[LOAD_DOCUMENT_URI LOAD_INITIAL_DOCUMENT_URI ] Größe des Inhalts[0] Mime Type[text/html] Request Header: Host[esserver.demo.sonicwall.com] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Accept-Language[de-de,de;q=0.8,en-us;q=0.5,en;q=0.3] Accept-Encoding[gzip, deflate] Referer[http://esserver.demo.sonicwall.com/settings_advanced.html] Cookie[s_cc=true; s_sq=%5B%5BB%5D%5D; JSESSIONID=48D1C2695CBD91CAAA187C5A9DFFD5DC] Connection[keep-alive] POST-Daten: POST_DATA[-----------------------------213272019431414 Content-Disposition: form-data; name="sortFiles" false -----------------------------213272019431414 Content-Disposition: form-data; name="smtpBanner" ><>