T09 · Insecure Skill Coding Practices
- Location
scripts/create_skill.sh:85- Finding
Executable Code Injection Through Unescaped Generated Scripts
- Content
View full analysis
"$TARGET/scripts/call.sh" < "$TARGET/scripts/python_example.sh" < "$TARGET/scripts/call.sh" < "$TARGET/scripts/python_example.sh" < len(r) else p print(r[p-1].get('link','')) PY ) if [[ -n "$BEST_LINK" ]]; then bash "$BASE_DIR/gen_usage.sh" --name "$BEST_NAME" --url "$BEST_LINK" --auth "$BEST_AUTH" fi ``` ### Technical Analysis `API_URL` is supplied through command-line input or selected from remotely downloaded `public-apis` catalog content. It is inserted directly into generated Bash and Python source code without context-appropriate escaping. Shell argument quoting during the invocation of `create_skill.sh` does not make the value safe after it is written into a new executable file. A URL containing quotation marks, newlines, comment syntax, or additional language statements can te ...[truncated 1239 chars]- Remediation
View remediation
