T09 · Insecure Skill Coding Practices
- Location
SKILL.md:12- Finding
API Credential Transmitted in a URL Query Parameter
- Content
View full analysis
`. ``` ### Technical Analysis The connection procedure instructs users to place an InstantDM API key in the `auth` query parameter of an MCP endpoint URL. No real credential is hardcoded in the file, but the prescribed credential-handling pattern can expose the user's key. Although HTTPS encrypts the URL while it is in transit, complete URLs may still be retained or displayed by MCP client configuration, application and proxy logs, diagnostic reports, terminal history, screenshots, monitoring systems, or error messages. Query parameters are consequently unsuitable for long-lived bearer credentials unless every component handling the URL is explicitly designed to redact them. If the key functions as a bearer credential, possession may be sufficient to authenticate without additional proof of identity. ### Attack Path 1. A user obtains an InstantDM API key and substitutes it for the `` placeholder. 2. The resulting endpoint URL is entered into an MCP client or configuration interface. 3. The complete URL is retained or exposed through configuration output, logs, diagnostics, screenshots, command history, or telemetry. 4. An attacker with access to one of those sources extracts the `auth` query value. 5. The attacker connects to the InstantDM MCP endpoint using the disclosed key. 6. Subject to the permissions and restrictions assigned to that key, the attacker may read account data or invoke account-management operations. This path requires access ...[truncated 938 chars]- Remediation
View remediation
