CleanEnergyToken Honeypot
What happened
CleanEnergyToken (CLEANENERGY, BNB Chain, contract 0xdee150ab…662241) keeps one address in a variable called newun and reverts every transfer whose recipient is that address. The first transferFrom made while newun is empty stores that call's recipient, so if it is the call that adds liquidity, the trading pair becomes the blocked address: selling through the pair reverts with "please wait" while buying from the pair still works. The owner can overwrite newun at any time with transfernewun.
De.Fi's REKT database lists the token as an Exit Scam/Honeypot dated 2021-06-17 and says the owner could disable the transfer function, which restricted users in selling their tokens; the listing gives no loss amount.
How it happened
- The constructor mints the whole supply to the deployer, who is
owner:_totalSupply = 1000000000000000 ;withdecimals = 0. transferFrombegins withif(from != address(0) && newun == address(0)) newun = to;. Whilenewunis zero, the firsttransferFromis exempt from any check and its recipient is stored innewun. If that call is the router pulling the owner's tokens into the new pair during the liquidity add, the pair becomesnewun.- From then on
transferhasrequire(to != newun, "please wait");andtransferFromhaselse require(to != newun, "please wait");. A sale through the router is atransferFromfrom the holder to the pair, so it reverts. A buy is a transfer from the pair to the buyer, whose address is notnewun, so it succeeds. Neither check exempts the owner. transfernewun(address _newun) public onlyOwnerlets the owner overwritenewun. Pointing it at an address nobody uses lifts the block; setting it to the zero address lets the nexttransferFromstore a new recipient.OwnedofferstransferOwnershipandacceptOwnershipbut no renounce function.
Protocol details
Evidence
- report @Token_Sniffer incident report twitter.com
- report CleanEnergyToken source on Sourcify (chain 56) repo.sourcify.dev
- address CleanEnergyToken verified source on BscScan bscscan.com
- analysis Scam explained: BSC stealthy LP block cryptot3ddybear.gitlab.io
- analysis De.Fi REKT database listing for CLEANENERGY de.fi
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.