-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===========================================================================
                         AUSCERT Security Bulletin

                              ASB-2009.1167.3
         A number of vulnerabilities have been identified in Open
                    Source SIM prior to version 2.1.5-4
                             22 December 2009

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:              Open Source SIM prior to version 2.1.5-4
Operating System:     Network Appliance
Impact/Access:        Execute Arbitrary Code/Commands -- Existing Account
                      Modify Arbitrary Files          -- Existing Account
Resolution:           Patch/Upgrade
CVE Names:            CVE-2009-4375 CVE-2009-4374 CVE-2009-4373
                      CVE-2009-4372  
Member content until: Wednesday, January 20 2010

Revision History:     December 22 2009: Added CVE reference
                      December 22 2009: Added CVE references
                      December 21 2009: Initial Release

OVERVIEW

        A number of vulnerabilities have been identified in Open Source SIM
        prior to version 2.1.5-4.


IMPACT

        The vendor has provided the following descriptions regarding these
        vulnerabilities:
        
        "A vulnerability has been discovered in OSSIM, which can be exploited 
        by malicious people to conduct SQL injection attacks. Input passed via 
        the "id_document" parameter to repository_attachment.php is not 
        properly sanitized before being used in a SQL query. This can be 
        exploited to manipulate SQL queries by injecting arbitrary SQL code.
        The vulnerability is confirmed in version 2.1.5. Other versions may 
        also be affected." [1]
        
        "OSSIM is prone to a remote command execution vulnerability because 
        the software fails to adequately sanitize user-supplied input. 
        Successful attacks can compromise the affected software and possibly 
        the computer running OSSIM." [2]
        
        "The vulnerability is caused due to an improper check in 
        repository_attachment.php script, allowing the upload of files with 
        arbitrary extensions to a folder inside the Webroot. This can be 
        exploited to e.g. execute arbitrary PHP code by uploading a specially 
        crafted PHP script containing some kind of Web Shell. Also, using path 
        traversal technique, an attacker can change the original destination 
        path." [3]


MITIGATION

        The vendor recommends upgrading to the latest version of Open Source 
        SIM. [4]


REFERENCES

        [1] SQL injection in OSSIM
            http://www.cybsec.com/vuln/OSSIM_2_1_5_SQLi.pdf

        [2] Remote Command Execution in OSSIM
            http://www.cybsec.com/vuln/OSSIM_2_1_5_Remote_Command_Execution.pdf

        [3] Arbitrary File Upload in OSSIM
            http://www.cybsec.com/vuln/OSSIM_2_1_5%20_Arbitrary_File_Upload.pdf

        [4] AlienVault - Creators of OSSIM Correlation and Security Suite
            http://www.alienvault.com/community.php?section=News

AusCERT has made every effort to ensure that the information contained
in this document is accurate.  However, the decision to use the information
described is the responsibility of each user or organisation. The decision to
follow or act on information or advice contained in this security bulletin is
the responsibility of each user or organisation, and should be considered in
accordance with your organisation's site policies and procedures. AusCERT
takes no responsibility for consequences which may arise from following or
acting on information or advice contained in this security bulletin.

If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:

        http://www.auscert.org.au/render.html?it=3192

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours 
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iD8DBQFLMEFwNVH5XJJInbgRAoSsAJ9UXiwvDsrbGH4OvKVYfXQKTMw0iQCfam39
9OIeKlPBVjhbj0UBgkDh7yg=
=eIpL
-----END PGP SIGNATURE-----