Skip to content
Write-up Advanced

From Flashloans to Share Price Inflation: Anatomy of a Curve–Fr

The Makina protocol's Machine contract allowed anyone to call updateTotalAum, which committed a manipulated share price derived from a Curve pool oracle. An attacker used flashloans to distort the Curve pool, inflate the share price, and extract funds, netting a small profit after paying a large MEV bribe.

Evgenii Follow

Published on coinsbench.com

Contract 0x454d03b2… does not contain any protocol business logic. It is a general-purpose bytecode interpreter/proxythat:

Evgenii, on coinsbench.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

Impact

The attacker could manipulate the share price and extract funds, though the net profit was only about 0.13 ETH after a large MEV bribe.

What the attacker needed

Access to large flashloans; ability to call updateTotalAum; manipulable Curve pool

How it was found

  1. Take a large USDC flashloan from Morpho.
  2. Inside the callback, take a second flashloan from Aave.
  3. Add liquidity to the Curve DUSD/USDC pool and perform a swap to move its price.
  4. Add liquidity to Curve 3Pool and interact with Frax MIM-3LP3CRV-f to further distort prices.
  5. Call accountForPosition to fix the manipulated share price and AUM.
  6. Call updateTotalAum to commit the manipulated state, then close loans and swap profits.

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.

A share price in a DeFi protocol was calculated from a pool that could be pushed around with large temporary loans. The attacker repeatedly nudged the pool, locked in the inflated price, and cashed out. The core mistake was letting anyone trigger the price update without safeguards.

More by Evgenii

View all

8 more disclosed reports, best first.

Similar reports

Same bug class and techniques, clearest first.