Help for reentrancy attack situation #319
Unanswered
juliancabmar
asked this question in
Q&A
Replies: 1 comment
-
I don't see a way out with solidity version |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone.
I have this contract to attack (based on Ethernaut n° 10 challenge):
This is my attacker contract:
And finally my (incomplete) foundry test:
Seeing the console output of the test (with -vvvv), the reentrancy attack is not working because after the withdraw call loop finish, the balance state is updated give me a revert by underflow:
So, my question is: is there any way to bypass the balance update?... I know that the original ethernaut challenge exploit the solidity 0.6.x arithmetic vulnerability... but, I had to try.
Thanks for advance :)
Beta Was this translation helpful? Give feedback.
All reactions