This repository was archived by the owner on Mar 11, 2025. It is now read-only.
This repository was archived by the owner on Mar 11, 2025. It is now read-only.
Token init instructions don't check if accounts are signers #132
Closed
Description
Problem
A bad client might issue the "create account" and "init mint" in separate transactions. An attacker could front run and initialize the mint with themselves as owner and the original creator might not realize this. Then, the attacker could mint tokens whenever they please
This is applies to init multisig and init token account as well
Suggested Fix
Reject init instructions if initialized account is not a signer