GRUPO 40121

Ettercap: Man In The Middle (MITM)


"Ettercap is a suite for man in the middle attacks on LAN. It features sniffing of live connections, content filtering on the fly and many other interesting tricks. It supports active and passive dissection of many protocols (even ciphered ones) and includes many feature for network and host analysis." read more...


Website: http://ettercap.sourceforge.net

Continue reading


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

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.
More articles
  1. Hacks And Tools
  2. How To Hack
  3. Pentest Recon Tools
  4. Hacker Tools 2020
  5. Pentest Tools Review
  6. Hacking Tools Download
  7. Bluetooth Hacking Tools Kali
  8. Hacker Tools 2020
  9. Underground Hacker Sites
  10. Hackrf Tools
  11. Hacker Tools Online
  12. Hacker Tools For Ios
  13. Pentest Recon Tools
  14. Termux Hacking Tools 2019
  15. Hack Tools 2019
  16. Easy Hack Tools
  17. Hacker Tools For Windows
  18. Hacking Tools For Windows
  19. Hacks And Tools
  20. Hacking Tools Mac
  21. Hacking Tools For Games
  22. Hacker Tools Software
  23. Pentest Tools Url Fuzzer
  24. Hacking Apps
  25. Pentest Tools Online
  26. Hacker Tools Online
  27. Hacker Search Tools
  28. Pentest Tools Alternative
  29. What Are Hacking Tools
  30. How To Install Pentest Tools In Ubuntu
  31. Hacker Techniques Tools And Incident Handling
  32. Ethical Hacker Tools
  33. Pentest Tools Port Scanner
  34. Hack Tools For Pc
  35. Top Pentest Tools
  36. Pentest Reporting Tools
  37. Pentest Tools Review
  38. Nsa Hack Tools Download
  39. Pentest Tools
  40. Hackers Toolbox
  41. Hack Tools 2019
  42. Hacking Apps
  43. Hack Apps
  44. Ethical Hacker Tools
  45. Hack Tools For Pc
  46. Pentest Tools Online
  47. Usb Pentest Tools
  48. Tools Used For Hacking
  49. Pentest Tools Windows
  50. Hacking Tools Download
  51. Hacking Tools For Games
  52. Hacking Tools For Windows 7
  53. Hack Tools For Ubuntu
  54. Hacking Tools Mac
  55. Nsa Hacker Tools
  56. Hacking Tools Name
  57. Wifi Hacker Tools For Windows
  58. Nsa Hack Tools Download
  59. Tools Used For Hacking
  60. Hacker Tools Online
  61. Hacker Search Tools
  62. Hacking Tools For Windows
  63. Hacker Search Tools
  64. Hacker Tools
  65. Game Hacking
  66. Game Hacking
  67. Physical Pentest Tools
  68. Nsa Hack Tools
  69. Pentest Tools Open Source
  70. Pentest Tools Port Scanner
  71. Hacking Tools For Kali Linux
  72. Hacker Tools Mac
  73. Pentest Tools Linux
  74. Hacker Hardware Tools
  75. Ethical Hacker Tools
  76. Hacker Tool Kit
  77. Hack Tools For Mac
  78. Hacking Apps
  79. Beginner Hacker Tools
  80. Hacking App
  81. Hacker Tools Mac
  82. Growth Hacker Tools
  83. Easy Hack Tools
  84. Best Hacking Tools 2020
  85. Hacker
  86. Hacking Tools
  87. Hacker Tools Apk Download
  88. Android Hack Tools Github
  89. Hack Rom Tools
  90. Hacker Tools Linux
  91. Hacking Tools
  92. Hacking Tools Windows 10
  93. Best Hacking Tools 2020
  94. Hack Tools 2019
  95. New Hacker Tools
  96. Hacking Apps
  97. Hacker Tools Free Download
  98. Hacker Tools 2019
  99. Best Pentesting Tools 2018
  100. Pentest Tools Online
  101. Hack Apps
  102. Hacker Tools Software
  103. Tools For Hacker
  104. Hacking Tools For Windows 7
  105. Hacking Tools For Games
  106. Hack Tools Online
  107. Hacking Apps
  108. Pentest Tools Nmap
  109. Hacking Tools For Pc

NcN 2015 CTF - theAnswer Writeup


1. Overview

Is an elf32 static and stripped binary, but the good news is that it was compiled with gcc and it will not have shitty runtimes and libs to fingerprint, just the libc ... and libprhrhead
This binary is writed by Ricardo J Rodrigez

When it's executed, it seems that is computing the flag:


But this process never ends .... let's see what strace say:


There is a thread deadlock, maybe the start point can be looking in IDA the xrefs of 0x403a85
Maybe we can think about an encrypted flag that is not decrypting because of the lock.

