Description
Composio SDK before 0.2.32-beta.283 contains a path validation bypass vulnerability that allows attackers to read and exfiltrate sensitive files by exploiting a missing assertSafeFileUploadPath check in the readFileFromDisk function within tool-file-uploads.ts. Attackers can exploit prompt injection to manipulate file_uploadable parameters to reference sensitive paths such as SSH private keys, causing the CLI to upload credential files to attacker-controlled storage.
Problem types
External Control of File Name or Path
Product status
Any version before 0.2.32-beta.283
Credits
George Chen
References
github.com/ComposioHQ/composio/issues/3746
github.com/ComposioHQ/composio/issues/3746 (Researcher Disclosure)
github.com/...sio/releases/tag/@composio/cli@0.2.32-beta.283 (Release Notes)
github.com/ComposioHQ/composio/pull/3763 (Fix PR)
github.com/...ommit/fc17c37bf95b7ece5c038cb7e2ab7e3e4a064e3a (Fix Commit)
www.vulncheck.com/...ve-file-upload-via-tool-file-uploads-ts