Methodology v1.3

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.

#CheckModeHow it is testedFails when
1Rate limitingFullA bounded burst of unpaid requestsNo 429 and no RateLimit-* headers are observed (warn if headers exist but never trigger)
2Price slippageBothThe challenge is read three timesThe amount changes between identical requests. Warns if nothing bounds how long a quote is valid, or if maxTimeoutSeconds is over one hour.
3Idempotency and race conditionsFullOne payment is sent twice in a row, then a fresh payment is sent five times at the same momentThe replay is settled again, or more than one concurrent copy is settled. Needs a sandbox signature to be conclusive.
4TraceabilityBothRequest IDs are checked on each observed response; each successful payment-shaped response is checked for its own PAYMENT-RESPONSEFull: 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.
5Signature strictnessFullUnderpayment, overpayment, wrong network, a different token, an expired and a not-yet-valid authorisation and (sandbox) a bad signature are sentAny of them is accepted with a 2xx
6Upto meteringFullFive requests on one authorisation, only for the upto schemeThe settled total reported in PAYMENT-RESPONSE exceeds the authorised maximum
7Error handlingFullResponses to the invalid payments above are reviewedAny 5xx, because clients commonly retry server errors
8Challenge conformanceBothThe 402 challenge is validated against the v2 structureA required field is missing or malformed
9Asset and networkBothEach payment option's token is compared with Circle's published native USDC contract for that networkThe 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.
10Resource bindingBothThe challenge's resource URL is compared with the URL requestedWarns if it is missing, relative, or names a different scheme, host or path
11Payee consistencyBothpayTo is compared across every 402 responseThe payee changes between requests, is a burn address, is not a valid address, or is the token contract itself
12Transport securityBothThe TLS version, certificate expiry and Strict-Transport-Security header are read from the connectionPlain HTTP or TLS older than 1.2. Warns if HSTS is missing or under six months, or the certificate expires within 14 days.
13Information exposureBothResponse bodies and headers are scanned for stack traces, internal paths, private IP addresses and version bannersA stack trace, internal path or private address is returned. Warns on version banners such as Server: nginx/1.x or X-Powered-By.
14CORS policyBothOne of the three passive requests carries an Origin header from an unregistered test domainThe server reflects that origin (or null) together with Access-Control-Allow-Credentials: true
15Cross-resource replayFull, optionalA payment made for this URL is presented at a second paid URL on the same host with the same priceThe 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 upto scheme check reflects the public documentation and is under review. An optional audit-reference header such as X-PAYMENT-SECURE is not part of the v2 specification and cannot replace PAYMENT-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.