Glossify Honeypot
What happened
De.Fi's REKT database lists Glossify (GLSF), contract 0xd452bf57…f2f726 on BNB Smart Chain, as an exit scam/honeypot and notes that the contract owner could disable the transfer function, which restricted users in selling their tokens. In the verified source, two modifiers block any transfer whose recipient equals a stored prevOwner address while ownerLock is true. transferFrom also fills prevOwner with the recipient of the first call made while it is empty, and the owner can overwrite it or turn the lock off.
How it happened
What the code allows:
- The constructor sets
ownerLock=true;and the deployer as_owner.prevOwnerstarts as the zero address. transfercarriestransferMiddleware(recipient,ownerLock):if(handler) require(to != prevOwner, "Handling Request");. With the lock on, no one cantransfertokens toprevOwner.transferFromcarriestransferFromMiddleware(sender, recipient, ownerLock):if(from != address(0) && prevOwner == address(0)) prevOwner = to; else require(to != prevOwner, "Order TransferFromMiddleware");. The recipient of the firsttransferFromis stored asprevOwnerand that call succeeds; every latertransferFromto that address reverts.- Whoever that first recipient is, from then on it cannot receive tokens through either function, so a holder's sale into that address reverts. The code does not show which address it was.
- The owner controls the block:
setOwnerLock(bool _ownerLock)turns it on or off, andtransferOwnership(address newOwner)only assignsprevOwner = newOwner;, so it can point the block at any address (or reset it to the zero address so the nexttransferFromrecipient is stored). onlyOwnerisrequire((_owner == _msgSender() || _owner == prevOwner), ...), so it also passes for any caller wheneverprevOwnerequals_owner.renounceOwnership()exists. The supply is1 * 10**8 * 10**9with 9 decimals, all assigned to the deployer in the constructor.
De.Fi's REKT database lists the token as an exit scam/honeypot where the owner could disable transfers. No transaction showing the owner calling these functions was opened.
Protocol details
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.