Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
POC_CVE-2026-42589 — POC_CVE-2026-42589 | Kitploit
工具/GitHubGitHub/fineman999/poc_cve-2026-42589
漏洞分析漏洞利用Web应用程序漏洞利用渗透测试学习与教育实验室与实践
GitHubfineman999/poc_cve-2026-42589

POC_CVE-2026-42589

POC_CVE-2026-42589

查看仓库
133个月前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

POC_CVE-2026-42589

针对影响 Gotenberg 的 CVE-2026-42589 的本地复现实验室及 nuclei 模板草稿。

摘要

CVE-2026-42589 是 Gotenberg 中一个未经认证的远程代码执行问题,由元数据键中的换行符注入引起,具体在:

root@kitploit:~
POST /forms/pdfengines/metadata/write

受影响的 Gotenberg 将用户控制的元数据键转发给 ExifTool,且未拒绝控制字符。一个包含 JSON 转义换行符的元数据键可能被拆分为额外的 ExifTool 参数。

本实验室用于验证:

  • gotenberg/gotenberg:8.29.1 上的脆弱行为
  • gotenberg/gotenberg:8.31.0 上的修复行为

nuclei 模板仅使用非破坏性的 sleep 6 延迟检查。

参考

  • GitHub 安全建议:https://github.com/gotenberg/gotenberg/security/advisories/GHSA-rqgh-gxv4-6657
  • 修复版本:https://github.com/gotenberg/gotenberg/releases/tag/v8.31.0
  • ExifTool 文档:https://exiftool.org/exiftool_pod.html

文件

  • docker-compose.yml
  • docker-compose.latest.yml
  • CVE-2026-42589.yaml
  • manual_verify.py
  • sample.pdf
  • README.md

易受攻击的测试

启动 Gotenberg 8.29.1:

root@kitploit:~
docker compose down -v
docker compose up -d
docker compose logs --tail=100 gotenberg

检查版本:

root@kitploit:~
curl -s http://127.0.0.1:3000/version

手动原始 multipart 延迟检查:

root@kitploit:~
python3 manual_verify.py http://127.0.0.1:3000

预期的脆弱信号:

root@kitploit:~
HTTP/1.1 500 Internal Server Error
TOTAL_TIME=6.xs

观察到的脆弱结果:

root@kitploit:~
HTTP/1.1 500 Internal Server Error
TOTAL_TIME=6.300s
Internal Server Error

已修补版本的对照

启动 Gotenberg 8.31.0:

root@kitploit:~
docker compose -f docker-compose.latest.yml down -v
docker compose -f docker-compose.latest.yml up -d
docker compose -f docker-compose.latest.yml logs --tail=100 gotenberg

检查版本:

root@kitploit:~
curl -s http://127.0.0.1:3000/version

运行同样的手动延迟检查:

root@kitploit:~
python3 manual_verify.py http://127.0.0.1:3000

观察到的已修补版本结果:

root@kitploit:~
HTTP/1.1 400 Bad Request
TOTAL_TIME=0.145s
At least one PDF engine cannot process the requested metadata, while others may have failed to convert due to different issues

Nuclei

验证模板:

root@kitploit:~
nuclei -duc -validate -t CVE-2026-42589.yaml

对脆弱目标运行:

root@kitploit:~
nuclei -duc -u http://127.0.0.1:3000 -t CVE-2026-42589.yaml

预期行为:

  • 8.29.1:在延迟的 500 响应后匹配
  • 8.31.0:无匹配

观察到的脆弱结果:

root@kitploit:~
[CVE-2026-42589] [http] [critical] http://127.0.0.1:3000/forms/pdfengines/metadata/write
[INF] Scan completed in 6.245907708s. 1 matches found.

观察到的已修补版本结果:

root@kitploit:~
[INF] Scan completed in 93.01425ms. No results found.

备注

  • 本实验室有意避免文件写入、反弹 shell 及带外回调。
  • 该模板检测行为,而不仅仅是版本号。
  • 未使用任何现实世界目标。
  • 仅在你拥有或明确获得授权测试的系统上使用。
下载工具