T
iTokenly

Onyx Protocol hack — September 2024

Verified — 5 sourcesLast checked August 1, 2026

Incident facts

Date of incident
Publicly disclosedSeptember 26, 2024
Target typeLending protocol
Loss$3,800,000Price at time of incident
MethodContract logic errorCompound v2 fork rounding behaviour in a near-empty VUSD market allowed the exchange rate to be distorted with small donations after a 2,000 WETH Balancer flash loan, letting a tiny deposit be borrowed against; separately the NFTLiquidation contract did not validate untrusted user input, allowing self-liquidation rewards to be inflated.
ChainsEthereum
OutcomeProject relaunched

What happened

Onyx Protocol was an Ethereum lending market forked from Compound v2. On 26 September 2024 an attacker combined two weaknesses. The first is the rounding behaviour that Compound v2 forks inherit: in a market with almost no liquidity, the exchange rate between the market token and the underlying asset can be shifted by donating small amounts, which lets a borrower inflate the apparent value of a tiny deposit. Onyx had recently opened a market for its VUSD stablecoin with negligible supply. Funded by a 2,000 WETH flash loan from Balancer, the attacker pushed a stream of small oETH transactions through the thin market to distort the rate. The second weakness, identified by PeckShield, was in Onyx's NFTLiquidation contract, which did not properly validate untrusted user input and allowed self-liquidation rewards to be inflated.

The attacker removed 4.1 million VUSD, 7.35 million XCN, 0.23 WBTC and roughly $55,000 in DAI and USDT, together valued at about $3.8 million. VUSD lost its dollar peg and traded near $0.39 afterwards. Part of the proceeds was routed through CoW Protocol into ether.

Onyx acknowledged the exploit but disputed the diagnosis, saying the primary problem was the NFTLiquidation contract rather than the empty-market rounding issue. The same Compound v2 rounding flaw had already been used against Onyx in an earlier attack in late 2023 costing about $2.1 million, and against Hundred Finance in 2023.

Governance proposal OIP-46 passed on 29 September 2024. Onyx shut down the Ethereum lending market, said lenders would be reimbursed in full, and relaunched from 1 October 2024 as a permissioned product called Onyx Core.

Sources

  1. Onyx DAO governance forumPrimary · retrieved 2026-08-01
  2. CointelegraphSecondary · retrieved 2026-08-01
  3. CryptopolitanSecondary · retrieved 2026-08-01
  4. HalbornSecondary · retrieved 2026-08-01
  5. FinanceFeedsSecondary · retrieved 2026-08-01

Cite this

This data is published under CC BY 4.0. You may reuse it, including commercially, as long as you credit iTokenly and link back.

iTokenly Hack Registry, "Onyx Protocol hack — September 2024", iTokenly, accessed 2026-08-01, https://itokenly.com/hacks/onyx-protocol
https://itokenly.com/hacks/onyx-protocol

Permalinks never change. If an entry is renamed, the old address keeps working.

Spotted an error? Write to [email protected]. Corrections to published figures are logged on this page. See the methodology for how entries are checked.