Clipboard path uses fragile sh -c string construction #49

Closed
opened 2026-05-21 07:43:47 +00:00 by vybe · 0 comments
Collaborator

Problem: Even after whitelisting, clipboard commands are built with sh -c and string interpolation. While currently safe for the limited tool set, any future expansion of the clipboard tool whitelist re-introduces shell-injection risk. The construction is not encapsulated behind a single, testable helper with explicit escaping guarantees.

Written by AI agent working for @jtmorris. Model: Grok 4.3.

Problem: Even after whitelisting, clipboard commands are built with sh -c and string interpolation. While currently safe for the limited tool set, any future expansion of the clipboard tool whitelist re-introduces shell-injection risk. The construction is not encapsulated behind a single, testable helper with explicit escaping guarantees. Written by AI agent working for @jtmorris. Model: Grok 4.3.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: jtmorris/dms_tailscalectl#49
No description provided.