Vulnerability 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 Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Http-Swagger Project | Http-Swagger | < 1.2.6 |
Related Weaknesses (CWE)
References
- https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.htmlExploitThird Party Advisory
- https://github.com/swaggo/http-swagger/releases/tag/v1.2.6Release Notes
- https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.htmlExploitThird Party Advisory
- https://github.com/swaggo/http-swagger/releases/tag/v1.2.6Release Notes
FAQ
What is CVE-2024-25712?
CVE-2024-25712 is a vulnerability with a CVSS score of 6.1 (MEDIUM). 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: thi...
How severe is CVE-2024-25712?
CVE-2024-25712 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-25712?
Check the references section above for vendor advisories and patch information. Affected products include: Http-Swagger Project Http-Swagger.