Briefing · Paper · source · updated · Boston Identity
One x402 payment, replayed 1,000 times, was accepted up to 248 times; no audited SDK ties it to what it paid for
Researchers at Ohio State, CSIRO and Manchester attacked x402, the HTTP 402 stablecoin payment protocol pitched for AI agents, on local chains, Base's test network and four live test endpoints. Each signed payment settled on chain once while the web servers in front of it kept accepting it, and none of the three SDKs they audited tied a payment to the resource it paid for. In an emulated discovery catalog, a planted server drew three LLM agents about 70% of the time.
What changed: Clarified that the x402 version 2 specification comparison comes from our separate read, not the attack paper.
What's happening
Finding5None of the three x402 SDKs Li, Wang and Wang audited binds a payment to its resource, so on a test endpoint one payment could be replayed for three others.
Li, Wang and Wang find that an x402 payment behaves like a bearer token in the code they audited. None of the three SDKs, Coinbase's TypeScript reference among them, binds a payment to the resource it was signed for, so a payment for one resource on a test endpoint could be replayed for three others on the same server. Nor does any of them mark a payment id as spent before granting; the authors note only one Rust SDK's pessimistic mode avoids duplicate grants, by settling before it responds. On one anonymized live test endpoint, 1,000 concurrent replays of a single payment header produced, in the strongest round, 248 HTTP grants and one on-chain settlement. In the authors' words, "the contract enforces 'one settlement,' while the web service still fails to enforce 'one grant.'"
flag a problem with BI-FIND-2026-0959
In the authors' tests, x402 settlement could leave a server unpaid after a chain reorganization or leave a payer charged and refused service.
The settlement path can fail either party. A server that grants on an unconfirmed transaction goes unpaid if a chain reorganization drops it: in the authors' local model, with a 5% reorganization rate they injected and a 400 ms delay, 5.18% of grants went unpaid, and a dishonest facilitator pushed it to 100%. Base's test network showed the gap exists but had no reorganizations to count. In their model, waiting for confirmations cuts the rate to the measurement floor and costs time: median waits of 6.0 seconds at three confirmations and 25.1 at twelve with 2-second blocks. One third-party Python SDK streams the paid response before settlement runs, so a client can get the service even when settlement fails. The payer's risk is that settlement is not bound to the facilitator the payer expected, so anyone who sees the signed authorization can settle it first. In two traces on Base's test network, an unrelated account settled an observed authorization first, and in one of them the payer was charged and refused service. The x402ExactPermit2Proxy contract lets any caller run settle(), while its sibling x402UptoPermit2Proxy binds the facilitator. The authors call that test "a feasibility validation rather than a rate estimate."
flag a problem with BI-FIND-2026-0960
With nginx's proxy cache on and no Cache-Control header, all 1,000 unpaid requests in the authors' test got the cached paid response.
Caching is the web-layer failure the authors could show end to end. With nginx's proxy cache on and no Cache-Control header, all 1,000 unpaid requests got the cached paid response; with Cache-Control: no-store, private, none did. No audited SDK adds that header to paid responses, and one live endpoint returned paid responses marked publicly cacheable. The other half of the attack, tampering with payment headers in transit, worked only through a proxy the authors wrote, which they say shows parser ambiguity "but does not itself constitute an end-to-end bypass."
flag a problem with BI-FIND-2026-0961
In the authors' emulated discovery catalog, one planted server with crafted metadata was picked 68.8% to 71.8% of the time by each of three models.
An agent that picks a paid service from a discovery list can be steered by whoever writes the listings. In a catalog the authors emulated from the public x402scout list, with their own retriever handing a top-10 shortlist to the model, one planted server with crafted metadata was chosen 71.8% of the time by MiniMax-M2.7, 69.4% by GPT-5.3 and 68.8% by Anthropic's Claude Sonnet 4.5 across 12 categories. Adding look-alike Sybil servers raised capture from 27.5% with one to 60.2% with five. The authors read the similar rates as a property of the discovery setup more than of any model, and they did not test the live Bazaar.
flag a problem with BI-FIND-2026-0962
The authors reported x402 issues to Coinbase through HackerOne, and the paper gives no response or fix status.
No fix is on the record. The authors reported issues in "x402 permit settlement, Bazaar discovery registration and resource-identifier binding" to Coinbase through HackerOne, and the paper gives no response or fix status. Our separate read of the x402 Foundation's version 2 specification found that, as of 31 August 2026, it kept its security section as it was in April, with replay prevention resting on the on-chain nonce, the layer this paper found already holds. A fix could still sit in the scheme files or the SDKs, which our separate read did not cover.
flag a problem with BI-FIND-2026-0963
Section by section
6showing 6 of 6
[1]Formal model and security theorems for x402
Zelin Li, Qin Wang, Zhipeng Wang, Ohio State University; CSIRO; University of Manchester
Agentic paymentsStandards
Formal model and security theorems for x402
Zelin Li, Qin Wang, Zhipeng Wang, Ohio State University; CSIRO; University of Manchester
The authors model x402 as clients, resource servers, facilitators and a chain with probabilistic finality. They define four properties (authorization soundness, payment-service correspondence, replay resistance, facilitator k-atomicity) and prove theorems 6-9; Corollary 10 suggests k>=3 or k>=12 on Base.
technical artifactfrom published text + figures
[2]Attack I: settlement-path inconsistencies (revert-grant, preemption)
Zelin Li, Qin Wang, Zhipeng Wang, Ohio State University; CSIRO; University of Manchester
Agentic paymentsStandards
Attack I: settlement-path inconsistencies (revert-grant, preemption)
Zelin Li, Qin Wang, Zhipeng Wang, Ohio State University; CSIRO; University of Manchester
I-A: a server that grants on a non-final signal can be left unpaid after a reorg; I-B: settle() not bound to the caller lets an observer consume the payment authorization, so the payer is charged and denied. Measured: RGP0 up to 5.18% on a local chain with injected reorgs; Byzantine facilitator 100%; two Base Sepolia preemption traces.
technical artifactfrom published text + figures
[3]Attacks II and III: replay without idempotency, proxy and cache leakage
Zelin Li, Qin Wang, Zhipeng Wang, Ohio State University; CSIRO; University of Manchester
Agentic payments
Attacks II and III: replay without idempotency, proxy and cache leakage
Zelin Li, Qin Wang, Zhipeng Wang, Ohio State University; CSIRO; University of Manchester
II: one payment header replayed n times yields n HTTP grants where no pay_id claim is recorded (testbed, a Python SDK, a Rust SDK in optimistic mode); live testnet endpoint gave 248 grants and 1 settlement from 1,000 concurrent replays. III: nginx cached paid content 1,000/1,000 without Cache-Control; header mutation only with a custom MitM proxy; one live CDN endpoint leaked.
technical artifactfrom published text + figures
[4]Attack IV: server-selection manipulation in Bazaar-style discovery
Zelin Li, Qin Wang, Zhipeng Wang, Ohio State University; CSIRO; University of Manchester
Agentic paymentsAI trust
Attack IV: server-selection manipulation in Bazaar-style discovery
Zelin Li, Qin Wang, Zhipeng Wang, Ohio State University; CSIRO; University of Manchester
Emulated discovery over a public catalog (not the live Bazaar): one crafted listing was selected 68.8-71.8% across three LLMs (MiniMax-M2.7, GPT-5.3, Sonnet 4.5); Sybil aliases raised selection from 27.5% (r=1) to 60.2% (r=5). 2,160 decisions, 12 categories. E3-E5 not tested.
technical artifactfrom published text + figures
[5]Cross-implementation audit and attack cost
Zelin Li, Qin Wang, Zhipeng Wang, Ohio State University; CSIRO; University of Manchester
Agentic paymentsStandards
Cross-implementation audit and attack cost
Zelin Li, Qin Wang, Zhipeng Wang, Ohio State University; CSIRO; University of Manchester
Audit of three SDKs (Coinbase TypeScript reference, a third-party Python one, a third-party Rust one) and four anonymized live testnet endpoints: all enforce timestamp windows; none binds payment to resource_id, none adds Cache-Control, pay_id idempotency absent except Rust pessimistic mode. Attacks cost cents or less.
technical artifactfrom published text + figures
[6]Mitigations M1-M6, tradeoffs, limits and disclosure
Zelin Li, Qin Wang, Zhipeng Wang, Ohio State University; CSIRO; University of Manchester
Agentic paymentsStandards
Mitigations M1-M6, tradeoffs, limits and disclosure
Zelin Li, Qin Wang, Zhipeng Wang, Ohio State University; CSIRO; University of Manchester
Six mitigations: typed canonical signed encoding including resource and facilitator (M1), facilitator-bound settle (M2), single-use claim of (pay_id, resource_id) (M3), reserve-then-settle or k-finality (M4), no-store caching (M5), discovery validation and Sybil limits (M6). Notes k vs latency (6.0s at k=3 to 25.1s at k=12), controlled-model caveats; ERC-8004 seen as complementary. Reported to Coinbase via HackerOne.
technical artifactfrom published text + figures
