-
Notifications
You must be signed in to change notification settings - Fork 0
Security: Wallet mnemonics are hardcoded in Mainnet.toml and deploy-v2.ts #26
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingsecuritySecurity vulnerability or concernSecurity vulnerability or concern
Description
Summary
The Mainnet.toml file contains plaintext wallet mnemonics for 10 accounts, and deploy-v2.ts has a hardcoded mnemonic directly in the source code. These files are committed to a public GitHub repository.
Affected Files
- settings/Mainnet.toml: Contains mnemonics for deployer, wallet2 through wallet10
- scripts/deploy-v2.ts: Contains a hardcoded mnemonic on line 21
- scripts/send-30-txs.ts: Contains a hardcoded mnemonic on line 27
Immediate Actions Required
- Move all funds out of any wallets whose mnemonics have been exposed
- Remove mnemonics from all committed files
- Use environment variables or a secrets manager
- Add settings/Mainnet.toml to .gitignore
- Rotate all exposed mnemonics (generate new wallets)
- Use git filter-branch or BFG Repo-Cleaner to remove mnemonics from git history
Impact
Critical - Anyone who views this repository can steal all funds from these wallets.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingsecuritySecurity vulnerability or concernSecurity vulnerability or concern