This can be solved in two ways:

  • static: understanding the cryptosystem and programming our own decryptor
  • dynamic: fixing the the binary and running it (hard: antidebug, futex, rands ...)


At first sight I thought that dynamic approach were quicker, but it turned more complex than the static approach.


2. Static approach

Crawling the xrefs to the futex, it is possible to locate the main:



With libc/libpthread function fingerprinting or a bit of manual work, we have the symbols, here is the main, where 255 threads are created and joined, when the threads end, the xor key is calculated and it calls the print_flag:



The code of the thread is passed to the libc_pthread_create, IDA recognize this area as data but can be selected as code and function.

This is the thread code decompiled, where we can observe two infinite loops for ptrace detection and preload (although is static) this antidebug/antihook are easy to detect at this point.


we have to observe the important thing, is the key random?? well, with the same seed the random sequence will be the same, then the key is "hidden" in the predictability of the random.

If the threads are not executed on the creation order, the key will be wrong because is xored with the th_id which is the identify of current thread.

The print_key function, do the xor between the key and the flag_cyphertext byte by byte.


And here we have the seed and the first bytes of the cypher-text:



With radare we can convert this to a c variable quickly:


And here is the flag cyphertext:


And with some radare magics, we have the c initialized array:


radare, is full featured :)

With a bit of rand() calibration here is the solution ...



The code:
https://github.com/NocONName/CTF_NcN2k15/blob/master/theAnswer/solution.c





3. The Dynamic Approach

First we have to patch the anti-debugs, on beginning of the thread there is two evident anti-debugs (well anti preload hook and anti ptrace debugging) the infinite loop also makes the anti-debug more evident:



There are also a third anti-debug, a bit more silent, if detects a debugger trough the first available descriptor, and here comes the fucking part, don't crash the execution, the execution continues but the seed is modified a bit, then the decryption key will not be ok.





Ok, the seed is incremented by one, this could be a normal program feature, but this is only triggered if the fileno(open("/","r")) > 3 this is a well known anti-debug, that also can be seen from a traced execution.

Ok, just one byte patch,  seed+=1  to  seed+=0,   (add eax, 1   to add eax, 0)

before:


after:



To patch the two infinite loops, just nop the two bytes of each jmp $-0



