mCoin Rug Pull
What happened
mCoin (MCOIN) is a BNB Chain token with a 500,000,000 supply minted to the deployer. On 27 June 2023 CertiK flagged an exit scam: EOA 0xed65cd98…bbb161 removed about $145K in WBNB from the token's liquidity pool and sent it to another EOA. De.Fi's REKT database gives the removal as 609.44 BNB, 143,841 USD, in liquidity removal transaction 0x8ebcbfb3…476f68, and says the funds were later deposited to Binance in transaction 0xad22a253…63c014.
The token code also gives the owner a confiscation switch: emergencyFreezeAndSlash moves the entire balance of any non-whitelisted, non-contract wallet to the owner and then blocks that wallet from every further transfer. Nothing in the code limits when the owner may use it, and whitelisting cannot be undone.
How it happened
- The constructor mints 500,000,000 MCOIN to the deployer, whitelists the deployer, and pauses trading until the owner calls
launch(), a one-time unpause. emergencyFreezeAndSlash(address target)isonlyOwner. It requires only thattargetis not a contract and not whitelisted, then runs_transfer(target, msg.sender, balanceOf(target))and setsisFreezed[target] = true._beforeTokenTransferreverts with "Walled is freezed for malicious activity" whenever the sender or recipient is frozen, so a slashed holder cannot send or receive MCOIN again. No function clearsisFreezed.- The token code does not hold or control the pool's liquidity; whoever holds the LP tokens can remove it. CertiK reported that EOA 0xed65cd98…bbb161 removed about $145K in WBNB from the LP on 27 June 2023 and moved it to another EOA. De.Fi's listing gives the removal transaction as 0x8ebcbfb3…476f68 (609.44 BNB) and the later Binance deposit as 0xad22a253…63c014.
- No source opened here shows
emergencyFreezeAndSlashbeing called; step 2 describes what the code allows.
Protocol details
Evidence
- report @CertiKAlert incident report twitter.com
- report CertiK Alert: exit scam on @mcoinofficials (27 June 2023) twitter.com
- transaction mCoin contract creation transaction bscscan.com
- transaction bscscan.com transaction 0x8ebc…6f68 bscscan.com
- transaction bscscan.com transaction 0xad22…c014 bscscan.com
- address mCoin (MCOIN) verified contract code on BscScan bscscan.com
- address bscscan.com address 0xed65…b161 bscscan.com
- analysis Sourcify exact match for 0x6d86f0a41c3966cef8ea139648db707e912563c9 on BNB Chain repo.sourcify.dev
- analysis CertiK Skynet alert ae5389a6 (linked from S4) skynet.certik.com
- analysis De.Fi REKT database listing for mCoin (text imported into the record) de.fi
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.