How $75K in ZORA Was Claimed Without Hacking the Code
The ZoraTokenCommunityClaim contract allowed anyone to call claim() on behalf of any account and specify a different recipient. An attacker used a ZeroEx transformer to make a FlashWallet contract call claim() for itself, sending the wallet's ZORA tokens to the attacker.
medium.com
Published on medium.com
On August 11th, there was not the biggest (~$75,047.24 at the time of the attack), but nevertheless exploit ZORA, which not long ago experienced a hack for $128k: zora-airdrop-exploit-analysis
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
The attacker could steal approximately 596 million ZORA tokens (worth about $75,000 at the time) from a FlashWallet contract.
What the attacker needed
FlashWallet holds ZORA tokens; Attacker can deploy a contract; No special permissions needed
How it was found
- Deploy a malicious contract that mints a test token, approves ZeroEx, and calls transformERC20 with a specific transformer.
- The transformer uses a FlashWallet to execute a bridge call to ZoraTokenCommunityClaim.claim with the FlashWallet as the account and the attacker as the recipient.
- The claim sends the FlashWallet's ZORA tokens to the attacker's address.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A smart contract let anyone claim tokens for any address and send them elsewhere. The attacker tricked another contract into making that claim, so the tokens went to the attacker instead of the rightful owner.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.