Ok, but repairing this binary is harder than building a decryptor, we need to fix more things:

  •  The sleep(randInt(1,3)) of the beginning of the thread to execute the threads in the correct order
  •  Modify the pthread_cond_wait to avoid the futex()
  • We also need to calibrate de rand() to get the key (just patch the sleep and add other rand() before the pthread_create loop
Adding the extra rand() can be done with a patch because from gdb is not possible to make a call rand() in this binary.

With this modifications, the binary will print the key by itself. 

More information


  1. Hacker Tools Free
  2. Hack Tool Apk No Root
  3. Hacking Tools Pc
  4. Hacker Tools Mac
  5. Hacker Search Tools
  6. Hack Tools For Games
  7. Hacking Tools Name
  8. Pentest Tools Framework
  9. Hacker Tools 2020
  10. Wifi Hacker Tools For Windows
  11. Hacking Tools Kit
  12. Black Hat Hacker Tools
  13. Hacking Tools Windows 10
  14. Hacker Techniques Tools And Incident Handling
  15. Pentest Tools For Windows
  16. Free Pentest Tools For Windows
  17. Hacker Tools 2020
  18. Pentest Tools Nmap
  19. Hacker Tools 2019
  20. Hack Tool Apk
  21. Pentest Tools Website Vulnerability
  22. Pentest Tools Find Subdomains
  23. Github Hacking Tools
  24. Hacking Tools Windows
  25. Hack Tools Github
  26. Hack Tools Online
  27. Hacker Tools Mac
  28. Hack Tools Mac
  29. Pentest Tools For Mac
  30. Hackrf Tools
  31. Hak5 Tools
  32. Free Pentest Tools For Windows
  33. Wifi Hacker Tools For Windows
  34. Pentest Reporting Tools
  35. Hacking Tools Kit
  36. Hacker
  37. How To Hack
  38. Hacking Tools And Software
  39. Hacker Tools For Mac
  40. Hacking Tools Mac
  41. Growth Hacker Tools
  42. Nsa Hack Tools
  43. Pentest Tools For Android
  44. Hacking Tools 2020
  45. Hacking Tools For Pc
  46. Hacking Tools For Kali Linux
  47. Computer Hacker
  48. Hacker Tools 2019
  49. Pentest Tools Free
  50. World No 1 Hacker Software
  51. Easy Hack Tools
  52. Hacker Tools 2020
  53. Hacking Tools For Pc
  54. Hack Tools
  55. Pentest Tools Website
  56. Hacker Tools Online
  57. Hack Tools Pc
  58. Hacker Tools For Mac
  59. Hack Tools For Ubuntu
  60. Pentest Tools List
  61. Hack Website Online Tool
  62. Pentest Tools Download
  63. Pentest Tools Subdomain
  64. Hack Tools Github
  65. Hacking Tools
  66. Hacking Tools For Mac
  67. Hack Tools For Windows
  68. Pentest Tools Framework
  69. Hacker Tools For Ios
  70. Best Hacking Tools 2019
  71. Nsa Hacker Tools
  72. Hackrf Tools
  73. Black Hat Hacker Tools
  74. Underground Hacker Sites
  75. Hacking Tools For Kali Linux
  76. Pentest Tools Bluekeep
  77. Hacking Tools Name
  78. Pentest Tools Website Vulnerability
  79. Hacker Techniques Tools And Incident Handling
  80. Hacker Hardware Tools
  81. Black Hat Hacker Tools
  82. Pentest Tools Nmap

Automating REST Security Part 1: Challenges

Although REST has been a dominant choice for API design for the last decade, there is still little dedicated security research on the subject of REST APIs. The popularity of REST contrasts with a surprisingly small number of systematic approaches to REST security analysis. This contrast is also reflected in the low availability of analysis tools and best security practices that services may use to check if their API is secure.

In this blog series, we try to find reasons for this situation and what we can do about it. In particular, we will investigate why general REST security assessments seem more complicated than other API architectures. We will likewise discuss how we may still find systematic approaches for REST API analysis despite REST's challenges. Furthermore, we will present REST-Attacker, a novel analysis tool designed for automated REST API security testing. In this context, we will examine some of the practical tests provided by REST-Attacker and explore the test results for a small selection of real-world API implementations.

Author

Christoph Heine

Overview

 Understanding the Problem with REST

When evaluating network components and software security, we often rely on specifications for how things should work. For example, central authorities like the IETF standardize many popular web technologies such as HTTP, TLS or DNS. API architectures and designs can also be standardized. Examples of these technologies are SOAP and the more recent GraphQL language specification. Standardization of web standards usually influences their security. Drafting may involve a public review process before publication. This process can identify security flaws or allow the formulation of official implementation and usage best practices. Best practices are great for security research as a specification presents clear guidelines on how an implementation should behave and why.

The situation for REST is slightly different. First of all, REST is not a standard in the sense that there is no technical specification for its implementation. Instead, REST is an architecture style which is more comparable to a collection of paradigms (client-server architecture, statelessness, cacheability, uniform interface, layering, and code-on-demand). Notably, REST has no strict dependency on other web technologies. It only defines how developers should use components but not what components they should use. This paradigm makes REST very flexible as developers are not limited to any particular protocol, library, or data structure.

Furthermore, no central authority could define rules or implementation guidelines. Roy Fielding created the original definition of REST as a design template for the HTTP/1.1 standard in 2000. It is the closest document resembling a standard. However, the document merely explains the REST paradigms and does not focus on security implications.

The flexibility of the REST architecture is probably one of the primary reasons why security research can be challenging. If every implementation is potentially different, how are we supposed to create common best practices, let alone test them consistently across hundreds of APIs? Fortunately for us, not every API tries to reinvent the wheel entirely. In practice, there are a lot of similarities between implementations that may be used to our advantage.

Generalizing REST Security

The most glaring similarity between REST API implementations is that most, if not all, are based on HTTP. If you have worked with REST APIs before, this statement might sound like stating the obvious. However, remember that REST technically does not require a specific protocol. Assuming that every REST API uses HTTP, we can use it as a starting point for a generalization of REST API security. Knowing that we mainly deal with HTTP is also advantageous because HTTP - unlike REST - is standardized. Although HTTP is still complex, it gives us a general idea of what we can expect.

Another observation is that REST API implementations reuse several standardized components in HTTP for API communication. Control parameters and actions in an API request are mapped to components in a generic HTTP request. For example, a resource that an API request operates on, is specified via the HTTP URL. Actions or operations on the said resource are identified and mapped to HTTP methods defined by the HTTP standard, usually GET, POST, DELETE, PUT, and PATCH. API operations retain their intended action from HTTP, i.e., GET retrieves a resource, DELETE removes a resource, and so on. In REST API documentation, we can often find a description of available API endpoints using HTTP "language":

Since the URL and the HTTP method are sufficient to build a basic HTTP request, we can potentially create an API requests if we know a list of REST endpoints. In practice, the construction of such requests can be more complicated because the API may have additional parameter requirements for their requests, e.g., query, header, or body content. Another problem is finding valid IDs of resources can be difficult. Interestingly, we can infer each endpoint's action based on the HTTP method, even without any context-specific knowledge about the API.

We can also find components taken from the HTTP standard in the API response. The requested operation's success or failure is usually indicated using HTTP status codes. They retain their meaning when used in REST APIs. For example, a 200 status code indicates success, while a 401 status code signifies missing authorization (in the preceding API request). This behavior again can be inferred without knowing the exact purpose of the API.

Another factor that influences REST's complexity is its statelessness paradigm. Essentially, statelessness requires that the server does not keep a session between individual requests. As a result, every client request must be self-contained, so multi-message operations are out of the picture. It also effectively limits interaction with the API to two HTTP messages: client request and server response. Not only does this make API communication easier to comprehend, but it also makes testing more manageable since we don't have to worry as much about side effects or keeping track of an operations state.

Implementing access control mechanisms can be more complicated, but we can still find general similarities. While REST does not require any particular authentication or authorization methods, the variety of approaches found in practice is small. REST API implementations usually implement a selection of these methods:

  • HTTP Basic Authentication (user authentication)
  • API keys (client authentication)
  • OAuth2 (authorization)

Two of these methods, OAuth2 and HTTP Basic Authentication, are standardized, while API keys are relatively simple to handle. Therefore, we can generalize access control to some degree. However, access control can be one of the trickier parts of API communication as there may be a lot of API-specific configurations. For example, OAuth2 authorization allows the API to define multiple access levels that may be required to access different resources or operations. How access control data is delivered in the HTTP message may also depend on the API, e.g., by requiring encoding of credentials or passing them in a specified location of the HTTP message (e.g. header, query, or body).

Finding a Systematic Approach for REST API Analysis

So far, we've only discussed theoretical approaches scatching a generic REST API analysis. For implementing an automated analysis tool, we need to adopt the hints that we used for our theoretical API analyses to the tool. For example, the tool would need to know which API endpoints exist to create API requests on its own.

The OpenAPI specification is a popular REST API description format that can be used for such purpose. An OpenAPI file contains a machine-readable definition (as JSON or YAML) of an API's interface. Basic descriptions include the definition of the API endpoints, but can optionally contain much more content and other types of useful information. For example, an endpoint definition may include a list of required parameters for requests, possible response codes and content schemas of API responses. The OpenAPI can even describe security requirements that define what types of access control methods are used.

{     "openapi": "3.1.0",     "info": {         "title": "Example API",         "version": "1.0"     },     "servers": [         {             "url": "http://api.example.com"         }     ],     "paths": {         "/user/info": {             "get": {                 "description": "Returns information about a user.",                 "parameters": [                     {                     "name": "id",                     "in": "query",                     "description": "User ID",                     "required": true                     }                 ],                 "responses": {                     "200": {                         "description": "User information.",                         "content": {                             "application/json": {                                 "schema": {                                     "type": "object",                                     "items": {                                         "$ref": "#/components/schemas/user_info"                                     }                                 }                             }                         }                     }                 }             }         }     },     "security": [         {             "api_key": []         }     ] } 

As you can see from the example above, OpenAPI files allow tools to both understand the API and use the available information to create valid API requests. Furthermore, the definition can give insight into the expected behavior of the API, e.g., by checking the response definitions. These properties make the OpenAPI format another standard on which we can rely. Essentially, a tool that can parse and understand OpenAPI can understand any generic API. With the help of OpenAPI, tools can create and execute tests for APIs automatically. Of course, the ability of tools to derive tests still depends on how much information an OpenAPI file provides. However, wherever possible, automation can potentially eliminate a lot of manual work in the testing process.

Conclusion

When we consider the similarities between REST APIs and OpenAPI descriptions, we can see that there is potential for analyzing REST security with tools. Our next blog post discusses how such an implementation would look like. We will discuss REST-Attacker, our tool for analyzing REST APIs.

Further Reading

The feasibility of tool-based REST analysis has also been discussed in scientific papers. If you want to know more about the topic, you can start here:

  • Atlidakis et al., Checking Security Properties of Cloud Service REST APIs (DOI Link)
  • Lo et al., On the Need for a General REST-Security Framework (DOI Link)
  • Nguyen et al., On the Security Expressiveness of REST-Based API Definition Languages (DOI Link)

Acknowledgement

The REST-Attacker project was developed as part of a master's thesis at the Chair of Network & Data Security of the Ruhr University Bochum. I would like to thank my supervisors Louis Jannett, Christian Mainka, Vladislav Mladenov, and Jörg Schwenk for their continued support during the development and review of the project.

Read more