Web Application Penetration Testing: Scope and Preparation
Learn what a web application penetration test covers, how to scope user roles and workflows, and what evidence to expect in the report.
Web application penetration testing examines whether someone can use your website or application to access data, change records or perform actions they should not be allowed to. It combines technical checks with an understanding of how your service works.
A useful assessment follows the journeys that matter to the business: creating accounts, inviting colleagues, uploading documents, approving requests and retrieving sensitive information. A count of pages gives only a partial view of the effort involved.
What does a web application penetration test cover?
The web application test scope should identify the applications, supporting APIs, user roles, tenants and environments included. Testing can examine public functions and the different levels of access available after login.
| Area | Questions the assessment should address |
|---|---|
| Authentication and recovery | Can login, MFA enrolment or account recovery be bypassed or misused? |
| Authorisation | Can one user read another user's records or reach restricted functions? |
| Sessions | Do login, logout, expiry and changes of privilege behave securely? |
| Input and output | Can submitted data become database instructions, browser content or operating system commands? |
| Files and integrations | Are uploads, downloads, callbacks and connected services constrained appropriately? |
| Business rules | Can users skip approvals, repeat transactions or manipulate prices and account states? |
OWASP WSTG offers testing guidance. OWASP ASVS provides security verification requirements that can help define the depth of an engagement. Agree the applicable version, requirements and exclusions before treating either as a coverage commitment.
Why authenticated testing matters
An assessment of the login page cannot establish whether customer accounts are separated correctly. Provide representative users for each relevant role and enough records to exercise the important workflows.
For a service with several customers, two tenants allow the tester to examine isolation. Within a tenant, different users help distinguish ownership checks from role permissions. Include pending invitations, disabled accounts and read-only users where those states affect access.
For example, a support agent might be entitled to see an invoice but have no permission to change payment details. Testing should check those actions separately, including the underlying requests that the interface generates.
How to prepare the environment
Use a stable build and record the version under assessment. A staging environment can support controlled testing when it represents the production architecture, settings and integrations closely enough. Record any differences that limit the conclusions.
Prepare:
- Working accounts, MFA arrangements and representative test data.
- A role and permission matrix showing intended access.
- API documentation and an outline of important integrations.
- Agreed handling of emails, payments, exports and destructive actions.
- Named technical contacts and a route for urgent findings.
Test the access before the engagement starts. Empty accounts and unavailable approval steps can prevent a tester from reaching the functions that most need examination.
What should the report contain?
Expect a clear record of scope, dates, access, approach and limitations. Each confirmed finding should explain its location, observed behaviour, business impact and recommended remediation, supported by evidence suitable for the team making the change.
Severity needs context. A read-only data exposure affecting customer information may be more urgent than a configuration weakness on an isolated test component. Record the reasoning and assign an owner for each issue.
When should web applications be tested?
Plan independent assessment around exposure and meaningful change: a new portal, a new authorisation model, a payment integration or a major release. Routine automated checks can help detect supported classes of regression between assessments.
Retesting should verify the reported fixes and any agreed related paths. It does not automatically extend the original assessment to new features. Keep the tested build, remediation record and remaining scope visible when sharing assurance with customers.
Related resources
- API Penetration Testing: Endpoints, Permissions and Workflows
- Web Application and API Penetration Test Preparation Checklist
- Penetration Test vs Secure Code Review: Which Do You Need?
Read our Testing methodology to discuss coverage, or Book a demo with the systems and objectives you have in mind.