T09 · Insecure Skill Coding Practices
- Location
references/scene1-nearby-search.md:38- Finding
Shell Command Injection Through Unquoted User-Controlled Arguments
- Content
View full analysis
[options] tmap-lbs route --mode \ --origin \ --destination [options] tmap-lbs travel --city \ --interests [options] tmap-lbs trail --data ``` For example, the trajectory workflow directly places a URL extracted from a user message into a shell command: ```bash tmap-lbs trail --data https://mapapi.qq.com/web/claw/trail.json ``` The nearby-search workflow similarly directs the Agent to insert a parsed location and search category directly into command arguments: ```bash tmap-lbs nearby --location {location} --keywords {search-category} ``` ### Technical Analysis The documented workflows instruct the Agent to extract values such as locations, search keywords, cities, interests, coordinates, and URLs from user input and interpolate them into Bash commands. The instructions do not require: - Shell-safe argument-array execution. - Quoting or escaping of interpolated values. - Rejection of shell metacharacters. - Numeric validation of coordinates and radii. - Enumeration ...[truncated 2533 chars]- Remediation
View remediation
