EI Risitas Rug Pull
What happened
EI Risitas (KEK) is a BNB Chain token deployed on 5 December 2023 at 0x86931EeB…06DB95 by 0x9518Fa6a…04ad4C, copying the name of an Ethereum meme token. Its transfer function does not trust its own balance records: before each transfer it asks a hidden external contract, whose address is encoded in the constructor's supply argument, what the sender's balance is, and uses that answer. That contract can report zero for ordinary holders so their sales fail with "ERC20: transfer amount exceeds balance", or an unlimited balance for a chosen wallet, while balanceOf keeps showing the stored numbers.
The code mints a fixed 210,000,000,000 KEK, yet on 6 December 2023 PeckShield reported that 0xFb4298Be…45769D swapped 2,200,000,000,000,000 KEK for 227.02 WBNB (about $52.6K), draining the pool and dropping the price 100%. De.Fi's REKT database lists this as an exit scam/rug pull of 52,351 USD, with the funds split across several addresses (tx 0x8b86e657…378271).
How it happened
- The constructor calls
_mint(msg.sender, totalSupply_). Inside_mint,_beforeTokenTransferrunsuint160 bcc = uint160(323232389747193719318+amount); bssb = _getInstance(address(bcc));, so the supply argument is really an encoded address for a hidden contractbssb. _mintthen ignores the argument withamount = 210000000000 * 10 ** 18;and credits 210,000,000,000 KEK to the deployer.- Every
_transferreads the stored balance and passes it to the hidden contract:uint256 curBalance = bssb.a1(true,curBaba, curFrom); require(curBalance >= amount, "ERC20: transfer amount exceeds balance");, then writes_backj[from] = curBalance - amount;. The sender's real balance is whatevera1returns. a1can return 0 for an ordinary holder, so a sale reverts with a normal-looking balance error, andbalanceOfstill shows the stored amount. For a chosen wallet it can return any number, which lets that wallet sell tokens it never received.bssbis set only during minting and no function changes it, so renouncing ownership (the owner reads as the zero address) has no effect on this control.- On 6 December 2023 0xFb4298Be…45769D swapped 2,200,000,000,000,000 KEK, about 10,000 times the minted supply, for 227.02 WBNB, and the price fell 100%, according to PeckShield.
Protocol details
Evidence
- report @PeckShieldAlert incident report twitter.com
- report PeckShieldAlert: EI Risitas $KEK has dropped -100% twitter.com
- transaction KEK contract creation transaction bscscan.com
- transaction bscscan.com transaction 0x8b86…8271 bscscan.com
- address EI Risitas (KEK) verified contract code on BscScan bscscan.com
- address bscscan.com address 0x9518…ad4C bscscan.com
- address bscscan.com address 0xFb42…769D bscscan.com
- analysis Sourcify exact match for 0x86931EeB468b35840AfbC65B94B565717d06DB95 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.