Skip to content
Smart contracts Write-up Advanced

Deus, Ovix, Unlock: From Miswired Mappings to Oracle Lies

Multiple smart contracts had implementation flaws: Deus Finance's allowance mapping was reversed, Level Finance's reward calculation reset instead of accumulated, Ovix Protocol's price oracle was manipulated via flash loans, BeatGen's oracle logic was inversely proportional to stablecoin balance, and Unlock Protocol lacked caller verification. Attackers exploited these to steal funds, with losses exceeding $9M in total.

medium.com

Published on medium.com

Five different bugs, one shared failure mode: trusting your own code too much. Deus let token allowances invert due to a miswired mapping.

Olympix, 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

Likely multiple root causes: reversed allowance mapping, incorrect reward accumulation, single oracle reliance, flawed decimal conversion logic, and missing caller verification.

Impact

Attackers stole over $9M in total across the five incidents, with Deus losing $6.3M, Ovix $2M, Level $1M, BeatGen $13K, and Unlock $38K.

What the attacker needed

Smart contract with the described flaw; attacker can interact with the contract; for Ovix: ability to flash loan large amounts

The fix

The text recommends using multiple price oracles for the same asset to compare results and identify discrepancies, and implies fixing the specific coding errors such as correcting the allowance mapping and adding caller verification.

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.

These are bugs in smart contracts, which are programs that run on a blockchain and often hold money. In each case, a small coding mistake let attackers take funds that weren't theirs, such as by tricking the contract about who is allowed to move tokens or what a token is worth.

What is Smart contracts?

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.

Similar reports

View all

Same bug class and techniques, clearest first.

Smart contract vulnerabilities

The lesson behind this report.

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.