goshs --no-delete WebDAV MOVE bypass allows file deletion/overwrite
goshs-labs goshs
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| goshs.de/goshs/v2 Go |
|
|
| github.com/patrickhener/goshs/v2 Go |
|
|
| goshs.de/goshs Go |
goshs-labs goshs
| Product | Affected | Fixed in |
|---|---|---|
| goshs.de/goshs/v2 Go |
|
|
| github.com/patrickhener/goshs/v2 Go |
|
|
| goshs.de/goshs Go |
Before version 2.1.4, goshs does not enforce --no-delete for WebDAV MOVE requests. A WebDAV client can delete or overwrite files using MOVE with Overwrite: T, even when --no-delete is set. The input does not specify whether authentication is required.
Anyone running goshs with goshs.de/goshs/v2 or github.com/patrickhener/goshs/v2 before 2.1.4, or the unversioned goshs.de/goshs or github.com/patrickhener/goshs packages through 1.1.4, should check their deployments.
≤ 1.1.4all versions| No fix yet |
| github.com/patrickhener/goshs Go |
| No fix yet |
goshs is a feature-rich single-binary file server for red teamers and developers. Prior to 2.1.4, the httpserver/server.go wdGuard handled WebDAV MOVE as a write-only method and did not enforce --no-delete, allowing WebDAV clients to delete or overwrite files via MOVE with Overwrite: T. This issue is fixed in version 2.1.4.
From the CVE record · GitHub_M