How we test and score
Black-box checks against the x402 v2 specification. Each result states what was sent, what came back and how sure we are.
The checks
A passive scan runs nine checks: 2, 4 and 8 to 14. A full audit runs all of those plus 1, 3, 5 and 7, check 6 when the endpoint advertises the upto scheme, and check 15 when you name a second paid resource.
| # | Check | Mode | How it is tested | Fails when |
|---|---|---|---|---|
| 1 | Rate limiting | Full | A bounded burst of unpaid requests | No 429 and no RateLimit-* headers are observed (warn if headers exist but never trigger) |
| 2 | Price slippage | Both | The challenge is read three times | The amount changes between identical requests. Warns if nothing bounds how long a quote is valid, or if maxTimeoutSeconds is over one hour. |
| 3 | Idempotency and race conditions | Full | One payment is sent twice in a row, then a fresh payment is sent five times at the same moment | The replay is settled again, or more than one concurrent copy is settled. Needs a sandbox signature to be conclusive. |
| 4 | Traceability | Both | Request IDs are checked on each observed response; each successful payment-shaped response is checked for its own PAYMENT-RESPONSE | Full: neither header on a success fails; partial headers warn. No successful payment-shaped response means settlement traceability is inconclusive, not a missing-receipt warning. Missing request IDs still warn. Passive: request IDs on all responses pass. |
| 5 | Signature strictness | Full | Underpayment, overpayment, wrong network, a different token, an expired and a not-yet-valid authorisation and (sandbox) a bad signature are sent | Any of them is accepted with a 2xx |
| 6 | Upto metering | Full | Five requests on one authorisation, only for the upto scheme | The settled total reported in PAYMENT-RESPONSE exceeds the authorised maximum |
| 7 | Error handling | Full | Responses to the invalid payments above are reviewed | Any 5xx, because clients commonly retry server errors |
| 8 | Challenge conformance | Both | The 402 challenge is validated against the v2 structure | A required field is missing or malformed |
| 9 | Asset and network | Both | Each payment option's token is compared with Circle's published native USDC contract for that network | The token is not a contract address or is a burn address, or mainnet and testnet options are offered together. Warns on a USDC-named token that is not Circle's, or on testnet-only options. |
| 10 | Resource binding | Both | The challenge's resource URL is compared with the URL requested | Warns if it is missing, relative, or names a different scheme, host or path |
| 11 | Payee consistency | Both | payTo is compared across every 402 response | The payee changes between requests, is a burn address, is not a valid address, or is the token contract itself |
| 12 | Transport security | Both | The TLS version, certificate expiry and Strict-Transport-Security header are read from the connection | Plain HTTP or TLS older than 1.2. Warns if HSTS is missing or under six months, or the certificate expires within 14 days. |
| 13 | Information exposure | Both | Response bodies and headers are scanned for stack traces, internal paths, private IP addresses and version banners | A stack trace, internal path or private address is returned. Warns on version banners such as Server: nginx/1.x or X-Powered-By. |
| 14 | CORS policy | Both | One of the three passive requests carries an Origin header from an unregistered test domain | The server reflects that origin (or null) together with Access-Control-Allow-Credentials: true |
| 15 | Cross-resource replay | Full, optional | A payment made for this URL is presented at a second paid URL on the same host with the same price | The second resource accepts it, so one payment unlocks two resources |
Scoring
Each check that runs is worth two points: PASS is 2, WARN is 1, INCONCLUSIVE is 1 and FAIL is 0. The grade is the share of available points: A at 90% or more, B at 70%, C at 50%, D at 30%, otherwise F. Scores are only comparable between scans of the same mode and methodology version.
Inconclusive is not a pass
Replays and malformed payments need a payment the server would otherwise accept. Without a sandbox signature a real server rejects our placeholder, so the check cannot show whether the strict validation is the reason. We report that as inconclusive instead of guessing.
A full scan that never receives an HTTP success to a payment-shaped request cannot assess settlement receipt traceability. If request IDs are present, that check is inconclusive; missing request IDs remain a warning. A request ID and a receipt on different responses do not combine into a pass. Header presence alone does not verify a receipt or an on-chain transfer.
Passive and full modes
A passive scan sends three unpaid requests (GET, or POST with a JSON body the requester supplies) and never attaches a payment. One of the three carries an Origin header for the CORS check. Checks 9 to 14 read the same three responses, so they add no extra requests. A full audit attaches invalid and replayed payments and a short burst of requests, so it runs only on hosts where the requester proves control by serving a token. No real funds are ever sent.
Limits
- These are black-box checks of observable behaviour, not a code review or a security audit.
- The checks target the x402 v2 specification; v1 challenges are still read.
- The
uptoscheme check reflects the public documentation and is under review. An optional audit-reference header such asX-PAYMENT-SECUREis not part of the v2 specification and cannot replacePAYMENT-RESPONSE. - A rate limit may exist upstream of what a short burst can reach. "None observed" is not "none exists".
- The USDC check knows Circle's native contracts on the networks listed in Circle's public documentation. A token on any other network is reported as inconclusive, not as a failure.
- The concurrent-replay test compares response bodies. A server that settles twice but returns identical bodies can still pass it.
- Whether the server actually delivers what was paid for (charged but not delivered) needs a real settlement on a test network and is not yet tested.
Versioning and corrections
Every report states the methodology version it used. Changes are listed here.
- v1.3: corrected traceability confidence for unpaid full scans, required request IDs on every observed response for a passive pass, and stopped combining headers from different responses or substituting optional private headers for standard receipts. Point weights and check counts are unchanged. Historical reports retain their original version and results.
- v1.2: added checks 9 to 15, concurrent replay, and token and time-window variants to signature strictness. Passive traceability now passes when a request ID is present, because a passive scan can never see a settlement header. Passive grades from v1.1 and v1.2 are not comparable.
- v1.1: checks 1 to 8.
If you believe a result is wrong, write to [email protected] with the report link and we will review and correct it.
Reference
The protocol is defined in the public x402 specification maintained at github.com/coinbase/x402.