Web App Pen Testing

How an authorised web application test runs, start to finish

A web application penetration test is an authorised, time-boxed attempt to find security weaknesses before real attackers do. Good tests follow a method, such as the OWASP Web Security Testing Guide (WSTG), stay inside an agreed scope, and end with a clear report that developers can act on.

Intermediate · 6 steps

MethodologyOWASP WSTG
Engagement modelPTES phases
Main toolIntercepting proxy (Burp Suite, OWASP ZAP)
Severity scoringCVSS v4.0
Must have firstWritten authorisation + scope
TypesBlack, grey, white box

Step by step

  1. Scope and rules of engagement Permission comes first

    Before any testing, the client and tester agree in writing on what may be tested (the staging web app and its API), what is off limits (production, the payment provider), testing dates, test accounts, and who to call if something breaks. Testing without this is illegal in most countries.

  2. Recon and mapping Understand the application

    With traffic flowing through Burp Suite, the tester uses the app like a normal user, clicking every feature with both test accounts. Burp builds a site map of every page, API endpoint and parameter, which becomes the list of things to test.

  3. Authentication and sessions WSTG-ATHN and WSTG-SESS

    The tester checks login and session handling: is there brute-force protection, does logout really end the session, are cookies flagged correctly, can a password reset link be reused? Each check maps to a WSTG test case.

  4. Authorization and business logic WSTG-ATHZ and WSTG-BUSL

    The most common serious findings are access-control bugs. Logged in as customer A, the tester requests customer B's order by changing its ID (both are test accounts). The API returns it. The tester also tries a negative quantity at checkout to see if the total goes down.

  5. Input handling WSTG-INPV

    Every parameter from the site map is tested for injection and output-encoding problems, using harmless probes and Burp's scanner. A single quote in the search box returns a database error, a sign of possible SQL injection that the tester confirms carefully without touching real data.

  6. Report and retest The part the client pays for

    Each finding is written up with severity (CVSS), affected endpoint, impact, steps to reproduce and a recommended fix, plus an executive summary for management. After the developers fix the issues, the tester retests and confirms they are closed.

Best practices

More in Penetration Testing.