Stonks Token Rug Pull

Reported loss Not disclosed
Rugpull

What happened

Stonks Token ($STONKS) is a BNB Smart Chain reflection token that De.Fi's REKT database lists as an exit scam/rug pull on 2021-09-03. Its verified source gives the owner uncapped control over the three transfer fees and the maximum transaction size, which is enough to redirect most of every holder transfer to an owner-chosen wallet or to make all ordinary transfers revert. It also carries a lock/unlock ownership routine that can make the contract look ownerless while the previous owner keeps the right to take ownership back.

The code shows what the owner could do; no opened source confirms which of these powers were used.

How it happened

  1. The owner can call setTaxFeePercent, setLiquidityFeePercent and setCharityFeePercent with any value; none of them checks an upper bound.
  2. Fees are subtracted in _getTValues with tAmount.sub(tFee).sub(tLiquidity).sub(tCharity). The sender is always debited the full amount, so a charity fee near 100 sends almost the whole transfer to _charityWallet, which the owner sets with setCharityWallet. If the three fees add up to more than 100, the SafeMath subtraction reverts and every fee-paying transfer, including sells to the PancakeSwap pair, fails.
  3. Separately, setMaxTxAmount has no floor. _transfer enforces require(amount <= _maxTxAmount, ...) for any transfer that does not involve owner(), so a value of 0 blocks all holder buys and sells while the owner can still move tokens.
  4. lock(time) stores the owner in _previousOwner and sets _owner to zero, so owner() reads as the zero address. unlock() lets _previousOwner restore ownership after the lock time, and renounceOwnership() does not clear _previousOwner, so an apparent renounce can be reversed.
  5. De.Fi's REKT database lists $STONKS as an exit scam/rug pull dated 2021-09-03. The loss amount and the exact on-chain actions are not recorded in any source opened for this draft.

Protocol details

Classification Token
Protocol Type Exit Scam/Rugpull
Affected asset / contract $STONKS
Protocol links Website

Build your security review skills

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