Description
Cloud Commander (cloudcmd) versions 19.20.2 through 19.21.1 contains a path traversal vulnerability in the GET /api/v1/pack endpoint where the onGET handler at server/rest/index.js:130 calls the unguarded root() function instead of the root.resolve() validation wrapper used elsewhere. Attackers can send percent-encoded directory traversal sequences in the pack request path to read arbitrary files outside the configured --root directory, such as /etc/passwd or SSH private keys, which are archived and streamed back as a downloadable tar.gz file.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
coderaiser cloudcmd
Default version status: unaffected
19.20.2 to < 19.21.2affected
pkg:github/coderaiser/cloudcmdReferences
- https://github.com/coderaiser/cloudcmd/releases/tag/v19.21.2 ↗
- https://github.com/coderaiser/cloudcmd/commit/91c024591f425e26200884d5e1d5ba972377968b ↗
- https://gist.github.com/mansurmavlankulov/5a0c4cbab8e49ac0669d126c854da95e ↗
- https://www.vulncheck.com/advisories/cloud-commander-through-path-traversal-via-get-api-v1-pack ↗