Skip to content
Access control Write-up Intermediate

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.

0xFlare Follow

Published on medium.com

On May 12, 2026, an attacker drained $456,442 USDC from Aurellion Labs’ diamond proxy on Arbitrum. The diamond had an owner.

0xFlare, on medium.com

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

  1. Deploy an exploit contract that also deploys a malicious facet.
  2. Call initialize() on the diamond to become the owner.
  3. Call diamondCut to add the malicious facet's functions.
  4. Call pullERC20 for each wallet that had approved the diamond.
  5. Call sweepERC20 to move the diamond's USDC to the attacker contract.
  6. 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.

More by 0xFlare

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.