Smart Contract Hacking - Reentrancy (2022)

Поділитися
Вставка
  • Опубліковано 5 жов 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?

  • @文姬蔡-l9l
    @文姬蔡-l9l 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 2 роки тому

      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

  • @文姬蔡-l9l
    @文姬蔡-l9l 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?

  • @vicbits
    @vicbits 2 роки тому

    Nice nice. I love attacking with reentrency.

  • @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?

  • @yoginth
    @yoginth 2 роки тому +3

    gm

  • @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

  • @guillermorodriguezgalban
    @guillermorodriguezgalban 2 роки тому

    I need helppp

  • @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 👏👏..