Crypto exploits

MTToken exploit analysis

MT's unbounded fee-share split let an ordinary transfer overcharge the sender and credit the excess to its PancakeSwap pair as an unintended fee target, which the attacker then swept out with skim() and sync() before selling into the corrupted reserves. DeFiHackLabs reports a net pool loss of 36,995.24 USDT (about $37K).

David

Security ·

Reported loss
net pool loss ~36,995.244786737651151991 USDT (about $37K), gross USDT outflow from the pool ~226,722.24 USDT, per DeFiHackLabs's proof of concept
Occurred
Logged
Chain
BNB Smart Chain

Logged as “2026-01-12: Incorrect Fee Logic on MTToken”.

Analysis3 min read

MT was a BNB Smart Chain token that applied its own transfer fee logic rather than a plain fixed-rate tax. DeFiHackLabs's proof of concept attributes the bug to MT's transactionFee() function, which splits a computed transactFeeValue across a list of recipient percentages without enforcing that those shares sum to 100 or less. The practical effect, in the PoC's own words, was that "a transfer to debit the sender for far more than amount" was possible, and that automated market maker pairs, being ordinary contract addresses, could end up on that recipient list as unintended fee targets. A PancakeSwap V2 pair only updates its cached reserves through mint(), burn(), swap(), or an explicit sync() call; a plain incoming transfer, including one arriving as someone else's fee payment, raises the pair's real token balance without touching the reserve figure it trades against. That gap between real balance and cached reserve is exactly what Uniswap V2's skim() function was built to sweep up, and it does not ask how the excess got there.

The attacker, EOA 0xe918A1784cECa08e51A1b740F4036fd149339811 acting through an attack contract deployed in the same transaction at 0xb64f5D49656faE38655eF2e3C2e3768ddB5F3d5C, targeted the MT/USDT PancakeV2 pair at 0xbf4707B7f9F53e3aAE29Bf2558CB373419Ef4D45:

  1. Flash-borrowed the entire USDT balance held by Moolah, a BNB Chain flash-loan provider, with no money of its own.
  2. Transferred 189,727 USDT straight to the pair and called the pair's swap() directly, pulling out roughly 6,881 MT.
  3. Transferred about 2,075 MT back to the pair outright, a plain transfer rather than a swap. That transfer ran through MT's fee logic again, and because the fee shares were not bounded, it pushed MT into the pair beyond what the pair's cached reserve accounted for.
  4. Called the pair's skim() function, which pays out to a given address any balance of either token the pair holds above its cached reserves, sweeping the excess MT created in step three straight to the attacker.
  5. Called sync() to reset the pair's cached reserves to match its now-reduced actual balances, which also reset the MT-to-USDT trading price the pair would quote next.
  6. Sold about 595 MT back through PancakeSwap's router, using its fee-on-transfer-aware swap function, against the price sync() had just reset, and realized USDT profit from the trade.
  7. Let the flash loan's principal be pulled back automatically once the callback returned.

The PoC's own assertions pin the result precisely: the attacker's USDT balance grew by exactly 36,995.244786737651151991 USDT, and the pair's USDT balance fell by the identical amount, ending at 13,995.530540603531151 USDT, a pool left holding roughly 14,000 USDT after losing about 37,000 USDT. DeFiHackLabs separately notes a gross USDT outflow from the pool of about 226,722 USDT across the whole sequence, meaning most of what moved through the pair was the attacker's own flash-borrowed capital passing back out; the real cost to MT's liquidity providers was the roughly $37,000 net figure, matching the README's rounded "37K USD."

The proof of concept's own citation for the attack transaction points to a transaction on Arbitrum tied to an unrelated incident, the Futureswap exploit, rather than anything involving MT on BNB Chain. The token has no listed trading pair left on DexScreener, and none of the figures above has been confirmed by a source independent of DeFiHackLabs. The two X posts DeFiHackLabs cites as its alert and post-mortem are not independently available, and no security firm or news outlet has published an analysis of the incident.

The site's JUDAO incident, from three months later on the same chain, is the same family of bug reached by a different route: JUDAO's own transfer hook inflated its pair's real balance directly, where MT's overcharge reached the pair only incidentally, as an unintended fee target. Both end the same way, with a Uniswap V2-style pair treating an unexplained balance increase as something safe to pay out.

What would have prevented it is a transactionFee() that rejects any configuration where recipient shares sum to more than the fee being split, paired with a PancakeSwap-side fix that is out of MT's control: skim() paying out to any caller regardless of how an excess balance arrived is a known hazard for every fee-bearing token paired against a standard Uniswap V2 pool, not unique to MT.

Sources read (4)

Other exploits

Query every incident yourself — free, no signup

Updated 30 Nov 2026. Figures are as reported by the sources listed above and are not independently verified.