Skip to content
Security
← V4 known risks
V4-01Medium/HighOpenSigning & execution

The executing member's signature extends into inner instructions

If the member who executes a transaction is also named in it, their signature authorizes those inner instructions too.

Why this is a risk, not a vulnerability · Requires member consensus

The victim's loss requires a threshold of members to approve the malicious transaction. It is an attack by colluding members, not by an outsider. What is a vulnerability
Program
Squads V4
Source
Certora SQ-001
Code
View at dcac867

Solana merges account privileges when the same account appears twice in one transaction; the higher privilege wins. The member who executes a vault or batch transaction signs the outer transaction. If that member’s account also appears in the stored inner message, their signature carries into the inner instructions.

Certora demonstrated this on a 2-of-3 multisig: two members approve a transaction that sends 1 SOL from the vault to a victim member, then 99 SOL from the victim to an outsider. When the victim executes, they lose 99 SOL. The same transaction fails if anyone else executes it.

Squads adopted Certora’s interface-warning mitigation. The on-chain options were not implemented, and the program is immutable.

What to do

  • Before executing, check whether your wallet appears anywhere in the transaction. If it does, read every instruction that touches your accounts.
  • Prefer having a member with no stake in the inner transaction execute it.
  • Integrators: detect the executing member in the inner message and block or hard-warn at both execution and vote time.