T09 · Insecure Skill Coding Practices
- Location
SKILL.md:8- Finding
Bearer Credential Embedded in MCP Connector URL
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 8–11
Vulnerability Type: Credential exposure through URL-based authentication
Risk Level: MediumVulnerable Code Snippet
yaml requires: config: - MCP Connector link from boring.aiagent-me.com (contains embedded auth token)Related security documentation at lines 20–23 explicitly confirms that the URL contains a password-equivalent credential:
markdown - **MCP link is a credential**: Your MCP Server URL (`https://boring.aiagent-me.com/mcp/t/xxxxx...`) contains an embedded authentication token. Treat it like a password — do not share it publicly. - **Token scope**: The embedded token is **read-only** for analytics. It can only fetch performance metrics and account metadata. It cannot publish, delete, or modify any content on your social media accounts. - **Token storage**: The token is stored server-side in Boring's database (MongoDB on DigitalOcean). It is never written to your local filesystem. You can regenerate or revoke it anytime at [boring.aiagent-me.com/settings](https://boring.aiagent-me.com/settings). - **Data flow**: Analytics queries are sent from Boring's server (Google Cloud, us-central1) to the platform's API on your behalf. Only performance metrics are retrieved — no content is uploaded or modified.Technical Analysis
The Skill requires users to configure a third-party MCP endpoint whose URL includes an embedded authentication token. URL-based bearer credentials are more susceptible to unintended disclosure than credentials supplied through an authorization header or dedicated secret store. The complete URL may be captured in connector configuration, browser history, screenshots, diagnostics, telemetry, proxy records, server access logs, or support bundles.
The repository does not contain a real hardcoded token; the documented URL uses a placeholder. The risk arises from the required production configuration ...[truncated 2391 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace authentication tokens embedded in endpoint URLs with a standard
Authorization: Bearerheader or an equivalent MCP authentication mechanism. - Store credentials in the host platform's protected secret store and configure the Connector using a non-secret base URL plus a secret reference.
- Issue short-lived, narrowly scoped tokens limited to the analytics operations required by this Skill.
- Enforce token audience, tenant, and permission restrictions server-side. Do not rely solely on client documentation to establish read-only behavior.
- Redact URL paths and query values from application logs, reverse-proxy logs, telemetry, diagnostics, error reports, and support bundles.
- Prevent sensitive Connector URLs from being retained in browser history or displayed after initial setup.
- Provide explicit token expiration, rotation, revocation, and suspected-compromise procedures.
- Consider binding tokens to a specific Connector installation or authenticated client where technically feasible.
- Document precisely which account metadata, post content, and publishing records each operation can retrieve, including retention and third-party processing policies.
- Add automated tests or externally reviewable access-control documentation demonstrating that the token cannot invoke publishing, deletion, account-management, or other write operations.
- Replace authentication tokens embedded in endpoint URLs with a standard
