Web Requests
| Field | Value |
|---|---|
| Module ID | 35 |
| Difficulty | Fundamental |
| Tier | Tier 0 |
| Category | General |
| Estimated Time | 4 hours |
| Cubes Earned | 0 |
| Experience Points | 220 |
| Creators | 21y4d |
| Last Updated | 2022-02-25T00:00:00.000000Z |
| URL | https://academy.hackthebox.com/app/module/35 |
Module Includes
- 8 Sections
- 6 Interactive Exercises
- 0 Assessments
- 0 Cubes
Module Description
This module introduces the topic of HTTP web requests and how different web applications utilize them to communicate with their backends.
Module Summary
This module introduces key fundamentals that must be mastered to be successful in information security. Understanding web requests is essential for understanding how web applications work, which is necessary before attempting to attack or secure any web application. This makes this module the very first step in web application penetration testing.
This module will deliver these concepts through two main tools: cURL and the Browser DevTools. These tools are among the essential tools in any web penetration tester's arsenal, and this module will start you on the path to mastering them.
In addition to the above, this module will cover:
- An overview of the HyperText Transfer Protocol (HTTP)
- An overview of the Hypertext Transfer Protocol Secure (HTTPS)
- HTTP requests and responses and their headers
- HTTP methods and response codes
- Common HTTP methods such as GET, POST, PUT, and DELETE
- Interacting with APIs
CREST CPSA/CRT-related Sections:
- All sections
CREST CCT APP-related Sections:
- All sections
CREST CCT INF-related Sections:
- All sections
This module is broken down into sections with accompanying hands-on exercises to practice each of the tactics and techniques we cover. The module ends with a practical hands-on skills assessment to gauge your understanding of the various topic areas.
You can start and stop the module at any time and pick up where you left off. There is no time limit or "grading," but you must complete all of the exercises and the skills assessment to receive the maximum number of cubes and have this module marked as complete in any paths you have chosen.
As you work through the module, you will see example commands and command output for the various topics introduced. It is worth reproducing as many of these examples as possible to reinforce further the concepts presented in each section. You can do this in the PwnBox provided in the interactive sections or in your virtual machine.
The module is classified as "Fundamental" and assumes a working knowledge of the Linux command line and an understanding of information security fundamentals. Though not mandatory, we recommend taking these modules before/along with this module:
- Introduction to Networking
- Linux Fundamentals
Sections
8 sections - 6 Interactive
| # | Group | Type | Title |
|---|---|---|---|
| 1 | HTTP Fundamentals | interactive | HyperText Transfer Protocol (HTTP) |
| 2 | theory | Hypertext Transfer Protocol Secure (HTTPS) | |
| 3 | interactive | HTTP Requests and Responses | |
| 4 | interactive | HTTP Headers | |
| 5 | HTTP Methods | theory | HTTP Methods and Codes |
| 6 | interactive | GET | |
| 7 | interactive | POST | |
| 8 | interactive | CRUD API |
Conclusion
This module covered the essentials of HTTP requests and how we can send HTTP requests with different HTTP methods. Such concepts are necessary for beginning to work with web applications. A successful security professional must understand and be able to explain the core concepts of the technologies that they are charged with attacking, defending, and securing.
As you work on testing web applications, you may primarily be working with proxying tools like Burp Suite or ZAP, so we advise working through the Using Web Proxies module next. However, understanding HTTP requests and their different methods is essential for starting to use such proxying tools. Also, on many occasions, being able to perform quick tests using browser dev tools or cURL would be much faster than switching to a different tool. Furthermore, cURL knowledge is essential for scripting web requests and automating different tests, which may become very handy for exploit development in the future.
Module Key Takeaways
- An overview of the HyperText Transfer Protocol (HTTP) and HTTPS (HTTP Secure) protocols
- Working with HTTP requests and responses and their headers
- An understanding of common HTTP methods and response codes
- Interacting with APIs
- Leveraging
cURLfor interacting with web applications. - Leveraging
Browser DevToolsfor interacting with web applications.