How $456K Walked Out of Aurellion Labs Through a Door Nobody Locked
The diamond proxy contract had an owner set but its initializer flag was still zero, so anyone could call initialize() and become the owner. The attacker did so, installed a malicious facet, and used it to pull USDC from wallets that had approved the diamond, stealing about $456,442.
On May 12, 2026, an attacker drained $456,442 USDC from Aurellion Labs’ diamond proxy on Arbitrum. The diamond had an owner.
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 deployment set the owner directly but never called the initializer or disabled it, leaving the initialized flag at zero so initialize() remained callable.
Impact
The attacker stole about $456,442 in USDC from wallets that had approved the diamond; the text does not mention any defence that limited the exploit.
What the attacker needed
Victim contract deployed with uninitialized flag; wallets had approved the diamond for USDC
The fix
The initializer should be called during deployment or disabled in the facet's constructor so it cannot be called again.
How it was found
- Deploy an exploit contract that also deploys a malicious facet.
- Call initialize() on the diamond to become the owner.
- Call diamondCut to add the malicious facet's functions.
- Call pullERC20 for each wallet that had approved the diamond.
- Call sweepERC20 to move the diamond's USDC to the attacker contract.
- Forward the USDC 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 smart contract can have a setup function that should only run once. This contract's setup function was never marked as used, so anyone could call it again. The attacker called it, became the owner, and used that power to take money that users had allowed the contract to spend.
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.