T09 · Insecure Skill Coding Practices
- Location
SKILL.md:38- Finding
Shell Command Injection Through Untrusted Report Metadata
- Content
View full analysis
" \ --metadata brand_name="" \ --metadata domain="" \ --metadata geo_score="" \ --metadata score_label="" \ --metadata date="" \ --metadata business_type="" \ --metadata locations="" \ --metadata platform="" \ -o GEO-REPORT.html ``` Replace `` placeholders with values extracted in Step 2. ``` ### Technical Analysis The workflow instructs the agent to extract metadata from `GEO-AUDIT-REPORT.md` and substitute it directly into a Bash command. The metadata is therefore untrusted input. Wrapping substituted values in double quotes does not make them safe for shell evaluation. Bash still evaluates command substitutions such as `$(command)` and backtick substitutions inside double-quoted strings. Embedded quote characters may also terminate the intended argument and introduce additional shell syntax. For example, a malicious report could cont ...[truncated 1320 chars]- Remediation
View remediation
