目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2022-28368 PoC — Dompdf 跨站脚本漏洞

来源
关联漏洞
标题: Dompdf 跨站脚本漏洞 (CVE-2022-28368)
Description:Dompdf是一个 HTML 到 PDF 的转换器。 Dompdf 1.2.1 版本存在跨站脚本漏洞,该漏洞允许通过@font-face级联样式表(CSS)语句的src:url字段中的.php文件远程执行代码。
Description
This repository contains a python script that will handle the majority of the dompdf cached font exploit (CVE-2022-28368), all you need to do is create the request
介绍
# CVE-2022-28368-handler
This repository contains a python script that will handle the majority of the dompdf cached font exploit (CVE-2022-28368), all you need to do is create the request. It will even provide a trigger string to start the exploit :)

## Usage
```
usage: CVE-2022-28368.py [-h] -d DOMPDF_LOCATION [-f FONTNAME] -i HTTP_IP [-p HTTP_PORT] [-P PHP] [-w] [-r]

This script handles the majority of the dompdf cached font exploit (CVE-2022-28368), all you need to do is create the request

optional arguments:
  -h, --help            show this help message and exit
  -d DOMPDF_LOCATION, --dompdf-location DOMPDF_LOCATION
                        dompdf location on target webserver (example: http://target.com/vendor/dompdf)
  -f FONTNAME, --fontname FONTNAME
                        Exploit font name (default: expfont.php)
  -i HTTP_IP, --http-ip HTTP_IP
                        HTTP listener IP
  -p HTTP_PORT, --http-port HTTP_PORT
                        HTTP listener PORT (default: 80)
  -P PHP, --php PHP     PHP to execute (default: <?php system("whoami"); ?>)
  -w, --webshell        Spawn web shell
  -r, --revshell        Spawn reverse shell (Uses HTTP listener IP and port 9001 by default)
```
### See for technical details of the vulnerability:
https://positive.security/blog/dompdf-rce
https://github.com/positive-security/dompdf-rce
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →