Skip to content
Security
← V3 known risks
V3-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 V3
Source
Certora SQ-001 (Squads V4); public program behavior
Code
View at c95b767

Solana merges account privileges when the same account appears twice in one transaction; the higher privilege wins. The member who executes a transaction signs the outer transaction. execute_transaction and execute_instruction pass the outer transaction’s accounts straight into the inner call, so if the executing member’s account also appears in a stored instruction, their signature carries into it. This is the same behavior documented for Squads V4 as V4-01.

V3 goes further than V4 in one respect: add_instruction stores whatever signer flags the creator supplies. An instruction can name any wallet as a signer, and it executes only if that wallet signs the outer transaction, typically because it is the executor. The same applies to any other outer signer, such as a separate fee payer.

The program is immutable, so this cannot be changed on-chain.

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, and any other outer signer, in the stored instructions and block or hard-warn at both execution and vote time.