
PEACH
Un cadre d’isolation des locataires
twzrd-x402-gate enforces three cumulative spend limits from a spend ledger: dailyCeilingUsd, monthlyCeilingUsd (mandate) and newCounterpartyCap. In 0.22.1 and earlier, a caller that set one of these limits and did not pass a ledger got no enforcement: every intent was allowed, and nothing reported that the limit was inactive.
An agent configured with a daily or monthly ceiling, or a new-counterparty cap, and no ledger could spend past that limit. Per-payment limits (maxAmountUsd, maxPerTransactionUsd) were enforced throughout and are not affected. Callers that pass a ledger are not affected.
Fixed in twzrd-x402-gate 0.23.0. A cumulative limit with no ledger is now refused with SPEND_CAP_NEEDS_LEDGER and a reason naming the limit, in evaluateIntent, the x402 client hook, the MPP hook and createTwzrdPolicyFetch, before any payment is built.
createMemorySpendLedger() for one process, or a file-backed ledger to survive a restart.createTwzrdPolicyFetchcreateTwzrdPolicyFetch kept the offer it had cleared to pay in a single slot shared by every call on the instance. In 0.22.1 and earlier, with two calls in flight through one instance, the first call to finish recorded the other call's amount on the spend ledger and cleared the slot, so the second paid call was never recorded. Both calls were also checked against a cumulative limit before either was recorded.
An agent that makes concurrent paid requests through one policy fetch could spend past dailyCeilingUsd, a mandate's monthlyCeilingUsd or newCounterpartyCap, and its spend ledger could show less than it paid. In a local reproduction, two concurrent 0.01 payments left 0.01 on the ledger, and two 0.01 payments passed a 0.015 daily ceiling. Calls made one at a time are not affected. Per-payment limits were enforced throughout.
Fixed in twzrd-x402-gate 0.23.0. Each call keeps its own offer, an amount cleared to pay counts against the cumulative limits until the call ends, and offers are cleared one call at a time.
Do not issue concurrent requests through one createTwzrdPolicyFetch instance: await each call before starting the next.
The reservation is per instance. Two instances, or two processes, that share one ledger can still clear payments at the same moment; hold one policy fetch per ledger.
Source: NVD
Évaluation gratuite des vulnérabilités
Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.
Obtenez une démo personnalisée
"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."