Re: SQL-injection, XSS in OSSIM (Open Source Security Information Management)



Hello,

I can confirm this affecting earlier versions as well, the XSS has been fixed some months ago, the SQL Injection (and others) were caused by a failure in the "punctuation" validation regexp. Just fixed that one as well as some others.

We're going to release a fixed version asap after stopping development in order to get a throughout security audit done. The SQL regexp I just fixed and we'll update the packages today.

Nonetheless, exposure should be minimal since:

a) You aren't going to provide public access to your SIM console, aren't you ?
b) Regarding the specific SQL injection mentioned in here (as said, there are more we're going to fix), you shouldn't give access to the policy section to normal users either.

I must thank you for pointing this out but would've appreciate a more "direct" contact, as it is considered a polite way of releasing bugs.

Greetings,

Dominique

Am 21.02.2008 um 13:47 schrieb marcin.kopec@xxxxxxxxxxx:

Application: OSSIM
http://www.ossim.net
Version: 0.9.9rc5
Note: it is possible that the problem affects also earlier OSSIM versions
Platforms: Linux
Bug: SQL injection, Cross Site Scripting
Exploitation: remote
Date: 21 Feb 2008
Author: Marcin Kopec
E-mail: marcin(dot)kopec(at)hotmail(dot)com

---------------------------------------

1) Introduction

OSSIM it's a free implementation of Security Information Management (SIM) system, equipped with many useful security tools (nessus, snort, p0f, ntop, ...) managed from easy-to-use web panel.

2) SQL injection

The bug exist in portname parameter of modifyportform.php
It's possible to obtain hashed administrator password when user have rights to do port modification in "PORTS" tab.

http://[host]/ossim/port/modifyportform.php?portname=ANY'%20and %201=2%20union%20select%20pass,2%20from%20ossim.users%20where %20login='admin

3) XSS

Quotes in OSSIM aren't property sanitized.
Below XSS may be executed without logging into the OSSIM.

http://[host]/ossim/session/login.php?dest=%22%3E%3Cscript %3Ealert(document.cookie)%3C/script%3E%3C!--



Relevant Pages

  • [waraxe-2004-SA#021 - Multiple vulnerabilities in phprofession 2.5 module for PostNuke]
    ... Unsanitaized variable "jcode" will open a way to exploit the XSS in phprofession: ... Good thing for webmasters is, that in case of MySql ... Point is, that this sql injection is in this moment non-critical, but it's ... You have an error in your SQL syntax. ...
    (Bugtraq)
  • Multiple Sql injection and XSS in Asp Nuke 0.80 (Working exploits included)
    ... Multiple Sql injection and XSS in Asp Nuke 0.80 ... multiple sql injection and xss in asp nuke 0.80. ... Syntax error converting the varchar value 'f2349ef3f76a2d980586cb945a1973ba8e9579a9c9411c043be85583f444e015' to a column of data type int. ...
    (Bugtraq)
  • Re: [Full-disclosure] on xss and its technical merit
    ... XSS isnt techincal no matter how its used ... execution flow and as such make the attack stealthier. ... or couldnt find any other web bugs (sql injection, ... FD is a general security list. ...
    (Full-Disclosure)
  • Multiple vulnerabilities in Blur6ex
    ... blur6ex is a content management system for manage a blog. ... I got XSS and full path disclosures in one step. ... SQL injection ... You have an error in your SQL syntax; check the manual that corresponds to your ...
    (Bugtraq)
  • PHP JackKnife [multiple vulnerabilities]
    ... sql injection, xss, full path ... PHP JackKnife is freely downloadable PHP gallery software that you can use to instantly create you own online web gallery ...
    (Bugtraq)