Re-Entrancy Bug

Action

A re-entrancy bug represents a critical vulnerability in smart contract design, particularly prevalent within decentralized finance (DeFi) protocols and cryptocurrency ecosystems. It arises when a function, after being invoked, recursively calls itself before the initial invocation completes, potentially leading to unintended and exploitable state changes. This self-referential loop can be maliciously triggered to drain funds or manipulate contract logic, often bypassing intended security measures and creating significant financial risk. Mitigation strategies frequently involve employing re-entrancy guards or employing check-effects-interactions patterns to ensure state updates precede external calls.