Paperclip before 0.3.1 in default local_trusted mode fails to validate Host headers, allowing attackers to execute arbitrary commands via DNS rebinding. This vulnerability enables malicious actors to craft webpages that, when visited by developers running Paperclip locally, can make authenticated API requests and execute commands through the process adapter, potentially leading to unauthorized access and data breaches. Affected organizations should prioritize updating to version 0.3.1 or later, review and validate Host headers in configurations, and monitor for suspicious activity related to DNS rebinding attacks.
A critical OS command injection vulnerability exists in Paperclip's execution workspace lifecycle. An attacker can inject arbitrary shell commands into the `cleanupCommand` field via the `PATCH /api/execution-workspaces/:id` endpoint. When the workspace is archived, the server executes this command verbatim via `child_process.spawn(shell, [“-c”, cleanupCommand])` with no input validation or sanitization. In `local_trusted` mode (the default for desktop installations), this requires zero authentication. Three independent proofs of exploitation were demonstrated on Windows 11: arbitrary file write, full system information exfiltration (`systeminfo`), and GUI application launch (`calc.exe`).