Tuesday, May 30, 2023

Blockchain Exploitation Labs - Part 2 Hacking Blockchain Authorization


Bypassing Blockchain Authorization via Unsecured Functions


Note: Since the first part of this series I have also uploaded some further videos on remediation of reentrancy and dealing with compiler versions when working with this hacking blockchain series.  Head to the console cowboys YouTube account to check those out.  Haha as mentioned before I always forget to post blogs when I get excited making videos and just move on to my next project… So make sure to subscribe to the YouTube if you are waiting for any continuation of a video series.. It may show up there way before here. 

Note 2:  You WILL run into issues when dealing with Ethereum hacking, and you will have to google them as versions and functionality changes often... Be cognizant of versions used hopefully you will not run into to many hard to fix issues. 

In the second part of this lab series we are going to take a look at privacy issues on the blockchain which can result in a vulnerably a traditional system may  not face. Since typically blockchain projects are open source and also sometimes viewable within blockchain explorers but traditional application business logic is not usually available to us. With traditional applications we might not find these issues due to lack of knowledge of internal functionality or inability to read private values on a remote server side script.  After we review some issues we are going to exploit an authorization issues by writing web3.js code to directly bypass vertical authorization restrictions.

Blockchain projects are usually open source projects which allow you to browse their code and see what's going on under the hood.  This is fantastic for a lot of reasons but a developer can run into trouble with this if bad business logic decisions are deployed to the immutable blockchain.  In the first part of this series I mentioned that all uploaded code on the blockchain is immutable. Meaning that if you find a vulnerability it cannot be patched. So let's think about things that can go wrong..

A few things that can go wrong:
  • Randomization functions that use values we can predict if we know the algorithm
  • Hard-coded values such as passwords and private variables you can't change.
  • Publicly called functions which offer hidden functionality
  • Race conditions based on how requirements are calculated

Since this will be rather technical, require some setup and a lot of moving parts we will follow this blog via the video series below posting videos for relevant sections with a brief description of each.  I posted these a little bit ago but have not gotten a chance to post the blog associated with it.  Also note this series is turning into a full lab based blockchain exploitation course so keep a lookout for that.

In this first video you will see how data about your project is readily available on the blockchain in multiple formats for example:
  • ABI data that allows you to interact with methods.
  • Actual application code.
  • Byte code and assembly code.
  • Contract addresses and other data.

 Lab Video Part 1: Blockchain OSINT: 



Once you have the data you need to interact with a contract on the blockchain via some OSINT how do you actually interface with it? That's the question we are going to answer in this second video. We will take the ABI contract array and use it to interact with methods on the blockchain via Web3.js and then show how this correlates to its usage in an HTML file

Lab Video Part 2: Connecting to a Smart Contract: 




Time to Exploit an Application:

Exploit lab time, I created an vulnerable application you can use to follow along in the next video. Lab files can be downloaded from the same location as the last blog located below. Grab the AuthorizationLab.zip file:

Lab file downloads:



Ok so you can see what's running on the blockchain, you can connect to it, now what?   Now we need to find a vulnerability and show how to exploit it. Since we are talking about privacy in this blog and using it to bypass issues. Lets take a look at a simple authorization bypass we can exploit by viewing an authorization coding error and taking advantage of it to bypass restrictions set in the Smart Contract.  You will also learn how to setup a local blockchain for testing purposes and you can download a hackable application to follow along with the exercises in the video..

Lab Video Part 3:  Finding and hacking a Smart Contract Authorization Issue: 





Summary:

In this part of the series you learned a lot, you learned how to transfer your OSINT skills to the blockchain. Leverage the information found to connect to that Smart Contract. You also learned how to interact with methods and search for issues that you can exploit. Finally you used your browsers developer console as a means to attack the blockchain application for privilege escalation.

