QA Interview Hub · Knowledge base · Quizzes · Українська

Penetration Testing › Tools and automation

Burp and ZAP at work: from an intercepted request to a confirmed finding

Working in Burp or ZAP is a repeatable five-step process: scope, a walk, an interesting request, one changed parameter, evidence. Repeater changes it (in ZAP, the manual request editor). The walk is done as each role separately, and the request picked has an identifier or filter. Intruder or Fuzzer is for lists of values only, at a speed the environment can take. A human judges the logic, not the scanner.

Pentest · Tools

Burp is installed, the browser is set up. Where do you start without drowning in hundreds of requests?

The first run of a proxy is scary: the history grows every second, with hundreds of requests to analytics, fonts and CDNs. A pentester works in order, and the order is the same for Burp Suite and ZAP. It turns "I click and watch" into a repeatable process with evidence.

Mechanism: five steps.

The working loop in a proxy

1 Put only targets in scope2 Walk the app as each role3 Find a request in history4 Change and replay (Repeater)5 Save evidence and impact
Figure 1. The same loop in Burp and ZAP: scope, walk, choose, verify, evidence.
  • Scope. In Burp you set the target scope and stop logging outside it, in ZAP you set a context. Otherwise the proxy collects traffic of third-party services and active checks may hit a host you have no permission for. ZAP has modes: Safe, Protected (attacks only URLs in scope), Standard, ATTACK. For learning, Protected is handier;
  • Walk. Use the application in the browser as each role separately: the history and the site map fill themselves;
  • An interesting request. Pick the ones carrying an identifier, a filter, a URL, a file or a role, because vulnerabilities usually live there;
  • Repeater / Manual Request Editor. Change one parameter at a time and compare the response. For a list of values use Intruder (in ZAP the Fuzzer);
  • Evidence. Save the request and the response, record the impact minimally: without dumping other people's data.

Before → after example in Juice Shop. In the training shop a basket is requested as GET /rest/basket/6 with the user's token. Hypothesis: the server checks only the token, not whose basket it is.

GET /rest/basket/6 HTTP/1.1
Host: localhost:3000
Authorization: Bearer eyJ...

Change 6 to 1 in Repeater and send. If someone else's basket comes back, it is an IDOR (horizontal escalation). A beginner's mistake is to launch Intruder over thousands of ids at once: Repeater proves the same thing in two requests and the enumeration is redundant.

A real case. In 2022 Optus suffered a customer data breach. The Australian regulator ACMA took Optus to court for failing to protect customers' personal information from unauthorised access (Optus said it would defend the case). According to press reports, an API endpoint had an access control flaw: a code change weakened the check, and the fix never reached a forgotten subdomain. This is an example of why APIs are tested directly and not only through the interface.

Limits. The Burp scanner or the ZAP active scan do not replace this loop: they do not know that "someone else's basket" is a violation because they do not understand the logic. The tool helps you get there, the conclusion is human.

Common mistakes:

  • not setting a scope and leaving interception on: the application "hangs" on each request and third-party services land in the log;
  • not configuring authentication: the test sees only the public part;
  • changing several parameters at once and not knowing which one changed the response;
  • running an active scan or Intruder at maximum speed against production.

Check yourself

In Repeater, with a changed id, you got 200 with an empty body {}. Is that an IDOR?

Answer

Not necessarily. An empty body can mean the object exists but has no data, or that the server filtered the fields. Compare with an existing id of another user where data exists, and check the code, length and fields of the response.

In an interview. Junior: I add targets to the scope, walk through the application, change one parameter at a time in Repeater and save the request and response as evidence. Middle/Senior: The tool only helps: I check logic by hand with two accounts, and use Intruder or a fuzzer where a list of values is needed, at a speed the environment can bear.

More articles in this chapter