OSSIM Cross-Site Scripting and SQL Injection Vulnerabilities

by Carol~ Moderator - 5/2/12 5:15 AM

In Reply to: VULNERABILITIES / FIXES - May 02, 2012 by Carol~ Moderator

Release Date : 2012-05-02

Criticality level : Less critical
Impact : Cross Site Scripting
Manipulation of data
Where : From remote
Solution Status : Unpatched

Software: OSSIM (AlienVault Open Source SIM) 3.x

Description:
Stefan Schurtz has discovered two vulnerabilities in OSSIM, which can be exploited by malicious users to conduct SQL injection attacks and by malicious people to conduct cross-site scripting attacks.

1) Input passed via the "url" parameter to top.php is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

2) Input passed via the "time[0][0]" parameter to forensics/base_qry_main.php is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation requires access rights to the forensics section.

NOTE: This can further be exploited to conduct cross-site scripting attacks via a SQL error message.

The vulnerabilities are confirmed in version 3.1. Other versions may also be affected.

Solution:
Edit the source code to ensure that input is properly sanitised.

Provided and/or discovered by:
Stefan Schurtz

Original Advisory:
http://www.koramis.com/advisories/2012/KORAMIS-ADV2012-002.txt

http://secunia.com/advisories/49005/