shadownite.com Honeypot
What happened
shadownite.com (NITE) is a BNB Chain token deployed on 20 February 2021 at 0x6a887414…4ca249, advertised in its source comments as the governance token of an NFT market. Its transfer and transferFrom only let tokens move when the sender is the owner, the owner-set tradeAddress, or an address the owner has marked in canSale, or when the recipient is the owner. Every other sender must pass a condition check that returns false while three sale limits are all zero, and the contract has no function that ever sets them, so an ordinary holder's sale reverts from the moment of deployment.
The owner can also overwrite any address's balance with an arbitrary amount through a function named approveAndCall. De.Fi's REKT database lists NITE as an exit scam/honeypot, stating that the contract owner could disable transfers and so stop holders from selling.
How it happened
- The constructor stores the deployer in a private
ownervariable and credits it with the full 1,000,000 NITE supply. No function changes or renouncesowner. - The owner can call the misnamed
transferownership(addr), which does not transfer ownership but setstradeAddress. Tokens sent fromtradeAddressalways pass, so if it is the PancakeSwap pair, purchases paid out by the pair succeed. - For any other sender,
ensurerequirescondition(_from, _value)unless the recipient isowner.conditionreturns false when_saleNum,_minSaleand_maxSaleare all zero, and no function in the contract writes to them. - A sale moves tokens from the holder to the pair with
transferFrom(holder, pair, amount), so the holder is the sender and the call reverts. Only the owner,tradeAddressandcanSaleaddresses can send tokens to anyone other than the owner. - The owner can call
approveAndCall(spender, addedValue)to setbalanceOf[spender]toaddedValuewhole tokens, without updatingtotalSupplyor emitting an event, and to add that address tocanSaleso it can sell.
Protocol details
Evidence
- report De.Fi REKT database listing for NITE (proof link: Token Sniffer X post 1382886019419103233) twitter.com
- transaction shadownite.com contract creation transaction bscscan.com
- address shadownite.com (NITE) verified contract code on BscScan bscscan.com
- analysis Sourcify match for 0x6a8874145202bdd869b560b864d0e56e2b4ca249 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.