T09 · Insecure Skill Coding Practices
- Location
scripts/search.py:17- Finding
Unsanitized Remote API Data Rendered as Terminal Output
- Content
View full analysis
200: desc = desc[:197] + "..." print(f"[{i}] {name}") print(f" Description: {desc}") print(f" Origin: {source}") print("-" * 70) ``` ### Technical Analysis The script retrieves JSON from an externally operated API and directly prints the response's `query`, `name`, `description`, and `source` values without removing terminal control characters. Truncating `description` by character count does not neutralize embedded ANSI, OSC, C0, or C1 control sequences. If the remote API, its backing index, or an indexed skill record is attacker-controlled or compromised, these fields can contain terminal escape ...[truncated 2077 chars]- Remediation
View remediation
