-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align GoVulncheck Go version with go.mod (#818)
GoVulncheck uses local installed GO version to determine vulnerabilities if the env `GOVERSION` is not defined. Set the `GOVERSION` value to the one defined in go.mod. detail: #679 --------- Co-authored-by: Rex P <[email protected]>
- Loading branch information
1 parent
2e1704d
commit 63d8b2a
Showing
6 changed files
with
282 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
internal/sourceanalysis/integration/fixtures-go/GO-2023-2382.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"schema_version": "1.3.1", | ||
"id": "GO-2023-2382", | ||
"modified": "2023-12-06T16:22:36Z", | ||
"published": "2023-12-06T16:22:36Z", | ||
"aliases": [ | ||
"CVE-2023-39326" | ||
], | ||
"summary": "Denial of service via chunk extensions in net/http", | ||
"details": "A malicious HTTP sender can use chunk extensions to cause a receiver reading from a request or response body to read many more bytes from the network than are in the body.\n\nA malicious HTTP client can further exploit this to cause a server to automatically read a large amount of data (up to about 1GiB) when a handler fails to read the entire body of a request.\n\nChunk extensions are a little-used HTTP feature which permit including additional metadata in a request or response body sent using the chunked encoding. The net/http chunked encoding reader discards this metadata. A sender can exploit this by inserting a large metadata segment with each byte transferred. The chunk reader now produces an error if the ratio of real body to encoded bytes grows too small.", | ||
"affected": [ | ||
{ | ||
"package": { | ||
"name": "stdlib", | ||
"ecosystem": "Go" | ||
}, | ||
"ranges": [ | ||
{ | ||
"type": "SEMVER", | ||
"events": [ | ||
{ | ||
"introduced": "0" | ||
}, | ||
{ | ||
"fixed": "1.20.12" | ||
}, | ||
{ | ||
"introduced": "1.21.0-0" | ||
}, | ||
{ | ||
"fixed": "1.21.5" | ||
} | ||
] | ||
} | ||
], | ||
"ecosystem_specific": { | ||
"imports": [ | ||
{ | ||
"path": "net/http/internal", | ||
"symbols": [ | ||
"chunkedReader.Read", | ||
"chunkedReader.beginChunk", | ||
"readChunkLine" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"references": [ | ||
{ | ||
"type": "REPORT", | ||
"url": "https://go.dev/issue/64433" | ||
}, | ||
{ | ||
"type": "FIX", | ||
"url": "https://go.dev/cl/547335" | ||
}, | ||
{ | ||
"type": "WEB", | ||
"url": "https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ" | ||
} | ||
], | ||
"credits": [ | ||
{ | ||
"name": "Bartek Nowotarski" | ||
} | ||
], | ||
"database_specific": { | ||
"url": "https://pkg.go.dev/vuln/GO-2023-2382" | ||
} | ||
} |
40 changes: 0 additions & 40 deletions
40
internal/sourceanalysis/integration/fixtures-go/snapshots/govulncheckshim_test.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters