SA-27InfoOpenSpending limits
Spending limits can't transfer tokens whose mint requires a transfer hook
Spending limits and fund-transfer policies use a plain token transfer, which fails for Token-2022 mints that enable a transfer hook.
Why this is a risk, not a vulnerability · Documented behavior
Transfer hooks are an extension of another program. Lack of support is a limit of the feature, not a way around authorization. What is a vulnerability
- Program
- Squads Smart Account
- Source
- Public program behavior
- Code
- View at 0e51082
Spending limits, spending-limit policies, and internal-fund-transfer policies pass only the source, mint, destination, and authority to the token transfer. Transfer-hook mints need extra accounts, so these transfers fail. Ordinary transactions, synchronous execution, and program-interaction policies are unaffected.
What to do
- Use a transaction for transfer-hook mints.
- Integrators: hide spending limits and fund-transfer policies for mints with a transfer hook.