goshs has ACL Bypass & Path Traversal
goshs-labs goshs
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/patrickhener/goshs/v2 Go |
|
|
| goshs.de/goshs/v2 Go |
|
|
goshs-labs goshs
| Product | Affected | Fixed in |
|---|---|---|
| github.com/patrickhener/goshs/v2 Go |
|
|
| goshs.de/goshs/v2 Go |
|
|
| github.com/patrickhener/goshs Go |
|
| No fix yet |
| goshs.de/goshs Go |
| No fix yet |
goshs is a feature-rich single-binary file server for red teamers and developers. Prior to 2.1.5, the httpserver/handler.go sendFile handler opened files using a cleaned path but derived the authorization filename from raw req.URL.Path, so a trailing slash could bypass .goshs ACL-file protection and block-list checks. This issue is fixed in version 2.1.5.
From the CVE record · GitHub_M
The goshs sendFile handler opens files using a cleaned path but checks access against the raw request path. A network request with a trailing slash can bypass .goshs ACL-file protection and block-list checks.
Check installations using github.com/patrickhener/goshs/v2 or goshs.de/goshs/v2 before 2.1.5-0.20260727065949-f3ef599e4091, or any version of the legacy github.com/patrickhener/goshs or goshs.de/goshs packages through 1.1.4.