Dark Comics NFT Honeypot

Reported loss Not disclosed
Ethereum
Honeypot

What happened

Dark Comics NFT (DCNFT) is an Ethereum token whose transferFrom rejects transfers from ordinary holders. Every transfer passes through ensure, which lets it through only when the sender is the owner, the recipient is the owner, the sender is the owner-set tradeAddress, or the sender is on the owner-controlled canSale list. For every other sender it calls condition, which returns false while _saleNum, _minSale and _maxSale are all zero, and no function in the contract ever sets them.

De.Fi's REKT database lists the token as an exit scam/honeypot and says the contract owner could disable the transfer function, which restricted users in selling their tokens.

How it happened

  1. The constructor records the deployer as owner and gives it the whole supply: owner = msg.sender; balanceOf[msg.sender] = totalSupply;.
  2. transfer forwards to transferFrom, and transferFrom requires require(ensure(_from, _to, _value)); before any balance moves, so every transfer is gated by ensure.
  3. ensure returns true only for privileged parties: if(_from == owner || _to == owner || _from == tradeAddress||canSale[_from]){ return true; }. A holder sending to any other address, such as a trading pair, is not on that list and falls through to require(condition(_from, _value));.
  4. condition begins if(_saleNum == 0 && _minSale == 0 && _maxSale == 0) return false;. These three variables are private, default to zero, and are never assigned anywhere in the contract (the only related write is _onSaleNum[_from]++), so condition returns false for every ordinary sender and the transfer reverts.
  5. The owner holds the levers that open the gate. transferownership(addr) only sets tradeAddress = addr (it does not change owner), and approveAndCall(spender, addedValue) sets canSale[spender]=true and can also overwrite a balance with balanceOf[spender] = addedValue*(10**uint256(decimals)); without touching totalSupply.

Protocol details

Classification Token
Protocol Type Exit Scam/Honeypot
Affected asset / contract DCNFT

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.