-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- data/reports/GO-2024-3293.yaml Fixes #3293 Change-Id: I7519a8c623ab3b78db5c02518b28dc6a546274d3 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/635761 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Tatiana Bradley <tatianabradley@google.com> Reviewed-by: Damien Neil <dneil@google.com>
- Loading branch information
Showing
2 changed files
with
95 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"schema_version": "1.3.1", | ||
"id": "GO-2024-3293", | ||
"modified": "0001-01-01T00:00:00Z", | ||
"published": "0001-01-01T00:00:00Z", | ||
"summary": "Full access to the host's OS file system using osfs.FS with Router.Static in goyave.dev/goyave/v5", | ||
"details": "Static file serving using router.Static and osfs.FS allows clients to access any file on the host file system using relative paths because the requested path is not sanitized and . and .. segments are accepted. The files will be returned as a response, provided the system user running the Go application has read access to the requested file.\n\nAs a workaround, use fsutil.NewEmbed(embeddedFS) from the goyave.dev/goyave/v5/util/fsutil package to serve static content using Router.Static instead of \u0026osfs.FS. Embedded file systems are rooted to the specified directory, making it impossible to navigate outside of the developers' intended directory.", | ||
"affected": [ | ||
{ | ||
"package": { | ||
"name": "goyave.dev/goyave/v5", | ||
"ecosystem": "Go" | ||
}, | ||
"ranges": [ | ||
{ | ||
"type": "SEMVER", | ||
"events": [ | ||
{ | ||
"introduced": "5.0.0" | ||
}, | ||
{ | ||
"fixed": "5.5.0" | ||
} | ||
] | ||
} | ||
], | ||
"ecosystem_specific": { | ||
"imports": [ | ||
{ | ||
"path": "goyave.dev/goyave/v5", | ||
"symbols": [ | ||
"Router.ServeHTTP", | ||
"Router.Static", | ||
"Server.Start", | ||
"cleanStaticPath", | ||
"staticHandler" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"references": [ | ||
{ | ||
"type": "FIX", | ||
"url": "https://github.com/go-goyave/goyave/commit/5836bff3efaa8a37fbd58d077b93f03e93e05edd" | ||
}, | ||
{ | ||
"type": "WEB", | ||
"url": "https://github.com/golang/vulndb/issues/3293" | ||
} | ||
], | ||
"database_specific": { | ||
"url": "https://pkg.go.dev/vuln/GO-2024-3293", | ||
"review_status": "REVIEWED" | ||
} | ||
} |
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,38 @@ | ||
id: GO-2024-3293 | ||
modules: | ||
- module: goyave.dev/goyave/v5 | ||
versions: | ||
- introduced: 5.0.0 | ||
- fixed: 5.5.0 | ||
vulnerable_at: 5.4.3 | ||
packages: | ||
- package: goyave.dev/goyave/v5 | ||
symbols: | ||
- cleanStaticPath | ||
- staticHandler | ||
derived_symbols: | ||
- Router.ServeHTTP | ||
- Router.Static | ||
- Server.Start | ||
summary: |- | ||
Full access to the host's OS file system using osfs.FS with Router.Static in | ||
goyave.dev/goyave/v5 | ||
description: |- | ||
Static file serving using router.Static and osfs.FS allows clients to access any | ||
file on the host file system using relative paths because the requested path is | ||
not sanitized and . and .. segments are accepted. The files will be returned as | ||
a response, provided the system user running the Go application has read access | ||
to the requested file. | ||
As a workaround, use fsutil.NewEmbed(embeddedFS) from the | ||
goyave.dev/goyave/v5/util/fsutil package to serve static content using | ||
Router.Static instead of &osfs.FS. Embedded file systems are rooted to the | ||
specified directory, making it impossible to navigate outside of the developers' | ||
intended directory. | ||
references: | ||
- fix: https://github.com/go-goyave/goyave/commit/5836bff3efaa8a37fbd58d077b93f03e93e05edd | ||
- web: https://github.com/golang/vulndb/issues/3293 | ||
source: | ||
id: go-security-team | ||
created: 2024-12-13T09:56:42.28832-05:00 | ||
review_status: REVIEWED |