Penetration testing of web applications: scope, process, and tools
November 9, 2026 · by Pentevo
Penetration testing of web applications actively examines an application's security controls to find and validate weaknesses. This follows OWASP's definition of web application security testing. A useful assessment combines agreed scope, controlled testing, and findings that developers can act on. Scanners can support that work, but scanner output alone isn't a complete manual test.
What penetration testing of web applications covers
A web application test examines how the application handles users, data, and actions, not just whether its pages load securely. We recommend defining coverage around what the application does and who can use it.
OWASP groups testing into 12 categories, including information gathering, authentication, authorization, session management, input validation, business logic, client-side testing, and APIs. Authentication checks identity; authorization determines what an identified user can access or change.
The categories provide structure, but the application determines which scenarios matter. OWASP describes WSTG as an adaptable methodology, rather than a rigid checklist.
Applications, APIs, and user roles
Useful coverage includes public features, signed-in workflows, administrative functions, and the APIs behind them. Testing only the public landing pages leaves important behavior unexplored.
Different roles also need different test accounts. A customer, support agent, and administrator may use the same application with very different permissions. Separate accounts within the same role help test ownership boundaries, such as access to another customer's records.
Map workflows as well as pages. An order process might involve a browser interface, an API, a payment integration, and a staff approval screen. These connections help define meaningful test scenarios.
What the test does not automatically include
A web application test does not automatically assess the whole environment. Network infrastructure, cloud configuration, and Active Directory are distinct assessment areas unless explicitly included.
For example, an application hosted in the cloud may be in scope while the wider cloud account is not. Similarly, testing a sign-in feature does not automatically include assessing the identity infrastructure behind it.
Define scope and rules before testing starts
Scope identifies what the team will test. Rules of engagement define how testing may happen. NIST defines rules of engagement as guidelines and constraints established beforehand that authorize defined testing activities.
Prepare a scope document covering:
- Applications and environments: domains, subdomains, production systems, and test environments.
- APIs: endpoints, available documentation, authentication methods, and relevant versions.
- User roles: accounts with representative permissions and ownership boundaries.
- Important workflows: account recovery, purchases, approvals, exports, and administrative actions.
- Integrations: payment services, identity providers, and other connected systems.
- Hosted components: which cloud-hosted resources are included and where responsibility changes.
- Exclusions: systems, techniques, or actions that the team must not test.
Third-party connections deserve explicit boundaries. Permission to test your application should not be treated as permission to probe a connected provider's systems.
NIST's technical testing guidance supports advance planning and includes a rules-of-engagement template. Use that structure to record authorized targets, permitted techniques, escalation procedures, and sensitive-data handling.
Confirm access, boundaries, and communication
Before testing begins, confirm that credentials work and that accounts can reach the intended features. Include the agreed multi-factor authentication process and representative test data. Missing access should become a recorded coverage limitation, not an assumed pass.
Agree these operational details with the system owner:
- Whether testing runs against staging, production, or both.
- Testing windows, request-rate limits, and prohibited disruptive actions.
- Emergency contacts and conditions for pausing the test.
- Where evidence is stored, who receives it, and how it is removed afterward.
- Communication channels, time-zone overlap, and progress-update arrangements.
If staging is the target, record important differences from production. Different permissions, integrations, or configuration can change what the assessment covers.
How the testing process works
The engagement moves from authorization and application mapping to active testing, analysis, reporting, remediation, and retesting. NIST's assessment guidance connects planning and testing with analysis and mitigation, rather than treating discovery as the endpoint.
Passive exploration and active testing
Passive exploration means learning how the application behaves during ordinary use. In OWASP's testing approach, this includes mapping functionality and access points such as requests, parameters, cookies, and APIs.
The tester follows workflows, identifies entry points, and observes how the application manages state. A useful map connects each important action to its role, interface, and supporting requests.
Here, passive exploration does not necessarily mean sending no traffic. Browsing a signed-in application still generates requests. The distinction is between understanding normal behavior and deliberately probing controls.
Active testing then examines those controls within the agreed boundaries. This can include checking role restrictions, session handling, input processing, and the sequence of business actions.
For example, a discount approval workflow needs more than input checks. Testing may examine whether the right role approves the change and whether the application enforces the required sequence.
Validation, remediation, and retesting
Validation establishes whether a suspected weakness is reproducible and what it could affect. A scanner alert, unusual response, or error message is a lead to investigate, not a finished finding.
Testers should use the least intrusive evidence needed to demonstrate the issue. They should distinguish observed behavior from assumptions and explain any limits on validation.
Findings then move to the people responsible for remediation. Developers need the affected feature, relevant role, conditions, reproducible steps, and evidence. Decision-makers need a clear explanation of potential impact. OWASP calls for findings to include impact and proposed mitigation.
Retesting checks whether agreed fixes resolve the reported issues. It should identify what was rechecked and whether related behavior needs further work. Retesting is not a fresh assessment of every feature unless that broader coverage is agreed.
Manual testing, scanners, and AI-assisted tools
Automation helps explore an application's attack surface and identify potential weaknesses. Human testing investigates context, exploitability, and behavior that needs a deeper understanding of the application.
OWASP distinguishes automated DAST from manual penetration testing. DAST, or dynamic application security testing, can crawl a running application and send varied test inputs, known as fuzzing. Manual testing can investigate integrations, business logic, and whether suspected weaknesses are exploitable.
Automation can assist with access-control checks, but coverage depends on the roles, states, and workflows it can reach. A successful crawl does not establish that every permission boundary was tested.
Free tools for a first pass
ZAP is a free, open-source web application testing tool. It can intercept, inspect, and modify messages between a browser and an application. OWASP's tools appendix describes support for automated scanning and manual testing.
Start with an authorized learning environment and use the tool to understand requests, responses, and application behavior. Active scanning needs agreed boundaries because it sends test traffic rather than simply observing normal use.
Check each tool's licence before commercial use. OWASP notes that some freely downloadable tools have commercial-use restrictions. Free access also does not remove the need for skills to configure tests and interpret results.
Where AI assistance fits
AI may assist with analysis, organizing observations, or parts of a testing workflow. That assistance does not establish complete coverage or make a finding reliable without validation.
Evaluate AI-assisted tools against practical controls: authorized targets, permitted actions, human review, and handling of client data. Credentials, session tokens, source code, and captured responses should follow the engagement's agreed data rules.
Controls should also limit unintended changes. An automated action that modifies records needs the same authorization and safeguards as a human tester's action.
At Pentevo, our AI-powered penetration-testing product is in beta, and pricing is not yet finalized. See the AI penetration testing guide for a closer explanation of the approach.
What a useful report should include
A useful report explains what was tested, what was found, why it matters, and what to do next. It should serve decision-makers and technical teams without forcing either group to interpret raw tool output.
Look for these deliverables:
- Executive summary: principal risks, affected business functions, and recommended priorities.
- Scope and coverage: tested assets, roles, workflows, exclusions, and access limitations.
- Technical findings: affected features, required conditions, and reproducible evidence.
- Impact assessment: the consequences supported by the observed behavior.
- Remediation guidance: a practical fix direction and relevant control improvements.
- Retest status: what was rechecked and the outcome, where retesting occurred.
This reflects OWASP's guidance to present impact and proposed mitigation. A report should also distinguish confirmed findings from observations that need further investigation.
Evidence must remain useful without exposing unnecessary sensitive data. Screenshots and request examples should support reproduction while limiting disclosure of credentials or customer information.
Turn findings into an action plan
Assign an owner to each finding and prioritize work by risk, exposure, and business context. A severity label helps sorting, but the explanation should show why the issue matters in this application.
For example, a weakness affecting another customer's records needs an explanation of the ownership boundary and affected operation. A generic label such as “access-control issue” gives developers too little direction.
Track each finding through remediation and verification. Keep a record of deferred issues, temporary mitigations, and accepted risks so unresolved work remains visible. Group related findings where a shared control failure needs a broader fix, rather than treating every affected page as an unrelated problem.
Choose an assessment that matches the application
Compare proposals by coverage and evidence, not just tool names or the promise of a long report. We recommend looking for clear commitments in these areas:
- Assets and roles: the interfaces, accounts, and permission boundaries included.
- APIs and workflows: how authenticated endpoints and business processes will be examined.
- Automation and manual work: what each contributes and where coverage may be limited.
- Validation: how suspected findings become supported technical conclusions.
- Reporting: the evidence, impact explanations, and remediation detail you will receive.
- Follow-up: whether remediation discussions and retesting are included.
Keep network and Active Directory testing as separate scope decisions. Shared hosting or authentication does not make them automatic extensions of an application test.
Treat WSTG as a methodology reference, not a compliance standard. For specific scenarios, use versioned references. OWASP lists WSTG v4.2 as available and v5.0 as in development.
If you're building the skills to understand testing and its findings, explore our free cybersecurity courses. No account is required to access the learning resources.
Prepare for the engagement
Create a draft inventory of the application, APIs, roles, and important workflows. Use it to agree test access, rules of engagement, report contents, and retesting before work starts.
To explore our beta testing product, contact us to request a demo.
Frequently asked questions
What is the methodology for network penetration testing?
Network testing typically involves defining scope, discovering assets and services, identifying weaknesses, validating agreed attack paths, and reporting remediation priorities. It examines network systems and connectivity rather than application workflows, roles, and APIs. It needs its own authorization and rules of engagement.
What does Active Directory penetration testing involve?
Active Directory testing assesses identity infrastructure, permissions, configuration, and related attack paths. It examines how accounts, groups, and trust relationships affect access. A web application may use Active Directory for sign-in, but testing that application does not automatically authorize testing the identity environment. The assessment needs explicit scope, suitable access, and agreed testing boundaries.
What AI tools for penetration testing were available in 2025?
For a historical comparison, separate AI-assisted analysis and workflow tools from conventional scanners and human-led services. Check archived product documentation to establish what was available then. Choose tools based on authorized targets, client-data handling, validation, and human oversight, not an AI label. OWASP's testing framework also distinguishes automated scanning from manual penetration testing.
How often should a web application be penetration tested?
There is no universal interval that suits every application. Set a cadence around the application's risk, exposure, and assurance needs. Meaningful feature changes, new integrations, revised permissions, or architecture changes are useful reasons to reconsider testing. Keep retesting of specific fixes separate from decisions about when the application needs another broader assessment.
Sources
- WSTG v4.2: Introduction and Objectives
- WSTG - Latest: Introduction
- Rules of Engagement (ROE) - Glossary
- SP 800-115, Technical Guide to Information Security Testing and Assessment
- WSTG - Latest: The Web Security Testing Framework
- ZAP – Getting Started
- WSTG: Testing Tools Resource
- Web Security Testing Guide
Related reading
Is ethical hacking legal in the United States? What permission really covers
Is ethical hacking legal in the United States? Understand authorization, DOJ policy and scope with a practical checklist for safer security testing.
SecurityVulnerability management platform: how to choose one that fits your team
Choose a vulnerability management platform by comparing asset coverage, prioritisation, remediation workflows, pricing, and proof-of-concept results.
SecurityAI agent security best practices: a practical plan for safer deployment
Apply AI agent security best practices with a deployment plan to limit access, test realistic threats, set approval rules and monitor activity.
SecurityAI cybersecurity courses: how to choose the right learning path
Compare AI cybersecurity courses by goal, prerequisites, hands-on practice and credentials, then choose a path that fits your next step.
Practice this hands-on
Pentevo Academy turns these concepts into guided lessons, videos and quizzes — free.
Start learning free