Skip to main contentSkip to main content
Room Banner
Back to all walkthroughs
Room Icon

WAF: Exploitation Techniques

Premium room

Learn to bypass Web Application Firewalls using practical evasion techniques.

medium

60 min

2,767

User profile photo.
User profile photo.
User profile photo.

To access material, start machines and answer questions login.

Set up your virtual environment

To successfully complete this room, you'll need to set up your virtual environment. This involves starting both your AttackBox (if you're not using your VPN) and Target Machines, ensuring you're equipped with the necessary tools and access to tackle the challenges ahead.
Attacker machine
Status:Off
Lab machine
Status:Off

“WAF bypass” essentially means discovering an input that allows a malicious payload to reach the application despite the protections implemented by the web application (WAF). 

The Core Rule Set (CRS) (opens in new tab) is a collection of generic detection rules for web application firewalls designed to identify common web attacks. It primarily uses pattern and signature-based matching and performs normalisation steps to identify malicious inputs. This approach makes CRS effective in blocking many known payloads. However, it can be evaded when an application and the WAF normalise or parse input differently, or when attackers use encoding techniques.

The attached to this task contains a Blog application that is protected by ModSecurity and is configured with the CRS. Additionally, the demonstrations and exercises also leverage the same setup. The Blog application will be used to complete all tasks in this room. You will need to use the AttackBox to start an server for specific tasks, or utilise the software and command-line tools that are installed on it.

Answer the questions below

Read the above.