Read-Only Reentrancy

Algorithm

Read-Only Reentrancy, within decentralized finance, represents a specific vulnerability pattern arising from interactions between smart contracts, particularly when external calls are made during state changes. It differs from traditional reentrancy by focusing on scenarios where a contract’s logic allows an attacker to repeatedly call a function before the initial call’s state updates are finalized, but crucially, the attacker cannot modify the state of the vulnerable contract itself. This limitation necessitates exploitation through external contract interactions and manipulation of external data flows to achieve a desired outcome, often involving draining funds or manipulating balances.