Friday, January 19, 2024

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.

Read more


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

No comments:

Post a Comment