Document Title: =============== FortiWeb 4kC,3kC,1kC & VA - Cross Site Vulnerabilities References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=702 http://www.fortiguard.com/advisory/FG-IR-012-008.html CVE ID: 2012-6346 Release Date: ============= 2012-12-02 Vulnerability Laboratory ID (VL-ID): ==================================== 702 Common Vulnerability Scoring System: ==================================== 2.1 Product & Service 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 Advisory Information: ============================== The Vulnerability Laboratory Research Team discovered multiple cross site scripting vulnerabilities in Fortinets FortiWeb 4000C, 3000C/3000CFsx, 1000C, 400C & Virtual Appliance. Vulnerability Disclosure Timeline: ================================== 2012-10-01: Researcher Notification & Coordination 2012-10-05: Vendor Notification 2012-10-11: Vendor Response/Feedback 2012-11-11: Vendor Fix/Patch 2012-12-03: Public Disclosure Discovery Status: ================= Published Affected Product(s): ==================== Fortinet Product: FortiWeb Application Series 4000C, 3000C/3000CFsx, 1000C, 400C & Virtual Appliance Exploitation Technique: ======================= Remote Severity Level: =============== Low Technical Details & Description: ================================ 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 (PoC): ======================= 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)