GO-2022-0427
Dashboard / Vulnerabilities / GO-2022-0427
GO-2022-0427
Published: 29 Feb 2024Last Modified: 20 May 2024
Summary: Unprotected file upload in github.com/swaggo/http-swagger
Details: The httpSwagger package's HTTP handler provides WebDAV read/write access to an in-memory filesystem. An attacker can exploit this to cause memory exhaustion by uploading many files, XSS attacks by uploading malicious files, or other unexpected behaviors.
References: https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.html, https://github.com/swaggo/http-swagger/pull/62, https://github.com/swaggo/http-swagger/issues/61
Affected packages
Package
Name: github.com/swaggo/http-swagger
Purl: pkg:golang/github.com/swaggo/http-swagger
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.2.6
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
