Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 743 Bytes

19.md

File metadata and controls

10 lines (7 loc) · 743 Bytes

Forcibly Sending Ether to a Contract

Description:

Occasionally, it is unwanted for users to be able to send Ether to a smart contract. Unfortunately for these circumstances, it's possible to bypass a contract fallback function and forcibly send Ether. The first method is to call the selfdestruct method on a contract with the Vulnerable contract address set as the beneficiary. This works because selfdestruct will not trigger the fallback function. Another method is to precompute a contract's address and send Ether to the address before the contract is even deployed. Surprisingly enough, this is possible.

References:

https://github.com/KadenZipfel/smart-contract-attack-vectors/blob/master/attacks/forcibly-sending-ether.md