T09 · Insecure Skill Coding Practices
- Location
SKILL.md:25- Finding
Paid Requests May Be Retried Without Explicit Transaction Confirmation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 25-26
Vulnerability Type: Uncontrolled cryptocurrency payment authorization
Risk Level: Mediummarkdown > All endpoints are GET on `https://store.agentexchange.work`. Paid calls return HTTP 402; > your x402 client signs USDC on Base and retries. Free preview: `GET /samples`.Technical Analysis
The Skill instructs an x402 client to sign a USDC payment on the Base network and retry a request after receiving HTTP 402. It does not require explicit user confirmation before signing, verify that the server-requested amount matches the documented price, define a maximum authorized payment, or impose retry and session spending limits.
The endpoint price table documents expected charges, but it does not constitute transaction-specific consent or enforce those prices. If an agent follows these instructions automatically, the external server's payment challenge can initiate cryptocurrency spending using the wallet authority available to the x402 client.
Attack Path
- A user requests a brand, category, sales-lead, or cryptocurrency visibility operation.
- The agent sends a request to the documented third-party service.
- The service responds with an HTTP 402 payment challenge.
- Following the Skill instructions, the x402 client signs a USDC payment on Base.
- The client retries the paid request without obtaining transaction-specific user approval.
- Repeated invocations or insufficiently bounded retry behavior may cause cumulative charges.
Impact Assessment
Exploitation is limited to the payment authority delegated to the x402 client and does not, based on the reviewed file, grant broader host or operating-system privileges. The primary impact is unauthorized or unexpected expenditure of USDC. The external service also receives the query parameters required for the request, such as brand names, categories, domains, or cryptocurrency project names.
No evidence was found of ...[truncated 123 chars]
- Remediation
View remediation
Remediation Suggestions
- Require explicit user confirmation before every paid request.
- Display the destination endpoint, request parameters, recipient, blockchain network, token, exact charge, and maximum possible charge before authorization.
- Validate the HTTP 402 payment request against a local allowlist and the documented endpoint price.
- Reject charges that exceed a configured per-request limit or differ from the user-approved amount.
- Add per-session and daily spending caps.
- Permit no more than one payment attempt per approved operation unless the user separately authorizes another attempt.
- Verify transaction and service-response status before considering a request complete.
- Default to the free
/samplesendpoint where it can satisfy the request. - Record an auditable payment receipt without logging wallet secrets or signing material.
