web3glossaryreentrancy attack
Reentrancy Attack

Summary

A type of vulnerability in smart contracts where an external contract can repeatedly call a function before the previous calls are finished, potentially leading to unexpected or malicious outcomes.

Detailed Description

In a reentrancy attack, an attacker exploits the ability to call back into a function of the victim contract before its state changes have been completed. This is often seen in scenarios where a contract interacts with external contracts or tokens. By calling back into the vulnerable function, an attacker can manipulate the state of the contract, usually to drain funds or alter the contract's state in unintended ways. A famous example of this type of attack occurred in The DAO hack in 2016, where reentrancy was utilized to siphon millions of dollars in Ether.

Category
Security
Synonyms
Callback Exploit
Reentrancy Exploit
Recursive Call Attack

Impact Details

3 impact insights hidden

Yirifi's stakeholder, regulatory-compliance, and risk-impact analysis for this term.

Token Withdrawal

A common scenario where a user can withdraw tokens from a contract. If not carefully managed, it can become vulnerable to reentrancy.

Industries:

Fintech
Decentralized Finance

Platforms:

Ethereum
Binance Smart Chain
Crowdfunding Contracts

If a crowdfunding contract allows users to return to the funding contract after making a pledge, it could be exploited through reentrancy to alter contributions.

Industries:

Cryptocurrency
Blockchain Solutions

Platforms:

Ethereum
DeFi Lending Protocols

Lending platforms that allow users to withdraw collateral can be subject to reentrancy if the withdrawal logic is not well-crafted.

Industries:

Decentralized Finance
Financial Services

Platforms:

Ethereum
Avalanche

Top Metrics

Yirifi's top metrics for this term.

FAQs

5 FAQs hidden

Yirifi's FAQs for this term.