V4-04LowAcceptedSigning & execution
Address lookup tables need not be frozen
A lookup table can be extended after approval, changing which accounts a transaction touches.
Why this is a risk, not a vulnerability · Requires member consensus
The altered transaction still needs members to approve it. Unfrozen tables are a documented trade-off for compatibility. What is a vulnerability
- Program
- Squads V4
- Source
- Neodyme ND-SQD1-L1
- Code
- View at dcac867
The program checks that a lookup table is owned by the lookup table program and named in the message. It does not check freeze state. Lookup tables are append-only but mutable unless frozen, so a proposal can reference an index that is out of bounds at creation and in bounds at execution, which changes the accounts after approval.
Requiring frozen tables was rejected because major third-party programs do not freeze theirs.
What to do
- Integrators: check every referenced table at creation and again before execution. Flag unfrozen tables, flag any out-of-bounds index at creation, and show a diff of resolved accounts before execution.