Gravitational plate of three masses and a slashed discABC0Static engraved plate. Three-dimensional view is unavailable or reduced motion is requested.

← back to fieldarticle

articleAug 2, 2022

Damn Vulnerable DeFi Challenge 7 — Compromised (high-level)

Blog mirror of DVDeFi Compromised: exchange pricing depends on a tiny trusted-reporter set, and leaked off-chain material can break oracle integrity.

Damn Vulnerable DeFi Challenge #7 — Compromised

High-level notes only. Full decode/solve material from the archive is omitted.

Theme

Challenge story: odd hex content in an HTTP response from a “popular DeFi” web service; an on-chain exchange sells DVNFTs at an absurd oracle price backed by three named reporter addresses. Starting balance is 0.1 ETH; the educational goal is to take the exchange’s ETH.

Root-cause concept

  • Oracle security collapses when reporter signing keys leak outside the chain
  • A small static reporter set means compromising a majority of sources rewrites “truth” for the exchange
  • NFT buy/sell paths that trust that price inherit the oracle failure

Impact (abstract)

Manipulated postings can make collectibles appear cheap or expensive at will, enabling drainage of exchange ETH in the lab.

Mitigations / lessons

  • Keep oracle keys in HSMs / dedicated signers; never embed them in HTTP bodies or front-end assets
  • Monitor reporter set membership and price deviation
  • Add exchange-level circuit breakers and inventory limits

Solve steps and PoC omitted.

related

  1. Dec 22, 2022/articleDamn Vulnerable DeFi — Compromised (oracle trust & leaked reporter keys)
  2. Dec 25, 2022/articleDamn Vulnerable DeFi — Free Rider (msg.value reuse in NFT marketplace)
  3. Aug 10, 2022/articleDamn Vulnerable DeFi — Puppet v2 (high-level)

graphfeed