Back to Blog
DeFi & Web3 Security

Cozy Finance Drained Again: $170K Lost to a UMA Oracle Manipulation

A false, unchallenged assertion to Cozy Finance's UMA Optimistic Oracle integration triggered a payout an attacker then drained in minutes — the DeFi insurer's second Optimism loss in just over a year.

PyramidLedger Research4 min read
Share

Key Takeaways

  • An attacker used a false assertion to Cozy Finance's UMA Optimistic Oracle integration to trigger an unauthorized payout, draining roughly 163,326 USDC.e via an unverified 'Cozy Set' contract.
  • The funds were bridged out within 13 minutes of the exploit transaction, ahead of Blockaid's automated alert — well inside the window any manual response could have closed.
  • This is Cozy Finance's second Optimism-side loss, after an August 2025 incident cost the protocol about $427,000 through a different flaw in its withdrawal logic.
  • The pattern shows oracle-driven payout paths and auxiliary contracts deserve the same adversarial scrutiny as a protocol's core logic — not less.

Cozy Finance, a DeFi protocol that sells coverage against failures in other protocols, lost roughly $170,000 on Optimism on September 7, 2026. The mechanism wasn't a reentrancy bug or a leaked key — it was the oracle that decides whether a covered event actually happened.

What happened

Blockaid flagged the exploit transaction at 05:43 UTC. The attacker moved out roughly 163,326 USDC.e across 63 transfers and burned about 1.6 million Cozy PToken (CPT), routing the proceeds through a bridge by 05:56 UTC — 13 minutes start to finish, faster than Blockaid's alert could translate into a response. The attack contract had been sitting live since September 2, funded via a Relay solver, suggesting the exploit was planned days in advance rather than opportunistic.

The oracle trust gap

The drain ran through an unverified contract called Cozy Set (CSET), which still held about $4,168 in USDC.e after the attack. Reporting on the incident describes the attacker submitting a false assertion to Cozy Finance's UMA Optimistic Oracle integration that went unchallenged inside its dispute window — triggering a compensation payout the attacker then redeemed. UMA's optimistic-oracle model treats an asserted answer as true unless someone disputes it in time; when nobody watches that window, assert → wait → redeem becomes a three-step attack against real money, with no smart-contract bug required at all.

Déjà vu, different attack surface

This is Cozy Finance's second Optimism-side loss. In August 2025, the protocol lost about $427,000 after security firm Verichains traced the flaw to withdrawal code that never checked who was completing a redemption. That was a permissions bug in the protocol's own logic. This one lived in the oracle-resolution path instead. Different root cause, same lesson: a DeFi insurer's payout logic is its highest-value attack surface, and every route into it — core contract or auxiliary, audited or not — needs the same level of scrutiny.

What this means for oracle-dependent protocols

  • Dispute windows need active, automated monitoring — a human noticing a bad assertion after 13 minutes is already too late.
  • Auxiliary or 'unverified' contracts sitting next to core logic (like CSET here) should get the same review depth as the flagship contracts, since they can still move real funds.
  • Optimistic-oracle integrations are a distinct threat model from classic smart-contract bugs and deserve their own line item in a protocol's security review, not just a general audit checkbox.
  • Bridging speed means on-chain circuit breakers or pausable payout paths matter more than incident-response runbooks once funds can leave the source chain in minutes.

Cozy Finance still ranks around fifth among insurance protocols on DefiLlama with roughly $1.3 million in TVL — a reminder that even small, niche DeFi protocols are worth automating an attack against if the payout logic has a soft spot.

Frequently Asked Questions

What is a UMA Optimistic Oracle, and why is it exploitable?

It's an oracle design that accepts a submitted answer (an 'assertion') as true unless someone disputes it within a fixed window. That trade-off favors low cost and speed over guaranteed correctness — if no one is watching during the dispute window, a false assertion can go through unchallenged, as reportedly happened here.

Was this a smart-contract bug in Cozy Finance's code?

Reporting attributes this incident to gaming the oracle's verification process rather than a flaw in Cozy Finance's own contract code — distinct from the August 2025 incident, where Verichains identified an actual permissions bug in the protocol's withdrawal logic.

How did the attacker get the funds out so fast?

The exploit transaction landed at 05:43 UTC and the attacker bridged the proceeds off Optimism by 05:56 UTC, according to Blockaid — a 13-minute window that outran the security firm's own alert.

Sources

  1. 1Cozy Finance Exploit Drains $170,000 From DeFi Insurer for a 2nd TimeYahoo Finance / CoinDesk
  2. 2Cozy Finance exploit drains $160K after attacker games UMA oracleCoinDesk
  3. 3Cozy Finance Exploit Drains $170,000 From DeFi Insurer for a 2nd TimeCoinDesk
Share

Read next