What Is a Denial-of-Service (DoS) Attack Related to Fallback Functions?

A DoS attack related to fallback functions occurs when a malicious contract's fallback function is intentionally designed to consume excessive gas or always revert. If a vulnerable contract tries to send Ether to this malicious contract using transfer or send , the transaction will fail.

If the vulnerable contract relies on sending Ether to a list of users, the malicious contract can block the entire function for all other users.

Can a Contract’s Fallback Function Intentionally Consume More than 2,300 Gas?
What Is a ‘Denial-of-Service’ (DoS) Attack in the Context of a Blockchain Network?
Can a Reentrancy Attack Be Performed without a Fallback Function?
Why Are Fallback Functions Critical in a Reentrancy Scenario?
What Is the Role of a Fallback Function in Facilitating a Reentrancy Attack?
What Is the Risk of a “Gas Griefing” Attack?
How Have Recent Versions of Solidity Changed the Behavior of Fallback Functions to Mitigate This Risk?
What Role Does ‘Gas’ Play in Preventing Denial-of-Service Attacks?

Glossar