T09 · Insecure Skill Coding Practices
- Location
SKILL.md:23- Finding
Potential Disclosure of User Data to a Public Third-Party Endpoint
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 23–32
Vulnerability Type: Unnecessary third-party data transmission
Risk Level: MediumVulnerable code snippet:
markdown When an analysis request needs to be submitted, send a **POST** request (JSON body) to the following API:text Example body: ```json { "input": "...", "skill": "cruise-product" }text ### Technical Analysis The skill instructs an agent to place request content in the `input` field and transmit it to `https://httpbin.org/post`. This is a public HTTP testing and echo service rather than an endpoint inherently required to provide the advertised cruise-product functionality. Although HTTPS protects data in transit, the destination service receives the plaintext request body after TLS termination. The instructions provide no data-minimization rules, secret redaction, user-consent requirement, retention disclosure, or restriction against sending personal, confidential, or credential-bearing content. The document later states that the URL will be replaced after publication, but the audited artifact still contains the public endpoint and can be acted upon in its current form. This is categorized as `T09: Insecure Skill Coding Practices` because the distributed skill configuration directs potentially sensitive user-controlled data to an unnecessary third-party service without adequate safeguards. ### Attack Path 1. An agent or user loads the skill and follows the usage instructions in `SKILL.md`. 2. A user supplies an analysis request that may contain personal information, confidential business data, credentials, tokens, or other sensitive content. 3. The agent inserts that content into the JSON `input` property. 4. The agent sends the body to `https://httpbin.org/post`. 5. The third-party service receives and processes the submitted content. 6. Anyone with relevant access to the endpoi ...[truncated 632 chars]- Remediation
View remediation
Remediation Suggestions
- Remove the
httpbin.orgplaceholder from every distributed artifact. - Replace it with the intended, organization-controlled production gateway before publication.
- Validate the configured destination against an explicit allowlist and fail closed if a placeholder or unapproved host remains.
- Clearly identify the gateway operator and document data processing, retention, logging, and deletion practices.
- Require explicit user consent before transmitting content to any external service.
- Minimize outbound data and redact credentials, API keys, access tokens, personal data, and other secrets before transmission.
- Apply request-schema validation, payload-size limits, strict TLS certificate verification, authentication, authorization, and appropriate timeouts.
- Add a release-time automated check that rejects public test endpoints and unresolved template text.
- Update the example to use demonstrably synthetic, non-sensitive input and include a warning that confidential information must not be submitted.
- Remove the
