Yearn, Hundred, Ocean Life: The Cost of Misconfigured Logic and M
The article describes five separate smart contract exploits on various DeFi protocols, each caused by different logic errors such as misconfigured lender addresses, rounding errors, and reentrancy. Attackers used flash loans to manipulate internal accounting and drain funds, with losses ranging from $11K to $11M.
These five exploits aren’t about zero-days; they’re about sloppy accounting, unsafe upgrade patterns, and fragile assumptions under flash loan pressure. From Yearn’s hardcoded lender misconfig to Hundred’s wei-level exchange rate trick, every hack here was predictable if not outright preventable.
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
Likely multiple root causes: hardcoded incorrect lender address, rounding error in exchange rate calculation, public approve function on generated contracts, and reentrancy due to state update after transfer.
Impact
The five exploits resulted in combined losses exceeding $18 million, with individual losses ranging from $11K to $11M.
What the attacker needed
Flash loan availability; vulnerable smart contract
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.
This article is a summary of five separate hacks on cryptocurrency platforms. In each case, a mistake in the code allowed an attacker to trick the system into giving them more money than they should have. The mistakes were things like using the wrong address for a lender, not updating balances before transferring funds, or leaving a function open for anyone to call.
What is Smart contracts?
Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.