Flash Loan Price Attacks
Flash loan price attacks are a type of exploit where an attacker uses a massive, under-collateralized loan to manipulate the price of an asset on a decentralized exchange, subsequently using that manipulated price to profit from a secondary protocol. Because flash loans allow for the borrowing of vast amounts of capital without collateral, provided the funds are returned within the same transaction, they provide the necessary liquidity to move prices on poorly designed or thin markets.
These attacks exploit the discrepancy between the price on the manipulated exchange and the price used by the target protocol. They are a direct consequence of protocols failing to use robust price discovery mechanisms, such as TWAP or decentralized aggregators.
This exploit has become a defining feature of the adversarial environment in crypto, forcing developers to prioritize defensive design in their smart contracts. It remains a primary example of how leverage and market microstructure interact to create systemic risks.