T09 · Insecure Skill Coding Practices
- Location
newsletter_monitor.py:22- Finding
Shell Command Injection in Gmail Newsletter Query Helper
- Content
View full analysis
/tmp/gog-injection-proof; # ``` terminates the quoted Gmail search expression, executes a second shell command, and comments out the remaining command text. ### Attack Path 1. An attacker obtains influence over a value passed to `run_gog()`, such as through a future configurable newsletter search, another imported module, or an Agent-generated query. 2. The attacker supplies a search string containing a single quote followed by shell syntax. 3. The formatted string is passed to the system shell because `shell=True` is enabled. 4. The shell executes the inje ...[truncated 876 chars]- Remediation
View remediation
