T09 · Insecure Skill Coding Practices
- Location
a2a-send-task.sh:112- Finding
Arbitrary Python Code Execution Through Agent Parameters
- Content
View full analysis
/dev/null ``` The interpolated values originate from command-line arguments: ```bash --agent) AGENT="$2"; shift 2 ;; -- ...[truncated 2204 chars]- Remediation
View remediation
&2 exit 1 fi ``` - Apply equivalent validation to `TARGET_AGENT`. - Add regression tests containing quotes, newlines, semicolons, backslashes, and Python syntax in both parameters. - Avoid suppressing all Python errors with `2>/dev/null`, because suppression can conceal attempted exploitation and operational failures. ]]>
