Micro-payment credential challenge-binding and amount-equality idempotency¶
Source: hourly offensive-security scan, 2026-09-22 (GHSA published 12:30Z). Primary entries: GHSA-96m7-5wfv-978m / CVE-2026-89420 and GHSA-h97r-55w6-6rfg / CVE-2026-87119 in ZenHive mpp (a machine-to-machine micropayment protocol library for Elixir; affected 0.14.0 before 0.16.2).
This pair is durable because mpp-style payment rails sit underneath AI-agent/MCP paid-endpoint infrastructure (the Plug, MCP, JSON-RPC, and WebSocket transports all reach the vulnerable code), and both advisories spell the same reusable rule in opposite directions: a signed payment credential must be bound to the per-session challenge, and the deduplication/idempotency key must be derived from the credential, not from rotating server state. When those two derivations diverge, one credential buys unlimited service, or bills the victim unlimited times.
What changed¶
| Advisory | Component | Boundary | Direction |
|---|---|---|---|
| GHSA-96m7-5wfv-978m / CVE-2026-89420 | MPP.Session.Actions.accept_voucher/3 | A voucher whose cumulativeAmount equals the channel's already-accepted cumulative amount is treated as an idempotent duplicate success: the channel is returned unchanged and maybe_spend/2 is never called. The credential verifies, the paid resource is served, and spent/units do not move. Because the server issues a fresh challenge per request and the replay store keys on challenge id + payload, the same signed voucher re-validates under every new challenge → one paid voucher yields unbounded paid units | attacker gets free paid resources |
| GHSA-h97r-55w6-6rfg / CVE-2026-87119 | MPP.Methods.Tempo.KeyAuthorization.verify/3 + MPP.Methods.Tempo.Subscription.activate/4 | The payer's signature covers chain id, key type, key id, expiry, limits, and scopes, nothing ties it to the challenge that prompted it. Each signed field is pinned against the subscription request, but the pinned access key is a static per-endpoint server key, so one captured authorization verifies against every challenge issued for the same terms. Activation dedup keys on challenge id, so presenting the captured credential under a fresh challenge produces a different dedup key, the activation succeeds again, and the payer's wallet is charged a new settlement each replay | attacker re-charges a victim's wallet |
Common primitive: challenge-id-keyed dedup + challenge-unbound signature = replayable credential. The server rotates the nonce the credential should have been bound to, then uses that rotating nonce as the very thing that decides "have I seen this before?" The dedup key and the signature payload must overlap; here they are disjoint.
Operator test battery¶
Apply to any payment/entitlement rail: x402-style agent payment headers, MCP paid tools, per-request voucher/micropayment protocols, API-metering systems, and any "signed authorization + server challenge" handshake.
- Challenge-binding check. Capture one valid signed credential (voucher, authorization, activation). Request a fresh challenge/nonce, re-present the old credential under it, and diff the verdict. A credential that verifies under a new challenge is binding-deficient before you even consider dedup. Sweep the signed field list versus the fields the server actually pins at verify time: fields signed but unpinned, and server-side values (static per-endpoint keys, fixed limits) that pin successfully for every request, are the seam.
- Idempotency-key derivation check. Replay the exact same credential under identical server state and confirm the charge/spend state moves exactly once. Then replay after the server rotates its per-request state (new challenge, new session). A server that answers "already seen" without executing the effect, while still serving the paid resource, is collapsing idempotency onto an equality test (
cumulativeAmount == accepted) instead of credential identity. Positive evidence: the resource is served and the ledger/spend counter is unchanged, repeatedly. - Direction control. Determine which party the replay harms: free resource to the payer (CVE-2026-89420 class) or repeated charges to a wallet (CVE-2026-87119 class). Report them differently, the second is fraud against a third party, and the proof must stay on your own disposable wallet/key.
- Transport parity. The advisory states the path is reachable through Plug, MCP, JSON-RPC, and WebSocket transports. Run the battery once per transport, metering code frequently shares the session layer but not the replay-store lookup.
Validation boundaries¶
- Use disposable wallets/keys and the lab endpoint's own pricing (minimum-unit products). Never replay against a third party's payment channel or charge any wallet you do not own.
- Keep evidence to ledger/spend deltas, challenge ids, and response verdicts. Do not extract settlement private keys, channel state of other clients, or production payment data.
- A replay that only "verifies" without a service-delivery or billing-side effect is a parser observation, not a finding, prove the effect leg (resource served / new settlement built) with counters, not inference.
Reporting heuristics¶
- Title as replayable payment credential: signature not bound to server challenge or idempotency check keyed on amount equality lets one voucher purchase unlimited units, the ledger/resource divergence is the impact sentence.
- Include: transport used, the signed field list vs the verify-time pinned field list, the dedup key derivation, and both counters (resource served, units spent) before/after each replay.
- This is the payment-domain sibling of the token-link authority family (signature-valid-but-target/nonce-unbound): recovery tokens unbound to the user-ID parameter (Sept 22 WP wave), reset links unbound to origin (Sept 18 page), TOTP unbound to a consumed-code ledger (Sept 21 fold). Same sweep, different domain: sweep which copy of the session state the verifier reads versus which copy the dedup/effect layer reads.
November 19 follow-up: ZenHive mpp six-leg enrichment wave, dedup stores that are absent, non-atomic, or keyed on regenerated server state, and the sponsor policy that reads some envelope fields but not all (CVE-2026-67581 / GHSA-vrg5-xm7q-qcjh, CVE-2026-73136 / GHSA-cw4v-5gcf-x3cw, CVE-2026-73829 / GHSA-vjfr-ffhr-5g8p, CVE-2026-73541 / GHSA-j5gr-9qmc-3234, CVE-2026-82750 / GHSA-q4f3-jf9f-788f, CVE-2026-82751 / GHSA-6fjm-7mv9-c325; originals published Aug 19/Sep 6, enrichments landed 2026-11-19T09:31Z)¶
Six more mpp legs landed as full-detail enrichments, extending the same library from "credential-binding divergence" to the full payment-gate failure taxonomy. All are unauthenticated against the paid resource.
| Advisory | Method | Boundary |
|---|---|---|
| CVE-2026-67581 (0.3.0–<0.6.3) | EVM | type="hash" credential matched purely on token/to/amount (or to/value), bound to neither challenge nor prior-use record; the generic Plug dedup store keys on challenge.id which is regenerated for every 402 response, so one historical transfer visible on a public block explorer satisfies an unbounded number of later charges on static-price routes |
| CVE-2026-73136 (0.6.1–<0.6.4) | Tempo | Static memo in method_config makes check_matched_memo_binding/3 return match unconditionally, skipping the attribution-nonce binding; the memo is echoed in every unauthenticated 402 response and Tempo transfers are public, so any transfer paid by a legitimate customer can be claimed as a type="hash" credential; the hash path does no sender/signature check tying presenter to payer |
| CVE-2026-73829 (0.2.0–<0.6.1) | Tempo | TOCTOU: check_hash_unused/2 read, eth_getTransactionReceipt round trip, then mark_hash_used/2 write, non-atomic. Concurrent same-hash requests all pass the read before any write, each gets a receipt. The store's atomic check_and_mark/2 exists and the type="transaction" path uses it; the hash path calls plain get/put anyway. Default nil store is stateless with no replay protection at all |
| CVE-2026-73541 (0.2.0–<0.12.0) | Tempo fee sponsor | Per-transaction ceilings (max_gas, budget cap, validity window) enforced one tx at a time with no cross-concurrency accounting; reserve_hash_atomic/2 keys on tx hash so N distinct sponsored txs with distinct expiring nonces each get sponsored, committed exposure = N x max_total_fee, default 900s window keeps them broadcastable |
| CVE-2026-82750 (0.2.0–<0.16.1) | Tempo fee sponsor | FeePayerPolicy.measure/3 bounds gas fields, fee budget, validity window, access list, never reads aa_authorization_list on the client-signed 0x76 envelope; every signed EIP-7702 delegation is billed as intrinsic gas to the sponsor (46,575 → ~1.88M gas at seven entries) and persists as a set-code delegation on the client's own account |
| CVE-2026-82751 (0.2.0–<0.16.1) | Tempo fee sponsor | Same measure/3 does not check the optional key_authorization field; a client attaches a fully signed key authorization provisioning an access key with token spending limits on its own account, persistent storage writes billed to the sponsor (46,587 → ~1.81M gas), client keeps a free valid access key |
New axes beyond the original pair:
- Dedup-store lifecycle battery. Ask three questions of any payment/entitlement gate: (a) does a dedup store exist at all (the default nil store here ships documented-no-protection, test unconfigured deploys first), (b) what is the dedup key derived from (server-regenerated
challenge.id= useless, credential identity = correct), (c) is check-and-mark atomic (the library shipscheck_and_mark/2and one path forgets to call it; fire N concurrent identical credentials and count receipts). - Public-ledger credential theft. On-chain rails make "someone else already paid" a reusable input: token/to/amount equality against a block-explorer-visible transfer is an entitlement when the verifier does not tie the presenter to the payer (no sender/signature check on the claim). Test by claiming a third-party transfer you observed, never by paying from a real customer wallet.
- Field-subset policy review on sponsor/fee-payer paths. A policy that measures some fields of a client-signed envelope (gas, budget, list) while ignoring optional side fields (
aa_authorization_list,key_authorization) lets the client externalize persistent-state costs onto the sponsor. Enumeration rule: diff the envelope's full signed field list against what the policy function actually reads; each unread field that produces intrinsic gas or durable state is a sponsor-abuse leg. Cost-prove with throwaway authority keys on your own accounts and meter the sponsor delta. - Concurrency is an accounting dimension, not just a race. Per-request ceilings without a global in-flight exposure ledger turn N parallel requests into N x budget (contrast the 73541 aggregate-drain with the 73829 same-hash race: same code path, two different missing invariants).
November 24 follow-up: ZenHive mpp fee-payer trio, the cosigner re-signs what it never measured (CVE-2026-59694 / GHSA-r4hx-mhrp-xf73, CVE-2026-59252 / GHSA-vp7w-82cm-hj3h, CVE-2026-59695 / GHSA-6v7f-h3qg-wwpp; mpp 0.2.0 before 0.6.0, all three high, unauthenticated, surfaced in the updated feed 2026-11-24T06:31Z)¶
Three more legs on the same fee_payer: true sponsor configuration, and they complete the taxonomy the Nov-19 wave started. The Nov-19 pair (82750/82751) was about FeePayerPolicy.measure/3 not reading optional envelope fields; this trio is about MPP.Tempo.Transaction.cosign_fee_payer/3 re-signing the base fields of the client-signed 0x76 AASigned envelope verbatim, with no bounds check at all.
| Advisory | Field re-signed verbatim | Effect on the fee-payer wallet |
|---|---|---|
| CVE-2026-59694 | EIP-2930 access list (length + contents unchecked) | Fabricated access-list entries incur intrinsic gas (~2,400/address + 1,900/storage key) charged before any opcode executes, even though nothing touches them. At the maintainer default 137 entries fitting Bandit's 10,000-byte header-field limit, per-payment cost rises ~51,287 to ~380,087 gas, a 7.4x multiplier; sustained abuse drains the sponsor wallet while every payment "succeeds" |
| CVE-2026-59695 | max_fee_per_gas + max_priority_fee_per_gas | Attacker names arbitrarily high fee ceilings; effective_gas_price billed against the fee-payer derives from them. A single crafted request drains the wallet entirely |
| CVE-2026-59252 | gas_limit (sufficiency never validated) | Client sets gas_limit just below what transferWithMemo needs; co-signed tx reverts out-of-gas, the fee-payer still pays all burned gas, the client pays nothing and gets no resource. The optimistic wait_for_confirmation = false path simulates via eth_call without the gas parameter, so its own pre-check cannot see out-of-gas either |
New operator rules:
- Separate the policy check from the cosign path. Auditing the sponsor policy function (measure/validate/guard) is necessary but not sufficient: locate every place the server re-signs, stamps, or forwards client-controlled transaction material and diff that path's validation against the policy's. Here
measure/3bounded gas fields butcosign_fee_payer/3copied them verbatim, so the bounded values never had to pass through the bounder. Grep for the second signature/cosign call, not just the first guard. - "Fee is charged even on revert" is an attacker primitive. Any rail where the sponsor pays intrinsic/burned gas regardless of execution outcome makes failure profitable to the victim: under-gassed payloads (59252) and intrinsic-gas padding (59694) are denial-of-wallet legs that never need a successful call. Test the revert path explicitly, a payment that 4xx'd client-side can still have burned sponsor gas on-chain.
- Simulation parity check. If a fee sponsor pre-simulates (eth_call/simulate-and-sign), verify the simulation runs with the same parameters as the broadcast, especially the gas field. A simulation that omits gas cannot catch out-of-gas, so the optimistic fast-path is strictly weaker than the confirm path and is often the default. Fuzz the parameter diff between simulate and broadcast as its own decision table.
- Client-chosen numeric ceilings are inputs, not configuration.
max_fee_per_gas,gas_limit, list lengths, byte limits: each needs a server-side upper bound (and the header/transport size limit is a ceiling discovery hint for padding attacks: 137 entries fit because that is what Bandit's 10 KB header field allows). Proof stays on your own sponsor wallet or a lab fee-payer key; meter the wallet delta per crafted request, never against a production sponsor.