Skip to content
Access control Write-up Advanced

[web3] High Risk Vulnerability Disclosed to Ondo Finance

The TrancheToken implementation contract was left uninitialized, allowing an attacker to call initialize() and then destroy() to selfdestruct it. This bricked the implementation and all minimal proxy contracts, and if a token minting flag had been enabled, an attacker could have drained up to $50m from UniswapStrategy contracts.

iosiro.com

Published on iosiro.com

On 26 January 2022, Ashiq Amien, a security researcher at iosiro, identified a high risk vulnerability in Ondo Finance affecting the Tranche Token smart contract and surrounding contracts. Under certain conditions, an attacker could exploit this vulnerability to drain $50m from the affected UniswapStrategy contracts.

The author, on iosiro.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

Impact

The implementation and all minimal proxy contracts were permanently bricked, and if the token minting flag had been set and contracts unpaused, an attacker could have drained all assets from all strategy contracts, up to $50m; however, the flag was not set, so no funds were at risk.

What the attacker needed

None

The fix

The issue was patched by the Ondo Finance team shortly after confirmation.

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 is a program on a blockchain. This one had a setup function that anyone could call because it was never run by the owners. An attacker could run it, then trigger a self-destruct that erased the contract's code. Because other contracts relied on it, they stopped working, and in a worse scenario money could have been stolen.

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.

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.