Description
Dockhand before 1.0.46 contains an arbitrary file read vulnerability that allows non-admin users with stacks:edit permission to read files through the path parameter of /api/system/files/content. Attackers can supply absolute paths to read /etc/shadow, /etc/passwd, git .git/config credentials, and SSH keys from the Dockhand container.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Finsys | dockhand | < 1.0.46 | 1.0.46 |
References
- GitHub Security Advisory (GHSA-433w-5hff-22h6) vendor-advisory
- https://github.com/Finsys/dockhand/commit/5af4e69eb20bde4b84756eb600bd521c8d300fb5 patch
- dockhand v1.0.46 Release Notes release-notes
- https://github.com/Finsys/dockhand/blob/5adb374c0d79c8df0f8524f6c7fe27bbc493a1dc/src/routes/api/system/files/content/%2Bserver.ts technical-description
- VulnCheck Advisory: Dockhand before 1.0.46 Arbitrary File Read via /api/system/files/content third-party-advisory