Description
Colanode server through 0.4.7 contains a path traversal vulnerability that allows authenticated users to read arbitrary .jpeg files by supplying an encoded traversal sequence in avatarId. Attackers can send percent-encoded ../ sequences to GET /client/v1/avatars/:avatarId to escape the avatars directory and read .jpeg files belonging to other workspaces.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| colanode | colanode | ≤ 0.4.7 | — |
References
- https://hackmd.io/@hieuPenguinnn/colanode-avatar-download-path-traversal technical-description exploit
- https://github.com/colanode/colanode/blob/d649523637f0f059c936418488165d4a689da27c/apps/server/src/lib/storage/fs.ts#L38 technical-description
- https://github.com/colanode/colanode/blob/d649523637f0f059c936418488165d4a689da27c/apps/server/src/api/client/routes/avatars/avatar-download.ts#L23 technical-description
- https://github.com/colanode/colanode product
- VulnCheck Advisory: Colanode Server through 0.4.7 Path Traversal via Avatar Download Route third-party-advisory