T09 · Insecure Skill Coding Practices
- Location
SKILL.md:48- Finding
Bearer Token Exposure over an Unencrypted Remote MCP Connection
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:48
Vulnerability Type: Plaintext transmission of authentication credentials
Risk Level: HighVulnerable Code Snippet:
markdown | **Native install (VPS)** | `http://<vps-ip>:5102/platform/v1/mcp/sse` |Technical Analysis
The documented VPS endpoint uses plaintext HTTP even though the MCP connection authenticates with a bearer token. HTTP does not provide transport encryption, server authentication, or integrity protection.
When an agent connects to this endpoint, the bearer token and MCP traffic may be visible to any party capable of monitoring the network path. An active attacker could also alter responses or impersonate the MCP endpoint. Possession of the bearer token is sufficient to authenticate within its assigned scopes.
Attack Path
- A user configures the AI agent with the documented remote HTTP endpoint.
- The agent sends an authorization bearer token to the VPS over plaintext HTTP.
- An attacker on the local network, hosting network, proxy path, or another observable network segment captures the request.
- The attacker extracts the bearer token.
- The attacker submits authenticated requests to the store API or MCP endpoint.
- The attacker exercises every store-management permission granted to the compromised token.
Impact Assessment
Depending on token scopes, an attacker may gain access to store products, orders, customer conversations, profile settings, notifications, and financial account information. Write-capable scopes may permit product modification or deletion, fraudulent buyer messages, order fulfillment changes, refunds, or store-profile manipulation.
The compromise remains effective until the exposed token expires or is revoked.
- Remediation
View remediation
Remediation Suggestions
- Remove direct remote HTTP endpoints from the recommended configurations.
- Require HTTPS with a valid, trusted certificate for all non-loopback MCP and API connections.
- If HTTPS is unavailable, require an authenticated SSH or VPN tunnel and connect through a loopback address.
- Configure clients to reject invalid certificates rather than disabling certificate validation.
- Document immediate token revocation and rotation procedures for suspected transport exposure.
- Consider issuing narrowly scoped, short-lived tokens so compromise does not grant unrestricted or durable access.
