crocofi.org(CROCO) Rug Pull
What happened
crocofi.org (CROCO) is a BNB Chain token deployed on 13 April 2021 at 0x152ce3dd…03f169. Its transferFrom only works for holders marked in an allow mapping, and at deployment only the deployer is marked, so the PancakeSwap router cannot pull an ordinary holder's tokens and a normal sale reverts while buys, which use plain transfer from the pair, still go through. The functions that manage that list and a mint function that overwrites any address's balance are gated by a hard-coded address, 0xbd486897…439192, not by the stored owner, so transferOwnership cannot hand these powers away.
De.Fi's REKT database lists CROCO as an exit scam/rug pull; no loss figure was found.
How it happened
- The constructor credits the whole supply to the deployer and sets
allow[msg.sender] = true; no other address starts on the list. transferhas no restriction, so tokens sent out of the PancakeSwap pair reach buyers normally.transferFromaddsrequire(allow[_from] == true);. A router sale callstransferFromon the seller's tokens, so for any holder not on the list the sale reverts even with a valid approval.onlyOwnerchecksmsg.sender == address(1080614020421183795110940285280029773222128095634), which is 0xbd486897…439192. That address can calladdAllow(holder, bool)to let chosen wallets sell or to remove them from the list.- The same address can call
mint(miner, _value), which runsbalances[miner] = _value: it can give any wallet an arbitrary balance to sell into the pool, or set any holder's balance to zero, without changingtotalSupply. transferOwnershiponly rewrites theownervariable, whichonlyOwnernever reads, so neither power can be transferred or renounced.
Protocol details
Evidence
- transaction CROCO contract creation transaction bscscan.com
- address crocofi.org(CROCO) verified contract code on BscScan bscscan.com
- analysis BscScan CROCO token page filtered to 0x62920e05c010656aa129544bac5403b499f61ab2 (De.Fi proof link) bscscan.com
- analysis Sourcify match for 0x152ce3dddfabc381ad14c3d1fde07a93eb03f169 on BNB Chain repo.sourcify.dev
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.