Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| coderaiser / cloudcmd | affected 19.20.2 before 19.21.2 |
CWE
CWE-23
References
- 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