Deploy Different Contracts at Same Address | Hack Solidity 0.8

Поділитися
Вставка

КОМЕНТАРІ • 35

  • @smartcontractprogrammer
    @smartcontractprogrammer  Рік тому +4

    Tornado Cash Hack
    ua-cam.com/video/whjRc4H-rAc/v-deo.html
    0:00 - Intro
    2:05 - Code overview
    2:49 - DeployerDeployer contract
    5:00 - Deployer contract
    6:51 - Attack contract
    8:52 - Remix demo overview
    10:21 - Remix demo
    Code
    solidity-by-example.org/hacks/deploy-different-contracts-same-address/
    Take a course
    www.smartcontract.engineer/

  • @harrydare8191
    @harrydare8191 Рік тому +6

    This guy's solidity level is fire

  • @SUPERMAN_I4G
    @SUPERMAN_I4G Рік тому

    Ngl I am obsessed with your video tutorials! Gone through 50% of the solidity playlist and decided to finish this playlist before I continue. Like how are you so good? Who are you? Dayumn! Well, thank you so much for all the insightful videos you make accessible for free! Can't thank you enough🙌🏽

  • @patrykloda6345
    @patrykloda6345 Рік тому +1

    Your videos and course have been such a great help! The fact your course is a monthly subscription is great, other courses have a huge one time cost, but your monthly subscription makes it so much more accessible! Keep it up!

    • @lawniczakjohn
      @lawniczakjohn Рік тому +1

      Have you taken it and been enjoying it?

    • @patrykloda6345
      @patrykloda6345 Рік тому

      @@lawniczakjohn Yes, about 50% of the way through the solidity course. I've got quite a bit of solidity experience already, so the first 25% of the course was quite simple, however the later HIGH difficulty tasks are interesting and I've learnt quite a lot of interesting things from them. Definitely would recommend!

  • @Robinson-lw7ys
    @Robinson-lw7ys Рік тому

    I was looking for this 🔥

  • @AkashDarji-mq8vc
    @AkashDarji-mq8vc Рік тому +1

    Love you man ❤

  • @codertjay
    @codertjay 4 місяці тому

    legendary

  • @Tanjiro_Killua
    @Tanjiro_Killua 6 місяців тому

    Gold!!

  • @captpython3725
    @captpython3725 Рік тому

    Your videos are like Solidity Super dose ..

  • @razorjhon2622
    @razorjhon2622 Рік тому

    How u so good in Solidity please , make an advanced solidity tutorials like this one but a whole package 🙏

  • @lawniczakjohn
    @lawniczakjohn Рік тому

    Seems like a type of Reentrancy in contract form.
    Deploy… within the deploy! 😮

  • @muhanadtur8785
    @muhanadtur8785 Рік тому

    Awesome!

  • @0xh8h
    @0xh8h Рік тому

    so when the Tornado governance reviewed the proposal, they saw a contract that has function `selfdestruct` and they still think it's normal? I thought this kind of metamorphic contract exists since 2019

  • @herikaniugu
    @herikaniugu Рік тому

    Unbelievable

  • @kcstorytime4898
    @kcstorytime4898 Рік тому +1

    Amazing. Do you coach developers? I could use some coaching from someone like you to make sure I have the skills I need to start applying to dev jobs.

  • @thileepanilankumaran6840
    @thileepanilankumaran6840 Рік тому

    Selfdestruct is deprecated from Solidity 0.8.18. So contracts deployed before are vulnerable. How can we avoid this create vulnerability ?

  • @rbrickproductions123
    @rbrickproductions123 Рік тому

    So it’s pretty unsafe to blindly call contract code, could this have been mitigated by storing the EXTCODEHASH of the original proposal with the extcodehash upon execution?
    Selfdestruct has been deprecated for almost a year. Hopefully this attack will encourage further review of the proposals to remove it/change behavior.

  • @difference018
    @difference018 Рік тому +1

    Is there any reason why this attack wouldn't work by simply upgrading the contract?

  • @jingli9232
    @jingli9232 Рік тому

    curious about the gas estimation extension

  • @zumbazumzum6463
    @zumbazumzum6463 Рік тому

    Hello, the video was very clear. But I have a doubt, can we use DeployerDeployer contract directly to deploy Attack and Proposal, instead of using Deployer contract to deploy them.

    • @smartcontractprogrammer
      @smartcontractprogrammer  Рік тому +1

      Nope, all is necessary

    • @sweetjimmy
      @sweetjimmy Рік тому

      @@smartcontractprogrammer Buy why is that? The address of the Proposal and the Attack contract must still be the same if the DeployerDeployer contract uses create2 to create them directly, right?

    • @danial_hamedi
      @danial_hamedi Рік тому

      @@smartcontractprogrammer have the save question

  • @magnetto90
    @magnetto90 Рік тому

    Only 127 likes?? Come on people!!

  • @nemtom20
    @nemtom20 Рік тому

    I see you have an extension that tells you how much gas each function costs - is it built into Remix ? Does anyone know of a VsCode extension that does the same ?

  • @haashishp4424
    @haashishp4424 Рік тому

    Bro, Can you create a coin for me in same contract address...Suggest me sites...i am weak in coding

  • @viktorlavrenenko1713
    @viktorlavrenenko1713 Рік тому

    Is it another implementation of create3?