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
| Methodology | OWASP WSTG |
|---|---|
| Engagement model | PTES phases |
| Main tool | Intercepting proxy (Burp Suite, OWASP ZAP) |
| Severity scoring | CVSS v4.0 |
| Must have first | Written authorisation + scope |
| Types | Black, grey, white box |
Step by step
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.
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.
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.
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.
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.
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
- Never test anything without written permission that names the targets and dates
- Test a staging environment with test data whenever possible
- Follow a checklist (OWASP WSTG) so coverage doesn't depend on memory
- Prove impact safely: read your own test data, never real customers' data
- Report clearly: what, where, impact, how to reproduce, and how to fix
More in Penetration Testing.
Packets
| No. | Time | Source | Destination | Protocol | Info | Size |
|---|