SuperRare Hack

REPORTED LOSS $730K
Low updateMerkleRoot Access Control Exploit ethereum

What happened

On July 28, 2025, SuperRare's RareStakingV1 contract was exploited for approximately $730,000 USD (~11.9M RARE tokens). The vulnerability stemmed from a broken access control check in the updateMerkleRoot() function that allowed any unauthorized user to submit malicious Merkle roots and fraudulently claim tokens from the staking reward pool.

The root cause was a critical logic flaw in the updateMerkleRoot() function's access control mechanism. The function was designed to restrict Merkle root updates to the contract owner or a specific authorized address, but contained a misconfigured require statement using inverted logic. The vulnerable code used require((msg.sender != owner() || msg.sender != address(0xc2F394a4…7c8ddc)), "Not authorized to update merkle root"); with != (not equal) operators and an || (OR) condition.

This logic incorrectly allowed any address to pass the check, since any address cannot simultaneously be both the owner and the authorized address, making the condition always evaluate to true. The attacker exploited this by calculating a malicious Merkle root (0x93f3c), submitting it via a frontrunner transaction, and then using the claim() function to withdraw the tokens. The stolen funds remain in the attacker's contract and have not been swapped, with the $RARE token itself unaffected by the exploit.

Case & protocol details

Classification Protocol Logic / NFT / Access Control
Protocol Type NFT Marketplace
Implementation language Solidity
Official Website superrare.com/
Protocol Twitter/X @SuperRare

Market Context at Time of Hack

Token Price at Hack $0.0605
Market Cap at Hack $49.5M
Reported loss / token market cap 1.47%
Token Categories
Marketplace Collectibles & NFTs DAO Ethereum Ecosystem Base Ecosystem Binance Ecosystem Binance Listing

Evidence & learning

Build your security review skills

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