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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| coderaiser | cloudcmd | 19.20.2 – < 19.21.2 | 19.21.2 |
References
- cloudcmd 19.21.2 Release Notes patch release-notes
- https://github.com/coderaiser/cloudcmd/commit/91c024591f425e26200884d5e1d5ba972377968b issue-tracking patch
- https://gist.github.com/mansurmavlankulov/5a0c4cbab8e49ac0669d126c854da95e technical-description
- VulnCheck Advisory: Cloud Commander 19.20.2 through 19.21.1 Path Traversal via GET /api/v1/pack third-party-advisory