T09 · Insecure Skill Coding Practices
Warning
- Location
SKILL.md:19- Finding
Potential Shell Command Injection Through Unvalidated Calendar Parameters
- Content
View full analysis
--summary "..." --from "..." --to "..."`] ``` ### Technical Analysis The skill directs the agent to construct and execute a native terminal command using dynamically supplied calendar identifiers, event identifiers, summaries, and timestamps. It does not require input validation, argument-array execution, or shell-safe escaping. The `` and `` placeholders are unquoted. Values placed inside quoted options, such as `--summary`, may also escape their quoted context if embedded quotation marks are not handled safely. If an implementation substitutes attacker-controlled values into a command string and executes it through a shell, shell metacharacters such as semicolons, command substitutions, redirections, or pipelines could be interpreted as additional commands. Exploitation is conditional on the agent or runtime performing direct textual interpolation and passing the resulting command to a shell. The documentation does not itself contain an executable payload, but it fails to prescribe the controls needed to prevent unsafe implementations. ### Attack Path 1. An attacker influences a calendar ID, event ID, event summary, or another value used to build the documented command. 2. The supplied value contains shell syntax intended to terminate or alter the expected command. 3. The agent directly interpolates the value into the documented command template. 4. The resulting string is executed through a command shell rather than through a shell-disabled argument-array API. 5. The shell interprets the injected syntax and executes an unintended local command under the agent process's identity. For example, an unvalidated ...[truncated 867 chars]- Remediation
View remediation
