GO-2023-1567

See a problem?
Source
https://pkg.go.dev/vuln/GO-2023-1567
Import Source
https://vuln.go.dev/ID/GO-2023-1567.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2023-1567
Aliases
Published
2023-02-16T18:37:09Z
Modified
2024-05-20T16:03:47Z
Summary
Open redirect in github.com/caddyserver/caddy/v2
Details

Due to improper request sanitization, a crafted URL can cause the static file handler to redirect to an attacker chosen URL, allowing for open redirect attacks.

References
Credits
    • Mayank Mukhi (@Hunt2behunter)

Affected packages

Go / github.com/caddyserver/caddy/v2

Package

Name
github.com/caddyserver/caddy/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/caddyserver/caddy/v2

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.5.0-beta.1

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/caddyserver/caddy/v2/modules/caddyhttp",
            "symbols": [
                "SanitizedPathJoin"
            ]
        },
        {
            "path": "github.com/caddyserver/caddy/v2/modules/caddyhttp/fileserver",
            "symbols": [
                "FileServer.Provision",
                "FileServer.ServeHTTP",
                "FileServer.directoryListing",
                "MatchFile.Match",
                "MatchFile.UnmarshalCaddyfile",
                "MatchFile.Validate",
                "fileInfo.HumanModTime",
                "fileInfo.HumanSize",
                "statusOverrideResponseWriter.WriteHeader"
            ]
        }
    ]
}