T09 · Insecure Skill Coding Practices
- Location
SKILL.md:220- Finding
Bearer API key can be transmitted to an arbitrary or insecure origin
- Content
View full analysis
dict: headers = {"Authorization": f"Bearer {KEY}", "Accept": "application/json"} if json_body is not None: headers["Content-Type"] = "application/json" r = httpx.request(method, f"{BASE}{path}", params=params, json=json_body, headers=headers, timeout=30.0) ``` ### Technical Analysis The documented clients take `HEYI_API_BASE_URL` directly from the environment and attach the secret `HEYI_API_KEY` as a Bearer credential without validating the URL scheme, hostname, port, or origin. Consequently, the base URL can point to: - An attacker-controlled HTTPS service. - A plaintext HTTP endpoint. - An internal service reachable from the Agent's environment. - A lookalike or otherwise untrusted domain. This conflicts with the Skill's own instruction that business requests should remain under ...[truncated 1163 chars]- Remediation
View remediation
