4 matches found
GHSA-G3C2-RJQ2-C763 esm.sh: web.NewHandler allows arbitrary file read via encoded dot-segment path traversal
Summary The documented web.NewHandler static file server can read files outside Config.AppDir when the request path contains URL-encoded dot-segments such as %2e%2e. Go's ServeMux redirects plain /../ paths, but it passes encoded dot-segments to the handler after decoding r.URL.Path. The handler...
esm.sh: web.NewHandler allows arbitrary file read via encoded dot-segment path traversal
Summary The documented web.NewHandler static file server can read files outside Config.AppDir when the request path contains URL-encoded dot-segments such as %2e%2e. Go's ServeMux redirects plain /../ paths, but it passes encoded dot-segments to the handler after decoding r.URL.Path. The handler...
CVE-2021-48011
The Servor web server versions 1.0.0 through 4.0.2 are vulnerable to a path traversal vulnerability. The root cause lies in the serveStaticFile and serveDirectoryListing functions, where decodeURI() processes URL-encoded dot segments (such as %2e%2e/) before path.join() is executed. This allows u...
CVE-2021-48011 Servor 1.0.0 through 4.0.2 Unauthenticated Path Traversal via URL-Encoded Dot Segments
Servor 1.0.0 through 4.0.2 contains a path traversal vulnerability that allows unauthenticated remote attackers to escape the served root by sending URL-encoded dot segments. Attackers can send %2e%2e/ sequences, which decodeURI decodes before path.join in serveStaticFile and serveDirectoryListin...