MHP88 Honeypot

Reported loss Not disclosed
BNB Chain
Honeypot

What happened

MHP88 (symbol 888) is a BNB Chain token deployed on 16 March 2021 at 0xa8d34eac…47ea79 with a total supply of 888 tokens, all credited to the deployer. Its transferFrom only works when the sender is on an allow list, and the constructor puts only the deployer on it. A PancakeSwap sale moves the seller's tokens with transferFrom, so every holder not on the list cannot sell through the router, while buys, which the pair pays out with transfer, go through.

The list and a mint function that overwrites any balance are controlled by an address hard-coded into onlyOwner as a decimal number, 0xbd486897…439192, not by the visible owner variable. De.Fi's REKT database lists MHP88 as an exit scam/honeypot.

How it happened

  1. The constructor sets balances[msg.sender] = totalSupply and allow[msg.sender] = true, so the deployer 0x450943a0…d006A7 holds the 888-token supply and is the only address on the allow list.
  2. transferFrom contains require(allow[_from] == true);. Adding liquidity through the router is a transferFrom from the deployer, which passes.
  3. Buyers receive tokens from the pair through transfer, which has no allow check, so buys succeed.
  4. A router sale calls transferFrom with the holder as _from. The holder is not on the list, so the call reverts and the sale fails.
  5. addAllow(address holder, bool allowApprove) and mint(address miner, uint256 _value) are gated by onlyOwner, which checks msg.sender == address(1080614020421183795110940285280029773222128095634), the hard-coded address 0xbd486897…439192. That address can add or remove sellers and set any address's balance to any value without changing totalSupply.
  6. transferOwnership only rewrites the owner variable, which onlyOwner never reads, and there is no renounceOwnership, so the hard-coded controller cannot be changed or removed.

Protocol details

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

Build your security review skills

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