SA-30InfoBy designPolicies
Policy expiration by settings state covers only signers, threshold, and timelock
A policy set to expire when the smart account's settings change ignores changes to the settings authority, spending limits, and other policies.
Why this is a risk, not a vulnerability · Documented behavior
The expiration rule is chosen by the smart account, and what it hashes is documented here. What is a vulnerability
- Program
- Squads Smart Account
- Source
- Public program behavior
- Code
- View at 0e51082
A policy can expire at a timestamp, when the smart account’s core settings change, or never. Settings-state expiration hashes the signers and their permissions, the threshold, and the timelock. Other changes do not expire the policy. A policy without an expiration is permanent until removed.
What to do
- Don’t rely on settings-state expiration to end a policy when you change spending limits or other policies.
- Integrators: show each policy’s expiration rule and what would trigger it.