Reentrancy Attack Vector

Mechanism

A reentrancy attack vector occurs when a smart contract initiates an external call to an untrusted address before updating its internal state variables. This architectural flaw permits the external contract to recursively call back into the original function, manipulating the contract state multiple times within a single transaction sequence. In the context of decentralized finance, this often enables malicious actors to drain liquid reserves or collateral pools by bypassing standard accounting logic.