Critical x402 SDK Flaw Could Let Malicious APIs Drain AI Agents’ Token Balances

AI agents that pay for API calls with the x402 SDKs could have been billed for their entire balance of a supported token if an attacker’s API requested it, a security firm discovered on October 22.

The cause was the default client in the SDKs, which did not specify a spending limit through the release on August 18, which included some fixes. The danger only affected agents that automatically approve payments and have no spending limits set in their apps.

The missing default limit is one of the 25 issues in the x402 code that V12 uncovered. It is also among the three critical problems that the security firm highlighted and described in detail. The x402 Foundation, which maintains the SDKs, has already addressed all three issues in the August 18 updates.

One of the other two permitted a facilitator (the service that checks x402 payments) to accept a Solana transaction that transferred no tokens as a valid payment. Only the TypeScript SDK among the x402 implementations had this vulnerability. Another allowed an attacker to lure in an agent to sign a login message for a different website read more about Critical x402 SDK Flaw Could Let Malicious APIs Drain AI Agents’ Token Balances.

Get up to date on the latest cybersecurity news and enhance your knowledge of cybersecurity with our thorough coverage of the dangers, breaches, and solutions.

Leave a Reply

Your email address will not be published. Required fields are marked *