Smart Contract Hacking - Reentrancy (2022)

Поделиться
HTML-код
  • Опубликовано: 26 авг 2024

Комментарии • 18

  • @RishabhRaghwendra
    @RishabhRaghwendra 2 года назад +4

    Today I was studying about Reentrancy , finally this cleared all my doubts . Thanks!!

  • @0xVantwoutMaarten
    @0xVantwoutMaarten 2 года назад

    Great video, GOGOGO! What is the other exploit you talk about around 7 minutes, that you can force a contract to receive funds?

  • @user-lg8dc2mq1m
    @user-lg8dc2mq1m 2 года назад +1

    Sorry in advance if this question is dumb I am a noob to solidity programming but how does the escrow object in the Attacker contract know to implement withdrawFunds (and other methods) from the original contract that its trying to hack? I.e. how does the escrow interface know it implements the methods from the hacked contract?

  • @user-lg8dc2mq1m
    @user-lg8dc2mq1m 2 года назад +1

    Another question, why do we create an innocent contract instead of just using our metamask account?

  • @cainurielcainuriel
    @cainurielcainuriel 2 года назад +1

    I understand that the transfer method controls re-entries. Why not use transfer instead of call?

    • @richardmadrian6318
      @richardmadrian6318 Год назад

      The whole reason transfer() and send() were introduced was to address the cause of the infamous hack on The DAO. The idea was that 2300 gas is enough to emit a log entry but insufficient to make a reentrant call that then modifies storage.
      Remember, though, that gas costs are subject to change, which means this is a bad way to address reentrancy anyway. Earlier this year, the Constantinople fork was delayed because lowering gas costs caused code that was previously safe from reentrancy to no longer be.
      If we’re not going to use transfer() and send() anymore, we’ll have to protect against reentrancy in more robust ways. Fortunately, there are good solutions for this problem

  • @iqaaqaa2515
    @iqaaqaa2515 2 года назад

    if erc20 contract code not verify how will be transfer victim contract 1avax/ether i mean if we cant see contract code?

  • @vicbits
    @vicbits 2 года назад

    Nice nice. I love attacking with reentrency.

  • @yoginth
    @yoginth 2 года назад +3

    gm

  • @guillermorodriguezgalban
    @guillermorodriguezgalban 2 года назад

    I need helppp

  • @belladonna6821
    @belladonna6821 2 года назад

    I'm studying but "Fail with error 'Only beneficiary can withdraw'". Tell me where I'm wrong. too bad. 23:00 EDIT : ok i found why, but i can't finish the course > gas estimed error. hm

    • @lilmgn8582
      @lilmgn8582 2 года назад

      Did you found something new? please help me I'm a poor brazilian this is my only chance ! I would be grateful all my life

  • @ozii9757
    @ozii9757 2 года назад +1

    GM

  • @WealthyVibesTyllc
    @WealthyVibesTyllc 2 года назад +1

  • @bravelamooninternet2001
    @bravelamooninternet2001 2 года назад +1

    I appreciate how incredible you are and your work! i never expected could get peace of mind again, his efforts are the best ever! I can't stop recommending you #gripnotch 👏👏..

  • @bravelamooninternet2001
    @bravelamooninternet2001 2 года назад +1

    I appreciate how incredible you are and your work! i never expected could get peace of mind again, his efforts are the best ever! I can't stop recommending you #gripnotch 👏👏..