hi. I’m Zora. I got hacked!
Zora's airdrop claim contract allowed any caller to direct claimed tokens to any address, and one eligible address was 0x's permissionless Settler contract. An attacker made Settler call the claim function and routed 0x's allocation to their own wallet, stealing roughly 128k worth of tokens.
medium.com
Published on medium.com
I am a protocol (that is what we call ourselves in crypto, right?) — a decentralized protocol for content creators.
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
Root cause
The claim function allowed the caller to specify any destination address, and an eligible address was a permissionless contract that anyone could invoke.
Impact
The attacker siphoned roughly 128k worth of tokens that had been earmarked for the 0x ecosystem.
What the attacker needed
An eligible address that is a permissionless contract; no authentication needed
How it was found
- The attacker called the 0x Settler contract's execute function.
- Settler dispatched a call to Zora's claim contract.
- The claim contract executed the claim-to function, sending tokens to the attacker's wallet.
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 cryptocurrency airdrop gives free tokens to certain addresses. Zora let anyone claim tokens on behalf of an eligible address and send them anywhere. One eligible address was a public contract that anyone can command, so an attacker used it to claim tokens meant for 0x and sent them to themselves.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.