V4-08MediumAcceptedSigning & execution
Batch transactions reuse one set of ephemeral keys
Two transactions in one batch that each create an account under an ephemeral signer will collide and stall the batch.
Why this is a risk, not a vulnerability · Documented behavior
A known, documented limitation of batches. It can stall a batch; it cannot move funds without approval. What is a vulnerability
- Program
- Squads V4
- Source
- Trail of Bits TOB-8
- Code
- View at dcac867
Ephemeral signer seeds are derived from the batch, not from each transaction in it. Every transaction in a batch derives the same ephemeral keys. If two transactions each create an account under an ephemeral key, the second fails, and because batches execute sequentially everything after it is stuck. Members must recreate and re-approve the work.
Squads chose documentation over a fix and recommends vault transactions, which can carry multiple instructions.
What to do
- Use a multi-instruction vault transaction instead of a batch where possible.
- Integrators: reject or warn on batches where more than one transaction consumes an ephemeral signer.