7.5high
goshs: File-based .goshs ACL authorization bypass via the ?bulk zip-download route (unauthenticated read; residual of CVE-2026-40189)
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.35% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-rmxw-pq4x-3fvhGO-2026-6133
Description
goshs is a feature-rich single-binary file server for red teamers and developers. Prior to 2.1.1, the httpserver/updown.go bulkDownload handler for ?bulk&file= ZIP downloads did not call findEffectiveACL or applyCustomAuth, allowing unauthenticated reads of files protected only by .goshs folder ACLs and block lists. This issue is fixed in version 2.1.1. This vulnerability exists due to an incomplete fix for CVE-2026-40189.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| goshs-labs goshs | < 2.1.1 | CVE List |
| github.com/patrickhener/goshs (Go) | up to 1.1.4, all versions | GitHub Advisory Database, Go Vulnerability Database |
| github.com/patrickhener/goshs/v2 (Go) | before 2.1.1 | GitHub Advisory Database |
| goshs.de/goshs (Go) | up to 1.1.4, all versions | GitHub Advisory Database, Go Vulnerability Database |
| goshs.de/goshs/v2 (Go) | before 2.1.1 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
What each source says
CVE List
goshs is a feature-rich single-binary file server for red teamers and developers. Prior to 2.1.1, the httpserver/updown.go bulkDownload handler for ?bulk&file= ZIP downloads did not call findEffectiveACL or applyCustomAuth, allowing unauthenticated reads of files protected only by .goshs folder ACLs and block lists. This issue is fixed in version 2.1.1. This vulnerability exists due to an incomplete fix for CVE-2026-40189.
GitHub Advisory Database
GHSA-wvhv-qcqf-f3cx fixed the per-folder .goshs ACL bypass on the state-changing routes (PUT/POST upload/?mkdir/?delete) and added recursive ACL resolution, and its description states the read/list path correctly enforces .goshs. That premise does not hold for the ?bulk zip-download route. bulkDownload (httpserver/updown.go) takes one or more ?file= parameters, runs each through sanitizePath(fs.Webroot, file), and streams the contents back as a ZIP without ever calling findEffectiveACL/applyCustomAuth. It is dispatched from earlyBreakParameters (?bulk) before the normal doDir/doFile/sendFile flow that performs the ACL check. An unauthenticated attacker can therefore read any file under the webroot protected solely by a .goshs ACL, bypassing both the folder auth (401 on the normal path) and the per-file block list (404 on the normal path). Same authorization-inconsistency root cause as the original advisory, surviving on a read route the fix did not cover.
Proof of concept (live, against the fixed v2.1.0 build which includes fix commit f212c4f4, served with no global -b auth, only a per-folder .goshs): GET /protected/secret.txt -> 401 (ACL enforced on normal path) GET /protected/secret.txt -u admin:admin -> 200 GET /?bulk&file=/protected/secret.txt -> 200, zip contains the protected file contents (BYPASS) GET /?bulk&file=/protected/blocked.txt -> 200, zip contains the block-listed file (block bypass) GET /protected/secret.txt?share -> 403 'Sharing disabled when auth is disabled' (correctly gated, NOT a bypass)
Impact: any unauthenticated network attacker can read files an operator protected with the documented per-folder .goshs ACL/basic-auth feature, by requesting them through ?bulk. Confidentiality only (the write/delete equivalents were closed by GHSA-wvhv-qcqf-f3cx). Applies to deployments relying on .goshs as the access boundary (a server-wide -b basic auth, if configured, also gates ?bulk via its middleware).
Remediation: enforce the effective .goshs ACL inside bulkDownload for every requested file exactly as sendFile/processDir do (resolve findEffectiveACL(filepath.Dir(absPath)) + applyCustomAuth + honor acl.Block), or route ?bulk through the same authorization gate as the normal read path. Audit ?cbDown and other alternate read routes for the same gap.
Credit: anir0y (independent security research).
Go Vulnerability Database
goshs: File-based .goshs ACL authorization bypass via the ?bulk zip-download route (unauthenticated read; residual of GHSA-wvhv-qcqf-f3cx) in github.com/patrickhener/goshs
NVD (es)
goshs es un servidor de archivos de un solo binario con muchas funciones para red teamers y desarrolladores. Antes de la versión 2.1.1, el gestor bulkDownload de httpserver/updown.go para descargas ZIP de ?bulk&file= no llamaba a findEffectiveACL ni a applyCustomAuth, lo que permitía lecturas no autenticadas de archivos protegidos únicamente por las ACLs de la carpeta .goshs y las listas de bloqueo. Este problema se corrige en la versión 2.1.1. Esta vulnerabilidad existe debido a una solución incompleta para CVE-2026-40189.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54719 changed 2026-07-29 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rmxw-pq4x-3fvh changed 2026-08-18 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-6133 changed 2026-08-18 | CC-BY-4.0 |
| NVD | CVE-2026-54719 changed 2026-10-23 | Public domain |