LESSON 34 · INTERMEDIATE11 min read

Web Recon, Proxy Interception, and Burp Suite

Build a complete map of a web application, intercept traffic with Burp Suite, and turn observations into a prioritised, repeatable test plan.

OWASP Top 10 · MITRE ATT&CK · NIST CSF 2.0Free to readModule 8 of 14
YOUR NEXT SMALL WINS

By the end, you’ll be able to…

  • Map an application's hosts, routes, parameters, roles, and technologies before sending attack payloads.
  • Configure Burp Suite as an intercepting proxy and keep all traffic inside a defined scope.
  • Use HTTP history, Repeater, Intruder, Decoder, Comparer, and match/replace rules to test specific hypotheses.
  • Combine Burp with ffuf, gobuster, whatweb, nikto, and curl to produce a written site map and test plan.

01Reconnaissance Is Mapping, Not Scanning

Web reconnaissance is the process of building an accurate model of an application before you attack it. You want to know which hosts exist, which paths respond, which parameters change state, which technologies sit behind the edge, and where authentication begins. A tester who skips this step ends up firing payloads at a login page while missing the forgotten export endpoint that returns every invoice as a CSV file.

Recon has passive and active phases. Passive recon uses public information: search results, certificate transparency, job adverts, public code, documentation, and the application's own robots.txt, sitemap.xml, and JavaScript bundles. Active recon sends requests to the target: directory discovery, technology fingerprinting, parameter fuzzing, and error probing. Active recon is only acceptable on systems you own or have written permission to test, normally a local lab such as DVWA, OWASP Juice Shop, or PortSwigger Web Security Academy.

A useful map records more than URLs. For each endpoint, note the method, authentication requirement, roles that can reach it, accepted content types, parameters, and whether it changes state. Note where the application talks to other services: payment providers, email, object storage, and internal APIs. Those edges become SSRF, webhook, and access-control tests later. Also record what you cannot see, such as mobile clients, partner integrations, and scheduled jobs, because those gaps shape the limits of your report.

02Intercepting Traffic with Burp Suite

Burp Suite is a proxy that sits between your browser and the target. The browser is configured to send HTTP and HTTPS traffic to Burp, Burp records the request, optionally lets you edit it, forwards it to the server, and records the response. This gives you one place to inspect every request, replay any of them, and change headers, bodies, and paths without writing a client.

Start with a dedicated browser profile so your personal cookies and accounts never mix with lab traffic. Set the proxy listener to 127.0.0.1:8080 and bind it to loopback only, so other machines cannot use it. To read HTTPS you must install Burp's CA certificate in that browser profile; visit http://burp while proxied, download the certificate, and import it as a trusted authority. Treat that certificate as sensitive: it can sign certificates for any host from the perspective of that profile.

Configure scope early. In Target, add the lab origin, for example http://127.0.0.1:3000, and enable advanced scope control so you can include only the paths you are authorised to test. Turn on the option that keeps out-of-scope items out of Proxy history, and add a TLS pass-through rule for any host you must not intercept, such as a payment provider or your identity provider. Then turn Intercept off. Intercept is useful for a single crafted request, but leaving it on makes normal browsing painfully slow and teaches you nothing that HTTP history will not show you.

burp-setup.txtPlain text
BURP SETUP CHECKLIST (local lab only)1. Proxy > Proxy settings: listener 127.0.0.1:8080, loopback only.2. Use a dedicated browser profile. Set HTTP and HTTPS proxy to 127.0.0.1:8080.3. Visit http://burp, download the CA certificate, import it into that profile.4. Target > Scope: add http://127.0.0.1:3000 with advanced scope control.5. Proxy settings: keep out-of-scope items out of Proxy history.6. Add a TLS pass-through rule for any third party you must not inspect.7. Turn Intercept off and browse the application normally.WHY EACH STEP MATTERS- Loopback: no other machine can use your proxy as an open relay.- Separate profile: no personal sessions, cookies, or credentials in scope.- CA certificate: HTTPS bodies become readable; never share the key material.- Scope: filters history, site map, and scanner targets to authorised hosts.- Pass-through: avoids breaking third-party logins and payment flows.- Intercept off: history still records everything, without blocking the browser.

03HTTP History, Site Map, and Notes

Proxy history is the raw material of a web test. Sort by URL, filter by MIME type, and look for the requests that carry identity, money, files, or administrative actions. A login response that returns a token, an endpoint that accepts a JSON body with a role field, a download that takes a filename, and an admin route discovered in a JavaScript bundle are all more interesting than a hundred static image requests. Use the comment and highlight features to mark them as you go.

