Chava Honeypot

Reported loss Not disclosed
BNB Chain
Honeypot

What happened

Chava is a BEP-20 token on BNB Chain built on a honeypot template that blocks transfers into one hidden address, stored in a variable named prevOwner. The first transferFrom after deployment silently stores its recipient there. When that call is the liquidity deposit into the PancakeSwap pair, the pair becomes the blocked address, and while the owner's ownerLock flag is on, which it is from deployment, every later transfer into the pair reverts.

Buyers can receive tokens from the pool, but holders cannot sell into it. The misleadingly named transferOwnership does not move ownership: it lets the owner point the block at any address. De.Fi's REKT database lists Chava as an exit scam/honeypot, with no loss figure.

How it happened

  1. initData() gives the deployer all 100,000,000 Chava (9 decimals) and sets ownerLock=true.
  2. The first transferFrom with a non-zero sender records its recipient: if(from != address(0) && prevOwner == address(0)) prevOwner = to;. Adding liquidity through the router is a transferFrom into the pair.
  3. While ownerLock is true, transfer reverts on require(to != prevOwner, "Handling Request") and transferFrom reverts on require(to != prevOwner, "Order TransferFromMiddleware"). A sale sends tokens into the pair and fails, while a buy sends tokens out of it and succeeds.
  4. The owner can switch the block with setOwnerLock(bool) and retarget it with transferOwnership(address newOwner), whose body is only prevOwner = newOwner;. The real _owner is unchanged, and the public previousOwner() getter makes the variable look like harmless history.
  5. renounceOwnership() does clear _owner, but the on-chain owner is still the deployer. The lock and the recorded prevOwner stay in force either way.

Protocol details

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

Build your security review skills

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