Medium severity · published Feb 11, 2024
CVE-2024-25712
http-swagger before 1.2.6 allows XSS via PUT requests, because a file that has been uploaded (via httpSwagger.WrapHandler and *webdav.memFile) can subsequently be accessed via a…
6.1
CVSS
0.6%
EPSS
No
On KEV
Description
http-swagger before 1.2.6 allows XSS via PUT requests, because a file that has been uploaded (via httpSwagger.WrapHandler and *webdav.memFile) can subsequently be accessed via a GET request. NOTE: this is independently fixable with respect to CVE-2022-24863, because (if a solution continued to allow PUT requests) large files could have been blocked without blocking JavaScript, or JavaScript could have been blocked without blocking large files.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 47% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
HT
Http-swagger · Http-swagger Project
before 1.2.6 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-25712
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-25712
Exploit
https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.html
Release Notes
https://github.com/swaggo/http-swagger/releases/tag/v1.2.6
More from Http-swagger
7.5
CVE-2022-24863
http-swagger is an open source wrapper to automatically generate RESTful API documentation with Swagger 2.0
