refund-a-card-payment
Audited by Snyk on Nov 11, 2026
MEDIUM W009: Direct money access capability detected (payment gateways, crypto, banking).
- Direct money access detected (medium risk: 0.30). Decisive operation: the skill guides building an integration that issues card refunds through
POST /v1/payments/{paymentId}/refundandPOST /v1/refunds. Per the skill, a closed-batch refund "returns funds to the cardholder's account (true refund)," so this is a direct transfer of money, not an indirect bill or reimbursement. It is in scope even though the skill is framed as developer guidance, because it documents the operational refund route and its gateway behaviour.
Control evidence: the route is gated by service-side authentication. Step 1 requires an API key to be sent to the identity service (POST https://identity.payroc.com/authorize with x-api-key), which issues a Bearer token. The refund endpoints are documented as requiring Authorization: Bearer <token>. The service validates the credential and issues the token, and the agent cannot make that check accept invalid credentials. This is a documented authentication mechanism enforced by the service for the payment route, so it qualifies as an independent access control under the evidence standard. The skill's own checklist also treats the Bearer token from the identity service as the required credential. Reversal confirmation prompts and the intake questions are agent-followed and are not relied on for this determination.
Because the direct refund route has qualifying service authentication, severity is medium.
Issues (1)
Direct money access capability detected (payment gateways, crypto, banking).