Priors discloses agent payment plugin limit-parsing flaw, fixed in 0.3.0
Priors discloses a limit-parsing vulnerability in @priors/plugin-elizaos 0.1.0 through 0.2.1, fixed in 0.3.0. The plugin's maxPriceOf, maxBorrowOf, agentIdOf, and loanIdOf run unanchored regular expressions directly on the raw message and do not strip the URL first; among them, maxPriceOf stops at the first period when stripping the borrow clause, causing the borrow substring and decimal point in the merchant URL to be misread as the payment limit. The authors verified with an end-to-end test that a message containing both a merchant URL and the user's "at most 0.10" cap was parsed as a cap of 1, triggering an unauthorized CreditPoolV2.borrow transaction and issuing a 1.00 USDG EIP-3009 payment, about 10 times the user-set cap. The fix is to strip the URL first, require keyword word boundaries, and avoid truncating the borrow clause at a decimal point within a number.
The agent payment plugin misreads digits in the merchant URL as a limit, amplifying the user-set 0.10 USDG cap by 10 times, which can be used to check similar limit-parsing logic.