SuperRare Hack

TOTAL LOST $730K
Low updateMerkleRoot Access Control Exploit / Access Control ethereum

Summarize with AI

Affected Chain ethereum Incident surface
Recovered - No recovery reported
All-Time Rank #887 By amount stolen
Protocol Type NFT Marketplace Target category

Incident Overview

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.

Incident Report

Protocol / Project SuperRare
Date of Incident
Affected Chain(s) ethereum
Attack Technique updateMerkleRoot Access Control Exploit / Access Control
Classification Protocol Logic / NFT
Primary Source View Post-Mortem

Protocol Information

Protocol Type NFT Marketplace
Smart Contract Language Solidity
Official Website superrare.com/
Protocol Twitter/X @SuperRare
Team Anonymous
Source Code Unverified

Market Context at Time of Hack

Token Price at Hack $0.0605
Market Cap at Hack $49.5M
% of Market Cap Stolen 1.47%
Token Categories
Marketplace Collectibles & NFTs DAO Ethereum Ecosystem Base Ecosystem Binance Ecosystem Binance Listing

What the Attacker Needed to Succeed

Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.

Technical Knowledge Operational-security tradecraft (phishing, malware, leaked seed phrases, or insider access) to obtain treasury signing authority
Capital Required Minimal capital - only enough to cover gas while draining the compromised accounts
On-Chain Access Valid signing authority over the compromised wallets / multisig signers, allowing direct transfer of funds or stake authorization
Target Reconnaissance Identification of SuperRare's high-value treasury accounts and the authority / multisig structure controlling them
Execution Speed Speed to drain the compromised accounts before the team detects the breach and revokes signing authority or freezes the assets
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Likely — with a thorough updateMerkleRoot Access Control Exploit / Access Control audit checklist and test coverage

If you're auditing a protocol with similar architecture to SuperRare, these are the critical security checks that could have prevented this incident (July 2025).

  • Verify all logic paths related to updateMerkleRoot Access Control Exploit / Access Control are guarded by proper access controls and input validation - see the Access Control Attacks attack class for patterns
  • Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs

Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.

Free Trial

Related Attack Classes

The technique used in this hack maps to these vulnerability classes in our security curriculum:

See all Access Control Attacks examples →

Proof-of-Concept Exploits

1 PoC available
poc-exploits - superrare

On-Chain Evidence & References

Sources & References

Learn to Prevent the Next SuperRare

The SuperRare hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.

Recreate exploit patterns safely Free Trial