2084AI Security Observatory

Crypto & Web3 · Topic

Flash loans & oracle manipulation

Uncollateralised loans repaid in one transaction give attackers huge, momentary capital to bend prices and protocol logic.

A flash loan lends any amount without collateral, on one condition: it is repaid within the same transaction, or the whole transaction is undone. It is a legitimate tool for arbitrage and refinancing — and it means anyone can briefly act with the capital of a whale.

The loan is rarely the bug. Losses happen when a protocol trusts something that much money can move for a moment: a price read from a single thin liquidity pool, a governance vote counted from current balances, or an accounting step that can be called in an unexpected order. The flash loan only supplies the scale.

Major incidents11 incidents

Newest first. Losses are USD values at the time, as published by the victim or the most authoritative source; attribution only as stated by law enforcement, a government or the victim.

  1. KiloEx (perpetuals DEX)

    Loss about $7M–$7.5M across several chainsBase / BNB Chain / opBNB / Taiko

    The price oracle path lacked proper access control, so the attacker could submit their own prices, open leveraged positions at an artificially low ETH price and close them at an artificially high one. The vaults paid out the fake profit.

    Recovered
    KiloEx said on 2025-04-18 that it had recovered all of the hacked funds

    Anything that can write a price must be strictly permissioned and bounded; sanity-check prices against independent feeds.

    SourcesRektResearchCoinDeskMediaThe BlockMedia

  2. UwU Lend

    Loss about $19.4M (reports range $19.3M–$20M); a second attack days later took about $3.7M moreEthereum

    UwU Lend's sUSDe price came from a fallback oracle built on the state of several Curve pools. Using flash-loaned funds, the attacker skewed those pools to distort the price, borrowing and liquidating at favourable rates to drain the market.

    Spot DEX pool state is not a safe price source for lending; use manipulation-resistant feeds and review any change to oracle fallback logic.

    SourcesRektResearchThe BlockMedia

  3. KyberSwap Elastic

    Loss about $54.7M per Kyber; early estimates about $47M–$48MArbitrum / Optimism / Ethereum / Polygon / Base / Avalanche

    Using flash loans, the attacker pushed pool prices into ranges with no liquidity and then made precisely sized swaps that hit a rounding error in the concentrated-liquidity tick logic, causing liquidity to be counted twice and letting the pools be drained on six chains.

    Custom AMM math needs adversarial testing at boundary conditions; tiny precision errors become exploitable with flash-loan scale.

    SourcesRektResearchThe RecordMedia

  4. Euler Finance

    Loss about $197M in ETH, WBTC, USDC and DAIEthereum

    A newly added donateToReserves function did not check whether the caller's position stayed healthy. With flash-loaned funds the attacker created a deliberately undercollateralised position and then liquidated it themselves at a discount, extracting about $197M.

    Recovered
    The exploiter returned over $177M by 2023-04-04, which Euler said was all recoverable funds

    Every function that changes a user's balance must re-run solvency checks, including ones added later as small features.

    SourcesRektResearchThe BlockMediaCoinDeskMedia

  5. Platypus Finance

    Loss about $8.5M–$9.1MAvalanche

    The attacker deposited flash-loaned USDC, borrowed the USP stablecoin against it, then used an emergency-withdraw function that only checked current solvency to pull the collateral out while keeping the loan. USP lost its peg.

    Recovered
    Platypus said about $2.4M USDC was recovered and about $1.5M USDT frozen; it also said French police took two suspects into custody (no charges reported)

    Emergency and admin paths need the same debt and solvency checks as normal withdrawals.

    SourcesRektResearchThe BlockMedia

  6. Mango Markets

    Loss about $110M (estimates up to about $115M)Solana

    A trader used two accounts to trade against each other and pump the thinly traded MNGO token price, which inflated the value of their collateral on the platform, then borrowed and withdrew about $110M. Avraham Eisenberg was convicted by a U.S. jury in April 2024 of commodities fraud, commodities manipulation and wire fraud, but on 2025-05-23 Judge Arun Subramanian set aside all three verdicts (vacating the commodities counts on venue grounds and acquitting on wire fraud, also finding no material misrepresentation was proven).

    Recovered
    About $67M was returned under a DAO-mediated settlement

    Lending against illiquid tokens priced from thin markets invites manipulation; cap collateral value by real liquidity.

    SourcesTRM LabsResearchRektResearchThe BlockMediaDecryptMedia

  7. Beanstalk Farms

    Loss about $182M lost by the protocol; the attacker kept about $76M (about 24,800 ETH)Ethereum

    The attacker used a flash loan of nearly $1B to acquire a temporary two-thirds voting majority and pushed through a malicious emergency governance proposal that sent the protocol's funds to them, all in one transaction.

    Governance power must not be acquirable within a single transaction; use time-weighted voting and execution delays.

    SourcesEllipticResearchRektResearch

  8. C.R.E.A.M. Finance

    Loss about $130MEthereum

    With very large flash loans the attacker inflated the share price of yUSD vault tokens, which Cream valued from the vault's balance divided by its supply. The inflated collateral let them borrow out most of Cream's Ethereum v1 markets.

    Collateral priced from a vault's own balance-to-supply ratio can be inflated by donations or redemptions; use hardened pricing and conservative caps.

    SourcesRektResearchThe BlockMedia

  9. PancakeBunny

    Loss about $45MBNB Chain

    The protocol calculated BUNNY reward minting from a PancakeSwap pool price that could be moved within one transaction. The attacker used eight flash loans to distort the price, minted millions of BUNNY, sold them and repaid the loans; BUNNY's price collapsed.

    Never base minting or rewards on instantaneous pool prices; use time-weighted or external oracles.

    SourcesRektResearchThe BlockMedia

  10. Harvest Finance

    Loss about $33.8M drained (attacker profit estimated near $24M)Ethereum

    Harvest's stablecoin vaults priced deposits and withdrawals from Curve Y pool prices. The attacker repeatedly used a flash loan to shift that pool, depositing at a depressed price and withdrawing at a restored one, about 1% profit per cycle over dozens of cycles.

    Recovered
    The attacker returned about $2.48M in USDT and USDC

    Vault share pricing that relies on another protocol's spot price needs tight deviation limits and should not allow same-block deposit/withdraw arbitrage.

    SourcesRektResearchThe BlockMedia

  11. bZx (Fulcrum)

    Loss about $1M across two attacks (about $350K on 15 Feb and 2,388 ETH, about $645K, on 18 Feb 2020)Ethereum

    Two attacks days apart were among the first widely studied flash-loan exploits. The second was an oracle manipulation: borrowed funds were used to pump sUSD on the DEXs bZx used for pricing, so bZx accepted inflated collateral and issued an oversized loan.

    Uncollateralised flash loans make any single-venue DEX price manipulable at near-zero cost; do not use one DEX as a price oracle.

    SourcesarXiv (Qin, Zhou, Livshits, Gervais)ResearchThe BlockMediaThe BlockMedia

Latest coverage

No flashes or analyses on this topic yet.