Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade kora-lib to version 2.0.5 or higher.
Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input in the verify_token_payment function. An attacker can cause systematic financial loss to the paymaster by exploiting the discrepancy between the credited payment value and the actual amount received after transfer fees are deducted on-chain.
Note: This is only exploitable if a Token-2022 token with a TransferFeeConfig extension is whitelisted in the allowed SPL paid tokens.