Crypto exploits

LegendaryMoneyMonNft exploit analysis

Legendary MoneyMon NFTs's claim function trusted ecrecover's address(0) failure value as a valid signer once its admin address had itself been zeroed, letting an attacker forge a signature and drain the contract's MON balance for a reported $85,519.47, confirmed independently by SlowMist's incident database.

David

Security ·

Reported loss
$86K
Occurred
Logged
Chain
BNB Smart Chain

Logged as “2026-05-28: Ecrecover Address0 Signature Bypass on LegendaryMoneyMonNft”.

Analysis3 min read

Legendary MoneyMon NFTs paid reward claims in its own MON token through a contract at 0x92D60629FF5d53a0098B51E9b1D59546D1D8e5B6 on BNB Smart Chain. A holder called cliamRewred(address,uint256,uint256,uint256,string,bytes), a misspelling preserved in the deployed bytecode, supplying a signature that the contract checked with verify(). That function recovered a signer from the message hash and compared it against a stored admin address. Its recoverSigner helper called ecrecover directly and never checked the result against address(0), the value Solidity's ecrecover returns for a malformed signature such as one with both r and s set to zero.

That gap only becomes exploitable if admin is ever actually the zero address, and on-chain it was. The contract's changeadmin(address) function, restricted to the owner, had already been used to set admin to 0x0000000000000000000000000000000000000000 before the attack. SlowMist's incident database attributes that step to the attacker directly, describing the exploit as the attacker "setting the admin to the zero address" and then using an invalid signature to bypass verification, without explaining how an address outside the project obtained the owner-level access changeadmin requires. Neither SlowMist's summary nor DeFiHackLabs' proof of concept resolves whether this was an owner's compromised key or an insider's own action, and nothing in either source should be read as deciding that question.

With admin zeroed, any caller could submit a 65-byte signature of r = 0, s = 0, v = 27. ecrecover returns address(0) for it, address(0) equals the stored admin, verify() returns true, and cliamRewred pays out whatever token and amount the caller named. DeFiHackLabs' proof of concept reconstructs the attacker, at 0xE1582248C593Df4B367e131922438Fec9D76E787, calling the function once with that forged signature and the MON token's full balance held by the contract as the requested amount, draining it in a single call. The attacker then approved PancakeSwap's V3 smart router and swapped the stolen MON for USDT through the MON/USDT pool at the 0.25 percent fee tier, converting the entire haul to a stable asset in the same transaction. The PoC's comments note that the real attack ran this drain from the attacker's own externally-owned account using an EIP-7702 type-4 transaction that delegated code execution to a separately deployed contract at 0x157bA211F05Dd2C83006bE949E12b2f0F0a0C1D9, rather than going through a conventional intermediary contract; the test substitutes a direct prank for that delegation, which does not change the vulnerability but is worth naming as a technique distinct from a standard attack-contract pattern.

DeFiHackLabs states the loss at approximately $85.5K, or 85,519.47 USDT, the figure realised once the stolen MON was sold. SlowMist's record of the same incident gives an identical figure, $85,519.47, independently confirming the amount, though it dates the hack to May 29, 2026, one day after the May 28 date in the README's heading and the PoC's own comment; the attack transaction's block number, 100,937,039, and the exact calendar date it corresponds to were not independently checked against a BscScan page, since BscScan's contract and transaction pages returned no readable content on every attempt.

No statement from the Legendary MoneyMon NFTs team about the drain, a pause, a patch, or any compensation for holders turns up in either source. The specific fix is narrow: recoverSigner needs to reject a zero-address recovery rather than let it compare equal to whatever admin happens to hold, and admin itself should never be settable to the zero address if any function trusts an equality check against it. A contract that treats ecrecover's failure value as a valid signer is vulnerable the moment any check elsewhere in the system can drive the value it compares against down to zero.

Sources read (3)

Other exploits

Query every incident yourself — free, no signup

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