Skip to content

Web Attacks ​

FieldValue
Module ID134
DifficultyMedium
TierTier II
CategoryOffensive
Estimated Time2 days
Cubes Earned20
Experience Points760
Creators21y4d
Last Updated2021-10-01T00:00:00.000000Z
URLhttps://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

#GroupTypeTitle
1IntroductiontheoryIntroduction to Web Attacks
2HTTP Verb TamperingtheoryIntro to HTTP Verb Tampering
3interactiveBypassing Basic Authentication
4interactiveBypassing Security Filters
5theoryVerb Tampering Prevention
6Insecure Direct Object References (IDOR)theoryIntro to IDOR
7theoryIdentifying IDORs
8interactiveMass IDOR Enumeration
9interactiveBypassing Encoded References
10interactiveIDOR in Insecure APIs
11interactiveChaining IDOR Vulnerabilities
12theoryIDOR Prevention
13XML External Entity (XXE) InjectiontheoryIntro to XXE
14interactiveLocal File Disclosure
15interactiveAdvanced File Disclosure
16interactiveBlind Data Exfiltration
17theoryXXE Prevention
18Skills AssessmentinteractiveWeb 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.