Web Attacks
| Field | Value |
|---|---|
| Module ID | 134 |
| Difficulty | Medium |
| Tier | Tier II |
| Category | Offensive |
| Estimated Time | 2 days |
| Cubes Earned | 20 |
| Experience Points | 760 |
| Creators | 21y4d |
| Last Updated | 2021-10-01T00:00:00.000000Z |
| URL | https://academy.hackthebox.com/app/module/134 |
Module Includes
- 18 Sections
- 10 Interactive Exercises
- 1 Assessments
- 20 Cubes
Module Description
This module covers three common web vulnerabilities, HTTP Verb Tampering, IDOR, and XXE, each of which can have a significant impact on a company's systems. We will cover how to identify, exploit, and prevent each of them through various methods.
Module Summary
As web applications' popularity keeps increasing, so do the number and types of attacks that web applications are vulnerable to. Many of the most common web attacks have been covered in other web modules already. This module will cover a few other important web exploitation techniques.
The module starts by covering HTTP Verb Tampering vulnerabilities that allow attacks to manipulate HTTP requests to access restricted web pages, which may give an attacker access to sensitive resources. The second topic covered is Insecure Direct Object References (IDOR) vulnerabilities. IDORs are among the most common vulnerabilities in web applications and allow attackers to easily view and leak other user's private data due to improper access controls. Finally, the module will cover XML External Entity (XXE) Injection vulnerabilities. These recently became among the top 10 most critical web vulnerabilities, as XXE vulnerabilities may allow attackers to read local files stored on the server, gain remote code execution (RCE), or even cause a Denial of Service.
In addition to the above, the Web Attacks module will teach you the following:
HTTP Verb Tampering:- What are HTTP Verb Tampering vulnerabilities?
- Examples of insecure configurations
- Detecting and exploiting HTTP Verb Tampering vulnerabilities
- Examples of secure serve configuration to prevent HTTP Verb Tampering vulnerabilities
IDOR:- What are IDOR vulnerabilities, and how do they occur
- Examples of code vulnerable to IDOR
- Different types of IDOR vulnerabilities
- How to detect IDOR vulnerabilities
- Various methods of exploiting IDOR vulnerabilities
- Preventing IDOR vulnerabilities
XXE:- What are XXE vulnerabilities, and how do they occur
- Examples of code vulnerable to XXE
- Identifying and exploiting XXE vulnerabilities
- Various XXE prevention techniques
CREST CPSA/CRT-related Sections:
- Introduction to Web Attacks
- Intro to HTTP Verb Tampering
- Bypassing Basic Authentication
- Verb Tampering Prevention
- Intro to IDOR
- Identifying IDORs
- IDOR Prevention
- Intro to XXE
- Local File Disclosure
- XXE Prevention
CREST CCT APP-related Sections:
- All sections
CREST CCT INF-related Sections:
- All sections
This module is broken 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 your virtual machine.
The module is classified as "Medium" and assumes a working knowledge of the Linux command line and an understanding of information security fundamentals. The module also assumes a basic understanding of web applications and web requests and will build on this understanding to teach how these vulnerabilities work and how to exploit them.
In addition to the above, a firm grasp of the following modules can be considered as prerequisites for the successful completion of this module:
- Web Requests
- Introduction to Web Applications
- Using Web Proxies
- Linux Fundamentals
- Introduction to Bash Scripting
Sections
18 sections - 10 Interactive
| # | Group | Type | Title |
|---|---|---|---|
| 1 | Introduction | theory | Introduction to Web Attacks |
| 2 | HTTP Verb Tampering | theory | Intro to HTTP Verb Tampering |
| 3 | interactive | Bypassing Basic Authentication | |
| 4 | interactive | Bypassing Security Filters | |
| 5 | theory | Verb Tampering Prevention | |
| 6 | Insecure Direct Object References (IDOR) | theory | Intro to IDOR |
| 7 | theory | Identifying IDORs | |
| 8 | interactive | Mass IDOR Enumeration | |
| 9 | interactive | Bypassing Encoded References | |
| 10 | interactive | IDOR in Insecure APIs | |
| 11 | interactive | Chaining IDOR Vulnerabilities | |
| 12 | theory | IDOR Prevention | |
| 13 | XML External Entity (XXE) Injection | theory | Intro to XXE |
| 14 | interactive | Local File Disclosure | |
| 15 | interactive | Advanced File Disclosure | |
| 16 | interactive | Blind Data Exfiltration | |
| 17 | theory | XXE Prevention | |
| 18 | Skills Assessment | interactive | Web Attacks - Skills Assessment |
Conclusion
Congratulations on finishing the Web Attacks modules. We hope you can now exploit all of the vulnerabilities shown in this module and utilize the various attack techniques for different situations you may face during your web application penetration testing engagements.
Module Key Takeaways
- Able to identify and exploit HTTP Verb Tampering vulnerabilities
- Can bypass some security filters with HTTP Verb Tampering attacks
- Able to identify and exploit IDOR vulnerabilities
- Can bypass encoded/hashed object references
- Able to chain multiple IDOR vulnerabilities to escalate user privileges
- Able to identify and exploit XXE vulnerabilities to read local files
- Can use advanced techniques to read local files with XXE
- Can use OOB data exfiltration to read local files with XXE
- Can suggest recommendations to patch HTTP Verb Tampering, IDOR, and XXE vulnerabilities
Try to repeat all of what you learned and do all of the examples and exercises in various ways to further reinforce the topics.