WebP Server Go < 0.15.0 Path Traversal via Backslash Encoding on Windows
webp-sh webp_server_go
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| webp-sh webp_server_go |
| No fix yet |
Original description
WebP Server Go through 0.14.4 contains a path traversal vulnerability on Windows that allows unauthenticated attackers to read files outside the configured IMG_PATH directory by sending requests with percent-encoded backslashes (%5C) that bypass the path.Clean() sanitization in handler/router.go. Attackers can exploit the discrepancy between Go's forward-slash-only path normalization and Windows file system APIs that treat backslashes and forward slashes as equivalent to access arbitrary files on the host filesystem accessible to the server process.
From the CVE record · VulnCheck