Flash Loan Attack
A flash loan attack is a type of exploit where a malicious actor borrows a massive amount of capital without collateral, performs a series of actions, and repays the loan within a single transaction block. If the loan is not repaid by the end of the block, the entire transaction is reverted as if it never happened.
Attackers use these loans to manipulate the price of assets on decentralized exchanges, creating arbitrage opportunities that drain liquidity pools. Because the capital is borrowed instantly, the attacker can influence the price of a token significantly.
This manipulation can trigger cascading liquidations in other protocols, allowing the attacker to profit from the resulting instability. It represents a unique form of market manipulation enabled by the atomic nature of blockchain transactions.
These attacks have become a significant concern for the security of DeFi protocols. They highlight the dangers of relying on single-source price oracles.