Build the site map in parallel. Burp's site map groups requests by host and path, which exposes sibling endpoints that the UI never links to. Compare the map for an anonymous session, a normal user, and an administrator. Differences reveal hidden routes, feature flags, and endpoints that rely on the client to hide them. Search history for parameter names such as role, tenant, admin, debug, redirect, url, file, and callback; those names are hints about how the server uses input.

Read the JavaScript. Modern single-page applications ship route tables, API base URLs, feature flags, and sometimes test credentials in bundles. Use the browser's developer tools or a beautifier to inspect them, then add every discovered route to Burp's scope and to your notes. This is still recon, not exploitation: you are learning what exists so that later tests are targeted instead of random.

site-map-notes.txtPlain text
HOST: 127.0.0.1:3000   TARGET: OWASP Juice Shop (local container)PATH                              METHOD  AUTH  STATE  NOTES/                                 GET     no    no     SPA shell, bundles under /main.js/rest/user/login                  POST    no    yes    JSON; token returned in body/rest/basket/1                    GET     yes   no     numeric basket id in path; try 2/rest/products/search             GET     no    no     q is reflected in JSON; XSS/SQLi test/api/Users                        GET     yes   no     full user objects; check field exposure/rest/admin/application-configuration  GET  yes  no   admin data; test low-privilege token/rest/user/reset-password         POST    no    yes    email + security answer; rate limit?/file-upload                      POST    yes   yes    multipart; extension and MIME checksOPEN QUESTIONS- Does /rest/basket/2 belong to another user?- Is the token in the login response a JWT? Which claims does it carry?- Are admin routes enforced server-side or only hidden in the UI?- What happens when q contains a quote, a script tag, or a very long string?

04Repeater, Intruder, Decoder, and Comparer

Repeater sends one request as many times as you like, with any edit, and shows the response beside it. This is the core manual-testing loop: change one variable, observe one difference, write down the result. Repeater is where you confirm a hypothesis from history, such as whether removing a cookie changes authorisation, whether a JSON field is mass-assignable, or whether a quote in a parameter produces a database error. Right-click any history item and choose Send to Repeater.

Intruder automates the same request across many payloads. Sniper places one payload set into one position at a time, which suits testing a single parameter with a wordlist. Battering ram puts the same value into every position, useful for matching tokens. Pitchfork uses several payload sets in parallel, one per position, which suits pairs of username and password. Cluster bomb tries every combination, which grows exponentially and is usually the wrong choice for a large list.

Intruder is powerful and easy to misuse. Community Edition deliberately throttles request speed, so large attacks are slow; that limitation is a useful reminder to test a hypothesis rather than brute force blindly. Configure a resource pool with low concurrency, add delays, and watch for account lockout, rate limiting, and alerts. A test that locks the lab account or trips the WAF has taught you something about controls, but it has also contaminated the test. Record the request count and stop when the question is answered.

Decoder converts between URL, HTML, base64, hex, and other encodings, which is essential when a parameter is encoded twice or when you need to read a token. Comparer shows a word-level or byte-level diff between two responses, so you can see the one field that changed when you altered a role or an object ID. Together these tools support a disciplined loop: observe, hypothesise, replay, compare, document.

burp-workflow.txtPlain text
MANUAL TESTING LOOP1. OBSERVE   Proxy history: find a request that carries identity or state.   Example: GET /rest/basket/1 with Cookie: token=...2. HYPOTHESISE   The server may not check that basket 1 belongs to the caller.3. REPLAY   Send to Repeater. Change only the path to /rest/basket/2.   Keep every header and cookie identical.4. COMPARE   Send both responses to Comparer. Look for a different owner,   basket contents, or a 200 where a 403 was expected.5. RECORD   Request, expected result, observed result, impact, confidence.   Redact the session token before sharing the note.INTRUDER ATTACK TYPES- Sniper:        one payload set, one position at a time.- Battering ram: one payload set, same value in all positions.- Pitchfork:     several payload sets, advanced in parallel.- Cluster bomb:  every combination of every payload set.

05Match/Replace, Session Handling, and Scanner Caveats

Match and replace rules rewrite requests or responses as they pass through the proxy. A common lab use is adding or removing a header to see how the server reacts, or replacing a user agent so requests look consistent. Rules can also rewrite response bodies, which is handy for testing how a client handles a modified server response. Keep rules narrow and documented, and disable them when the experiment ends; a forgotten global rule silently changes every later test.

