免责声明
此脚本仅用于教育和测试目的。请负责任地使用,并确保您已获得测试目标 Confluence 实例的权限。未经授权的测试是非法且不道德的。
此脚本用于检查 Confluence 实例是否存在 CVE-2023-22515 漏洞,这是一个影响 Atlassian Confluence Data Center 和 Server 8.0.0 及以上版本的严重访问控制漏洞。该脚本不会利用漏洞,仅检查版本和设置模式配置。
requests 库packaging 库您可以使用 pip 安装所需库:
pip install requests packaging
克隆仓库或下载脚本文件。
在您的 Python 环境中运行脚本:
python confluence_vulnerability_check.py
在提示时输入 Confluence 实例的 URL(例如 http://example.com)。
脚本将检查 Confluence 版本,并根据版本和设置模式检查判断实例是否存在 CVE-2023-22515 漏洞。
输出
脚本将输出 Confluence 版本,并告知您实例是否基于版本和设置模式检查存在漏洞。示例输出:
Enter the URL of the Confluence instance (e.g., http://example.com): http://example.com
Confluence version detected: 7.19.22
The Confluence instance is not vulnerable to CVE-2023-22515.
贡献
欢迎贡献!请提出 issue 或提交 pull request。