Related word


  1. What Are Hacking Tools
  2. Pentest Tools Kali Linux
  3. Pentest Tools For Windows
  4. Hacking Tools Windows 10
  5. Pentest Tools Download
  6. Hacker Security Tools
  7. Best Hacking Tools 2020
  8. Pentest Tools Url Fuzzer
  9. Top Pentest Tools
  10. Ethical Hacker Tools
  11. Hack Tools Download
  12. Hack Tools Mac
  13. Hacker Hardware Tools
  14. Hacks And Tools
  15. Hack Apps
  16. Github Hacking Tools
  17. Hack And Tools
  18. Hacking Tools Online
  19. Pentest Tools Android
  20. Hacker Tools
  21. World No 1 Hacker Software
  22. Hack And Tools
  23. Hacking Tools Windows
  24. Pentest Box Tools Download
  25. Hackrf Tools
  26. Hacker Tools Mac
  27. Hacking Tools For Windows
  28. Hack Tools Online
  29. Hack Tools For Pc
  30. Hacker
  31. How To Install Pentest Tools In Ubuntu
  32. Pentest Tools Linux
  33. Hacker Techniques Tools And Incident Handling
  34. Pentest Tools Free
  35. Hack Apps
  36. Hacking Tools 2020
  37. Pentest Tools Find Subdomains
  38. Pentest Tools For Mac
  39. Pentest Tools Website
  40. Hacking Tools Hardware
  41. Hacker Tools Online
  42. Pentest Tools Website Vulnerability
  43. Tools 4 Hack
  44. Hack Tools For Mac
  45. Hak5 Tools
  46. Kik Hack Tools
  47. Hack Website Online Tool
  48. Pentest Tools For Android
  49. Nsa Hacker Tools
  50. Hack Tool Apk
  51. Hacking Tools Hardware
  52. Hacker Tools Hardware
  53. Pentest Reporting Tools
  54. Hack Rom Tools
  55. Hacking Tools Kit
  56. Underground Hacker Sites
  57. Tools 4 Hack
  58. Hacker
  59. Ethical Hacker Tools
  60. Hack Tools For Windows
  61. Best Pentesting Tools 2018
  62. Hacking App
  63. Hacking Tools For Beginners
  64. Hack Rom Tools
  65. Hack App
  66. Hacker Tools Windows
  67. Hacker Search Tools
  68. Hack Tools Online
  69. Hacker Tool Kit
  70. Hak5 Tools
  71. Hacker Tools 2020
  72. Hacking Tools For Windows
  73. Top Pentest Tools
  74. Hack Tools 2019
  75. Hacker Techniques Tools And Incident Handling
  76. Free Pentest Tools For Windows
  77. Hacker Tools For Windows
  78. Hack Rom Tools
  79. Hacker Tools 2019
  80. Hacking Tools Github
  81. Hack Tools Download
  82. Hacker Tools Software
  83. Hacking Tools Download
  84. Hacker Tool Kit
  85. Hacking Tools For Windows 7
  86. Hacking Tools Pc
  87. Hacking Tools
  88. How To Hack
  89. Hacking Tools Hardware
  90. Physical Pentest Tools
  91. Hack Website Online Tool
  92. Hack Tools For Mac
  93. Hacker Tools Hardware
  94. Hack Tools
  95. Nsa Hack Tools
  96. Pentest Tools Download
  97. Pentest Tools Alternative
  98. Hacking Tools Windows 10
  99. Hacker Tools For Pc
  100. Pentest Tools Framework
  101. Pentest Tools Linux
  102. Hacking Tools For Windows
  103. Hacker Techniques Tools And Incident Handling
  104. Game Hacking
  105. Nsa Hacker Tools
  106. Pentest Tools Free
  107. Hacks And Tools
  108. What Are Hacking Tools
  109. Hacking Tools For Pc
  110. Hacking Apps
  111. Hacker Tools For Windows
  112. Hacker Tools Hardware
  113. Hacking Tools 2019
  114. Hacking Apps
  115. Ethical Hacker Tools

No comments:

Post a Comment