Session handling rules keep an authenticated test session alive. A macro can replay the login request, extract a fresh token, and update the cookie or header automatically. This matters when tokens expire quickly or when you are testing many endpoints in sequence. Configure the macro to run only for in-scope tools and URLs, and verify it with a request that should be authenticated. A broken macro produces misleading 401 responses that look like authorisation failures.

Burp Scanner, available in Burp Suite Professional, automates crawling and checks for many common issues. Treat it as one input, not an oracle. Scanners are good at finding reflected parameters, missing headers, and some injection points; they are poor at multi-step business logic, race conditions, and authorisation bugs that require two accounts. They also produce false positives and can miss issues behind authentication if the crawl is incomplete. Every scanner finding needs manual confirmation and a reproducible request before it goes in a report.

06Command-Line Recon and a Written Test Plan

Command-line tools are fast, scriptable, and easy to route through Burp. whatweb fingerprints frameworks, servers, and JavaScript libraries. curl captures exact headers and bodies and is ideal for reproducing a request outside the browser. gobuster and ffuf discover paths and parameters from wordlists. nikto runs a set of well-known server and file checks. All of them send traffic to the target, so the same authorisation rule applies: lab only, or written permission with a defined request rate.

Directory discovery is not simply running a big list. Start with a short list of likely names, filter out the application's custom 404 page by response size or a distinguishing string, and verify every hit manually. ffuf's autocalibration option learns the baseline response and reduces noise. Set a modest rate and concurrency, add the session cookie when testing authenticated areas, and route through the proxy with -x so the requests appear in Burp history alongside everything else.

Finish recon with a test plan, not a folder of screenshots. Group endpoints by function: authentication, account, catalogue, checkout, admin, uploads, integrations. For each group, list the tests you will run: authorisation with two accounts, injection in each parameter, XSS in each reflection, CSRF on each state change, file handling, rate limits, and business rules. Rank by potential impact and by how much you already understand. The plan is a living document; update it as the map improves.

recon-commands.shShell
# All targets below are local lab instances.TARGET="http://127.0.0.1:3000"# 1. Fingerprint the stack (safe, low volume).whatweb -a 3 "$TARGET"# 2. Check well-known files before brute forcing anything.for path in /robots.txt /sitemap.xml /.well-known/security.txt /api /swagger.json; do  curl -sS -o /dev/null -w "%{http_code} %{size_download} $path\n" "$TARGET$path"done# 3. Capture exact headers and cookies for a login request.curl -i -sS -X POST "$TARGET/rest/user/login" \  -H "Content-Type: application/json" \  --data '{"email":"student@lab.test","password":"labpass"}' \  -c cookies.txt# 4. Reuse the session without the browser.curl -sS -b cookies.txt "$TARGET/rest/basket/1"# 5. Directory discovery with a small list, low rate, proxy to Burp.ffuf -u "$TARGET/FUZZ" \  -w /usr/share/seclists/Discovery/Web-Content/raft-small-words.txt \  -mc 200,204,301,302,401,403 -ac -rate 20 -t 5 \  -x http://127.0.0.1:8080# 6. A second opinion on paths and server files.gobuster dir -u "$TARGET" -w /usr/share/seclists/Discovery/Web-Content/common.txt \  -t 10 --exclude-length 0nikto -h "$TARGET" -maxtime 5m
Outputstdout
200 4123 /robots.txt
404 731 /sitemap.xml
200 88 /api
200 2140 /swagger.json
HTTP/1.1 200 OK
content-type: application/json
set-cookie: token=...; Path=/; HttpOnly; SameSite=Lax
{"authentication":{"token":"..."}}

07Turning Recon into a Prioritised Plan

A good test plan is short enough to follow and specific enough to reproduce. Start with the highest-impact surfaces: authentication, password reset, payment, refunds, file export, admin functions, and anything that accepts a URL or a file. Then add breadth: every parameter that reaches a database, an HTML page, a shell, or a template. Finally add the boring checks that often pay: security headers, cookie flags, error handling, CORS, and rate limits.

Estimate the evidence you need for each item. An authorisation test needs two accounts and a recorded request pair. An injection test needs a baseline response and a controlled payload that changes behaviour. A business-logic test needs a description of the intended rule and a sequence that breaks it. If you cannot describe the expected result before you send the request, you are not testing; you are browsing.

