Exploit-DB #22852
Description: SonicWALL CDP 5040 6.x - Multiple Vulnerabilities
Type: webapps
Platform: multiple
Date: 2012-11-20
Author: Vulnerability-Lab

Exploit:
Title:
======
SonicWALL CDP 5040 v6.x - Multiple Web Vulnerabilities


Date:
=====
2012-11-19


References:
===========
http://www.vulnerability-lab.com/get_content.php?id=549


VL-ID:
=====
549


Common Vulnerability Scoring System:
====================================
3.5


Introduction:
=============
Tapeless Enterprise-Level Data Backup and Protection, Without the Price Tag. Automatic, real-time data backup for 
servers, laptops and PCs. Features include file versioning, fast data recovery, and automatic offsite backup 
capabilities to protect businesses against disasters. SonicWALL� Continuous Data Protection (CDP) v6 is a next-
generation data backup and disaster recovery solution that automatically preserves and protects business-relevant 
data assets against loss from file, device, and location based disasters. With support for Windows�, Linux� and 
Mac OS� through a single Web GUI, CDP provides granular, globally enforced policy controls over the entire backup 
operation. Unmatched flexibility enables IT administrators to dictate what information to backup, what to exclude 
and how the information should be maintained to adhere to recovery and compliance requirements. A sophisticated 
new fileset backup methodology combined with agent-based data de-duplication moves and stores only unique data 
blocks. This speeds the backup process and optimizes bandwidth usage while maintaining total information continuity 
and the ability to flexibly restore multiple revisions. SonicWALL Continuous Data Protection v6 offers the 
comprehensive data protection organizations demand and the power administrators need for vigilant data backup 
and disaster recovery.

(Copy of the Vendor Homepage: http://sonicwall.com/emea/backup_and_recovery.html)


Abstract:
=========
Vulnerability Lab Research Team discovered multiple Vulnerabilities in SonicWalls Continuous Data Protection v6.x  5040 appliance application.


Report-Timeline:
================
2012-05-04:	Researcher Notification & Coordination
2012-05-08:	Vendor Notification 1
2012-08-10:	Vendor Notification 2
2012-08-16:	Vendor Response/Feedback
2012-11-01:	Vendor Fix/Patch by Check
2012-11-19:	Public Disclosure


Status:
========
Published


Affected Products:
==================
SonicWall
Product: Continues Data Protection GUI v5040 6.0.x


Exploitation-Technique:
=======================
Remote


Severity:
=========
Medium


Details:
========
Multiple persistent input validation vulnerabilities are detected in SonicWalls Continuous Data Protection v6.x  5040 appliance application.
The vulnerability allows an remote attacker or local low privileged user account to inject/implement malicious persistent script code 
on application side of the appliance application. 

The vulnerabilities are located in the network, accounts management and system settings modules with the bound vulnerable label 
delAppl (name, username & servername) parameters. An attackers can inject script code as name, username or servername via add function 
to manipulate the vulnerable module with malicious persistent web context. The persistent script code will be executed when the victim 
is processing to watch the vulnerable module listing (output|index).

Successful exploitation of the vulnerability result in session hijacking (customer/manager/admin) or stable (persistent) module 
context manipulation. Exploitation requires low user inter action and a low privileged web application user account.

Vulnerable Module(s):
				[+] Network > Settings [Name]
				[+] BMR > Accounts  [Username]
				[+] System > Settings [Server]

Vulnerable Parameter(s):
				[+] label delAppl - Name
				[+] label delAppl - Username
				[+] label delAppl - Servername


Proof of Concept:
=================
The persistent input validation vulnerabilities can be exploited by remote attackers with local low privileged user accounts and 
low required user interaction. For demonstration or reproduce ...

Review: Network > Settings > ADD > [Name] - label delAppl - Name

<label for="delAppl_0">>"[PERSISTENT SCRIPT CODE!]"></label></span></td><td class="tableLineContrast" 
name="ip"><span><label for="delAppl_0" >192.168.150.216</label></span></td><td 
class="tableLineContrast" name="netmask"><span><label for="delAppl_0" 
>255.255.255.0</label></span></td><td class="tableLineContrast" name="gateway"><span><label 
for="delAppl_0" >192.168.150.1</label></span></td><td class="tableLineContrast" nowrap=""><a 
class="swlEventEdit" href="#" title="Edit Entry"><img class="actionIcon" width="20" height="20" border="0" alt="Edit this entry" 
src="images/edit.gif"/></a></td><td> <input type="hidden" name="itemId" 
value="undefined"></input></td></tr></tbody></table></iframe></label>


Review: BMR > Accounts  [Username] - label delAppl - Username

<label for="delAppl_0">>"[PERSISTENT SCRIPT CODE!]"></label></span></td><td class="tableLineContrast" 
><span><label for="delAppl_0" >100000</label></span></td><td class="tableLineContrast" 
nowrap=""><a class="swlEventEdit" href="#" title="Edit Entry"><img class="actionIcon" width="20" height="20" border="0" 
alt="Edit this entry" src="images/edit.gif"/></a><a class="swlEventDelete" href="#" title="Delete Entry"><img 
class="actionIcon" width="20" height="20" border="0" alt="Delete this entry" 
src="images/trash.gif"/></a></td></tr></tbody></table></iframe></label>


Review: System > Settings [Server] - label delAppl - Servername

<label for="delAppl_3">>"[PERSISTENT SCRIPT CODE!]"></label></span></td><td class="tableLineContrast" 
nowrap=""><a class="swlEventDelete" href="#" title="Delete NTP Server"><img class="actionIcon" width="20" height="20" 
border="0" alt="Delete this entry" src="images/trash.gif"/></a></td><td> <input type="hidden" name="itemId" 
value="undefined"></input></td></tr></tbody></table></iframe></label>


Risk:
=====