PT-2022-28166 · Unknown · Http-Swagger
Published
2022-04-22
·
Updated
2025-01-16
·
CVE-2024-25712
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
http-swagger versions prior to 1.2.6
Description
The issue allows an attacker to perform a denial-of-service (DOS) attack consisting of memory exhaustion on the host system and cross-site scripting (XSS) attacks by uploading malicious files. This is because a file uploaded via httpSwagger.WrapHandler and *webdav.memFile can be accessed later via a GET request.
Recommendations
For versions prior to 1.2.6, please upgrade to v1.2.6 to resolve the issue.
As a temporary workaround, consider restricting the path prefix to the "GET" method, as shown in the example code that sets up a router with the httpSwagger.Handler restricted to the http.MethodGet.
Exploit
Fix
Improper Handling of Exceptional Conditions
Resource Exhaustion
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Http-Swagger