Keep a running log with timestamps, request identifiers, and short notes. When you later write the report, the log is the difference between a vague claim and a reproducible finding. It also protects you: if a test causes an unexpected side effect, the log shows exactly what was sent and when, which is the first thing an incident responder will ask for.

web-test-plan.mdMarkdown
# Web Test Plan: Local Shop Lab## Scopehttp://127.0.0.1:3000, synthetic users only, local container.Out of scope: payment sandbox, email delivery, host operating system.## Priority 1: money and identity- [ ] Basket and order objects: change numeric IDs with user B's token.- [ ] Refund endpoint: negative amount, duplicate refund, other user's order.- [ ] Login: SQL injection in email, rate limit, user enumeration.- [ ] Password reset: token reuse, expiry, host header poisoning.## Priority 2: data exposure- [ ] /api/Users: fields returned to a normal user vs an admin.- [ ] Product search: reflected XSS and SQL error behaviour.- [ ] Admin configuration endpoint with a low-privilege token.## Priority 3: files and integrations- [ ] Upload: extension, MIME, magic bytes, stored location, execution.- [ ] Image proxy or webhook URL: SSRF to 127.0.0.1 and metadata range.- [ ] Export: filename parameter and path traversal.## Method notes- Two accounts (A and B), one admin, one anonymous session.- Every finding needs a raw request, a response, and a retest step.- Stop and record if the lab shows signs of real external traffic.
LET IT CLICK

The ideas worth keeping.

  • Recon builds a model of hosts, routes, roles, parameters, and integrations; scanning without a model wastes time.
  • Burp's value comes from scope, history, Repeater, and disciplined comparison, not from leaving Intercept on.
  • Intruder is for answering a specific question with a bounded payload set, not for indiscriminate brute force.
  • A written test plan with expected results turns observations into reproducible, reportable findings.
TURN UNDERSTANDING INTO SOMETHING YOU CAN DO

Make it yours.

Type and test your code right here in the interactive workspace. Run your solution, check the output, and compare with the worked guide when ready.

01

Exercise 1: Cut through a custom 404 page

A lab application returns HTTP 200 with a 4,200-byte HTML page for every unknown path. ffuf reports thousands of hits and the result is useless. Describe how you would filter the noise, confirm real endpoints, and avoid hammering the lab.

Explore a worked solution
one_possible_solution.mdCybersecurity
Capture a request to a random path such as /this-path-does-not-exist-12345 and record the status code, body size, and a stable string from the page. Re-run ffuf with a small wordlist, low concurrency, and autocalibration (-ac), or filter the baseline size with -fs 4200. Match only the status codes that matter and exclude the custom 404 signature with -fr. Verify every surviving hit manually in Repeater or curl, because a different size does not prove a real endpoint. Add -rate 10 and -t 5, route through Burp with -x, and stop once the wordlist has answered the question.

Content discovery tools measure differences, and a soft 404 makes every path look different. Baseline the noise, filter it explicitly, then confirm hits by hand. Volume is not coverage.

02

Exercise 2: Plan an authenticated authorisation test

You have a shop with user A, user B, and an administrator. Write the exact sequence you would follow to test whether basket and order endpoints enforce object-level authorisation, including what you record and what result proves a finding.

Explore a worked solution
one_possible_solution.mdCybersecurity
Create basket 101 as user A and add one item. Record A's token and the raw GET /rest/basket/101 request. Log in as B, keep every header identical except the token, and request /rest/basket/101. Expected: 403 or 404 with no basket data. Then repeat with B's own basket to prove the session works, and with no token to prove authentication is required. Try the same object ID in the body of a checkout request, not just the path. For orders, test /orders/101 and any export or invoice route. Record request, expected, observed, and impact. A 200 containing A's items or a successful checkout proves a finding; log the denied attempts as evidence of correct behaviour.

A valid negative control (B's own basket returns 200) separates an authorisation failure from a broken session. Testing only the path misses authorisation checks that live in the body or a downstream service.

A SMALL QUESTION. A USEFUL NEXT STEP.

What stayed with you?

Check the ideas while they’re fresh. Your answers stay in this page and feedback appears as you go.

A LITTLE ACTIVE RECALL0 / 3 answered
01What is the main purpose of Burp Repeater?
02Which Intruder attack type advances several payload sets in parallel, one per position?
03Why should Intercept usually be turned off during normal browsing?

Keep exploring.

The official references behind this lesson, when you want a second angle or the full details.

One lesson closer.

Reading is a start. Trying it yourself makes the connection.

Completion is saved in this browser. It records reading and hands-on practice progress.