MENU

Re-entrancy Attack

0
429
0

You’ve heard a lot about Re-entrancy attack, and the famous DAO hacking case that caused Ethereum hard fork.

I got some questions for you.
– Are you sure about that your smart contract never gets destroyed by a Re-entrancy attack?
– Have you ever made & experiment a hacking contract that do a Re-entrancy attack?
– Did you find that the experiment wouldn’t work in Solidity v0.8?

I made a Solidity game, that would give you the answers clearly.

Any interaction from a contract (A) with another contract (B) and any transfer of Ether hands over control to that contract (B). This makes it possible for B to call back into A before this interaction is completed.

In this game, you will be a hacker in order to steal all the funds from a contract. Through this, you will learn “CEI” pattern to keep your contract safe from Re-entrancy, as well as an important breaking change in Solidity v0.8 that prevents Re-entrancy in another way.

Github: https://github.com/maAPPsDEV/reentrancy-attack

Sorry, the comment form is closed at this time.