PIPI Rug Pull
What happened
PIPI is a BEP-20 token on BNB Chain (0x158f194C…6D0b84), deployed on 14 November 2023 from a generic CoinToken template. The owner can mint any amount with an uncapped mint, blacklist or greylist any address, and switch on a flag ab that automatically greylists every wallet that buys from the pool, after which those wallets can no longer send or sell their tokens. On 15 November 2023 PeckShield reported that PIPI dropped 99.92% after the deployer address 0xCC78A249…C2f66C swapped 807,333,011,534.96 PIPI for 121,348 BSC-USD.
De.Fi's REKT database records the loss as 121,373 USD, names 0x6896bd31…4447f9 as the scammer address, and lists 0x2e8d0600…f38fad as the liquidity removal transaction.
How it happened
initTokenassigns the whole initial supply totokenOwner, makes itowner, and creates the pair asLP. TheOwnablecontract has notransferOwnershiporrenounceOwnership, so the owner role cannot be handed off or given up.- The owner can call
changeAb(true). From then on, whenever the pair sends tokens to a buyer (msg.sender==LP&&ab&&!tokenWhitelist[_to]), the buyer is written intotokenGreylist. transferandtransferFromrequiretokenGreylist[msg.sender] == falseortokenGreylist[_from] == falseunless the sender or recipient is whitelisted, so a greylisted buyer cannot sell back to the pool or move the tokens.blackListAddress,geryListAddressand their batch versions let the owner block any address directly.- The owner can also call
mint(address account, uint256 amount)with no cap, adding tokens to any balance without touching the pool. - PeckShield reported that the deployer swapped 807,333,011,534.96 PIPI into the pool for 121,348 BSC-USD, and the price fell 99.92%.
Protocol details
Evidence
- report @PeckShieldAlert incident report twitter.com
- report PeckShieldAlert: PIPI $PIPI has dropped -99.92% twitter.com
- transaction PIPI contract creation transaction bscscan.com
- transaction bscscan.com transaction 0x2e8d…8fad bscscan.com
- address CoinToken (PIPI) verified source code bscscan.com
- address bscscan.com address 0x6896…47f9 bscscan.com
- address bscscan.com address 0xCC78…f66C bscscan.com
- analysis Sourcify match for 0x158f194CE44954AD8b6161aCD1802898716D0b84 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.