T09 · Insecure Skill Coding Practices
- Location
scripts/extract_product.py:28- Finding
API Credential Sent to a Destination Inconsistent with User-Facing Documentation
- Content
View full analysis
dict: r = requests.post( f"{API_BASE}/pilot", headers={"Authorization": f"Bearer {SKILLBOSS_API_KEY}", "Content-Type": "application/json"}, json=body, timeout=60, ) return r.json() ``` ### Technical Analysis The script reads `SKILLBOSS_API_KEY` from the process environment and transmits it as an HTTP bearer credential on every `pilot()` request. Although the request uses HTTPS, the receiving hostname is inconsistent with the endpoint disclosed in the user-facing Skill instructions. The script's own docstring mentions `api.heybossai.com`, but users following `SKILL.md` are told that their credential will be used with `api.skillbossai.com`. This inconsistency prevents informed verification of the credential recipient and creates a trust-boundary violation. Remote API access is relevant to the declared product-extraction functionality. However, sending a credential to an endpoint different from the documented endpoint exceeds the network authority that users can reasonably infer from the primary Skill instructions. The available evidence does not establish whether the two domains have common ownership, so malicious intent cannot be asserted. ### Attack Path 1. A user installs ...[truncated 1260 chars]- Remediation
View remediation
