MoonDog Honeypot
What happened
MoonDog (MoonDog) is a BNB Chain token deployed on 10 April 2021 at 0x52ec8200…391a8a. The first transferFrom call the contract ever processes stores its recipient in a hidden variable, newun; when liquidity is added through the PancakeSwap router, that recipient is the liquidity pool. From then on, both transfer and transferFrom revert with "please wait" for any transfer to newun, so holders cannot sell into the pool, while purchases, which move tokens out of the pool, still succeed.
The owner can change newun at any time with transfernewun. De.Fi's REKT database lists MoonDog as an exit scam/honeypot, stating that the contract owner could disable transfers and so stop holders from selling.
How it happened
- The constructor mints the whole supply of 1,000,000,000,000,000 MoonDog to the owner, and
newunstarts as the zero address. - In
transferFrom, the lineif(from != address(0) && newun == address(0)) newun = to;saves the recipient of the firsttransferFromasnewun. Adding liquidity through the router moves the owner's tokens to the pair withtransferFrom, which would make the pairnewun. - Every later
transferFromrunsrequire(to != newun, "please wait"), andtransferruns the same check, so a router sale or a direct send to the pair reverts. - Buys use the pair's
transferto the buyer, whose recipient is notnewun, so buying keeps working. transfernewun(address)isonlyOwner, so the owner can move the block to another address or reset it. The contract has norenounceOwnership; ownership only changes throughtransferOwnershipandacceptOwnership.
Protocol details
Evidence
- report @Token_Sniffer incident report twitter.com
- report De.Fi REKT database listing for MoonDog (proof links: Token Sniffer tweet 1381346761566916614 and S4) twitter.com
- transaction MoonDog contract creation transaction bscscan.com
- address MoonDog verified contract code on BscScan bscscan.com
- analysis Sourcify match for 0x52ec8200333f51a456b50928cd1b17b88d391a8a on BNB Chain repo.sourcify.dev
- analysis BSC-SCAM: Stealthy Liquidity Pool Block on PancakeSwap cryptot3ddybear.gitlab.io
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.