T09 · Insecure Skill Coding Practices
- Location
SKILL.md:18- Finding
API Key Exposure Through Plaintext HTTP and User-Controlled Destinations
- Content
View full analysis
"` in production. ``` ### Technical Analysis The Skill permits the destination host to be supplied by the user and directs the agent to send an API key to that host. It does not require HTTPS for non-loopback destinations, restrict destinations to trusted origins, or require confirmation before forwarding an environment-derived credential to a changed origin. Although plaintext HTTP is ordinarily acceptable for traffic strictly confined to the loopback interface, the instruction explicitly allows replacing `localhost` with another host. An authenticated request to such a host can expose the `x-api-key` to: - The destination server operator. - A network attacker capable of observing or modifying plaintext traffic. - Proxies and network-monitoring systems. - Command execution or agent logs that record literal request headers. The ...[truncated 1637 chars]- Remediation
View remediation
