T09 · Insecure Skill Coding Practices
- Location
SKILL.md:3- Finding
Bearer Token and Sensitive WeChat Data Transmitted over Plaintext HTTP
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 3
Vulnerability Type: Plaintext transmission of credentials and sensitive data
Risk Level: HighVulnerable Code
yaml endpoint: http://www.synodeai.com/aiThe API operations use the configured endpoint while supplying a bearer credential, for example:
yaml - `Authorization: Bearer {{env.WECHAT_TOKEN}}`The same authorization pattern is documented for all seven API operations.
Technical Analysis
The Skill configures its third-party API endpoint with unencrypted HTTP. Requests to this service include a reusable bearer token and may contain WeChat application identifiers, contact names, WeChat IDs, group identifiers, message contents, and file or image URLs.
HTTP provides neither transport confidentiality nor server authenticity nor message integrity. An attacker with a network position between the agent and the endpoint could inspect requests, capture the bearer token, or modify request parameters and responses. The documented user-confirmation workflow does not mitigate this issue because interception or alteration occurs after the user has approved the intended action.
Attack Path
- A user invokes the Skill to locate a WeChat contact or group or to send content.
- The agent sends an API request to the configured
http://endpoint withAuthorization: Bearer {{env.WECHAT_TOKEN}}. - An attacker controlling or observing an intermediary network segment intercepts the plaintext request.
- The attacker obtains the bearer token and sensitive request data, or alters the intended recipient or message content in transit.
- If the server accepts the captured token, the attacker replays it to query available WeChat information or invoke message-sending operations within the token's permissions.
Impact Assessment
Successful exploitation may disclose the API bearer token, WeChat application identifier, contact and g ...[truncated 428 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace the endpoint with an
https://URL and prohibit fallback or redirection to plaintext HTTP. - Enforce strict TLS certificate and hostname validation. Consider certificate pinning where the deployment and certificate-rotation model can support it safely.
- Use short-lived, narrowly scoped access tokens that authorize only the operations required by the Skill.
- Rotate or revoke any bearer token that may previously have been transmitted to this endpoint over HTTP.
- Prevent credentials, message contents, contact identifiers, and sensitive file URLs from appearing in logs or diagnostic output.
- Prefer expiring, access-controlled URLs for file and image delivery instead of public or long-lived links.
- Add transport-security tests that reject non-HTTPS endpoint configuration and verify that redirects cannot downgrade the connection.
- Preserve the existing recipient lookup and explicit user-confirmation workflow, while validating the final recipient and content immediately before transmission.
- Replace the endpoint with an
