Skip to content

Commit

Permalink
data/reports: add GO-2022-0427.yaml
Browse files Browse the repository at this point in the history
Aliases: CVE-2022-24863, CVE-2024-25712, GHSA-xg75-q3q5-cqmv

Fixes #427

Change-Id: I178e7b978606c0e51bce33e38b3c8a75f68ef639
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/568015
Auto-Submit: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
  • Loading branch information
neild authored and gopherbot committed Feb 29, 2024
1 parent 376ab8c commit 5e4bce1
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 8 deletions.
8 changes: 0 additions & 8 deletions data/excluded/GO-2022-0427.yaml

This file was deleted.

58 changes: 58 additions & 0 deletions data/osv/GO-2022-0427.json
@@ -0,0 +1,58 @@
{
"schema_version": "1.3.1",
"id": "GO-2022-0427",
"modified": "0001-01-01T00:00:00Z",
"published": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-2022-24863",
"CVE-2024-25712",
"GHSA-xg75-q3q5-cqmv"
],
"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.",
"affected": [
{
"package": {
"name": "github.com/swaggo/http-swagger",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.6"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "github.com/swaggo/http-swagger"
}
]
}
}
],
"references": [
{
"type": "WEB",
"url": "https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.html"
},
{
"type": "FIX",
"url": "https://github.com/swaggo/http-swagger/pull/62"
},
{
"type": "REPORT",
"url": "https://github.com/swaggo/http-swagger/issues/61"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-0427"
}
}
23 changes: 23 additions & 0 deletions data/reports/GO-2022-0427.yaml
@@ -0,0 +1,23 @@
id: GO-2022-0427
modules:
- module: github.com/swaggo/http-swagger
versions:
- fixed: 1.2.6
vulnerable_at: 1.2.5
packages:
- package: github.com/swaggo/http-swagger
summary: Unprotected file upload in github.com/swaggo/http-swagger
description: |-
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.
cves:
- CVE-2022-24863
- CVE-2024-25712
ghsas:
- GHSA-xg75-q3q5-cqmv
references:
- web: https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.html
- fix: https://github.com/swaggo/http-swagger/pull/62
- report: https://github.com/swaggo/http-swagger/issues/61

0 comments on commit 5e4bce1

Please sign in to comment.