Environmental Setup and Traffic Interception

Environmental Setup and Traffic Interception

To hunt for bugs efficiently, you’ll need a well-configured environment. This chapter guides you through setting up your hacking environment for web applications, focusing on configuring your browser to work with Burp Suite, a powerful web proxy that allows you to view and alter HTTP traffic.


Choosing an Operating System (OS)

Your choice of OS can limit the hacking tools available.

If you use another OS, you may need to learn different tools, but you can still follow the core concepts of this guide.


Setting Up the Essentials: Browser and Proxy

The Web Proxy

A proxy is software that sits between a client and a server. In hacking, it sits between your browser (client) and the web servers, acting as an intermediary to intercept and inspect all traffic.

$$\text{Browser} \longleftrightarrow \text{Proxy} \longleftrightarrow \text{Server}$$

Using a proxy like Burp Suite or Zed Attack Proxy (ZAP) is essential because it allows you to:

Example: You intercept a GET request to /emails/USER_ID that also contains a user\_id cookie. You can modify the USER_ID in both the URL and the cookie to another user’s ID to test for an Insecure Direct Object Reference (IDOR) vulnerability.

Setting Up Burp Suite and Firefox

Burp Suite is the most popular web proxy among bug bounty hunters. You can choose between the Community version (free, limited Intruder) and the Professional version (paid, includes a vulnerability scanner and full Intruder).

1. Configure the Browser to Use the Proxy

You need to tell your browser to route its traffic through Burp Suite.

  1. Launch Firefox (recommended for simple setup).
  2. Go to Preferences ➡️ General ➡️ Network Settings.
  3. Select Manual proxy configuration.
  4. Enter the IP address 127.0.0.1 (the localhost IP, identifying your current machine) and port 8080 for all protocol types (HTTP, SSL, FTP, etc.).
  5. Click OK. This tells Firefox to route all traffic through the service running on your machine at port 8080 (where Burp runs by default).

2. Install Burp’s CA Certificate for HTTPS

Since Burp is acting as a “man-in-the-middle” to intercept encrypted HTTPS traffic, the browser will not trust it unless you install its Certificate Authority (CA) certificate.

  1. With Burp open and running, and your Firefox proxy settings set to 127.0.0.1:8080, navigate to http://burp/ in Firefox.
  2. Click CA Certificate at the top right to download the certificate file.
  3. In Firefox, go to Preferences ➡️ Privacy & Security ➡️ Certificates ➡️ View Certificates ➡️ Authorities.
  4. Click Import and select the file you just saved.
  5. In the dialog, select Trust this CA to identify websites.
  6. Restart Firefox.

You can now intercept both HTTP and HTTPS traffic.

Testing the Setup

  1. In Burp, go to the Proxy tab and ensure Intercept is off is toggled to read Intercept is on.
  2. In Firefox, visit a site like https://www.google.com/.
  3. You should immediately see the request appear in Burp’s main proxy window. Click Forward to send the request to the server.
  4. If you see the request and the website loads, your setup is correct.

Using Burp Suite Features

Burp Suite includes a variety of specialized tools (modules) that streamline the hacking process:

The Proxy

This is the central module for intercepting and modifying traffic.

The Repeater

The Repeater is the tool you’ll use most often for manual testing and exploitation.

The Intruder

The Intruder automates request sending, making it useful for high-volume, repetitive attacks. (The Community version is limited).

The Decoder

The Decoder is used to encode and decode data found in requests and responses.

The Comparer

The Comparer is used to compare two requests or two responses.


A Final Note on… Taking Notes

Organizational skills are critical for success in bug bounties. Information can quickly become hard to manage, especially when working on targets with large scopes.

Good notes help you:

Tips for Organization:

Exit mobile version