How to Use the OWASP WSTG to Plan Web App Security Tests
Turn the OWASP Web Security Testing Guide into a reproducible test plan: define authorized scope, select scenarios for your application’s risks, pin the guide version and IDs, and record evidence, findings, and retests.
How to Use the OWASP WSTG to Plan Web App Security Tests
The OWASP Web Security Testing Guide (WSTG) is an open reference for assessing web applications and services. It is not a checklist that every team must execute from top to bottom or a certification standard. To create a useful, reviewable test plan, define the authorized scope and risks first, select relevant scenarios, then record the WSTG version and test IDs together with conditions, evidence, results, and remediation status.
This guide is for product security and QA practitioners and development teams planning internal or authorized external assessments. It does not replace exploit instructions for a specific flaw, tool installation guidance, or a compliance assessment. Testing a real system requires the owner’s explicit authorization and prior agreement on targets, timing, permitted techniques, contacts, and stop conditions.
What is the WSTG?
The WSTG is OWASP’s guide to testing web application and web service security. Its test areas provide objectives, methods, suggested tools and references, and remediation guidance. They cover configuration and deployment, identity, authentication, authorization, sessions, input handling, errors, cryptography, business logic, client-side features, and APIs.
Use it as a method and technique reference, adapting it to your threat model, development practices, and risk tolerance. It is not a rule that every scenario applies to every application. If you also need a catalog of requirements, consider the OWASP Application Security Verification Standard (ASVS). ASVS provides verifiable security requirements—closer to “what should be satisfied”—while WSTG scenarios focus more on “how to examine selected behavior.” Their purposes differ, so neither replaces the other.
Pin the version and cite stable identifiers
As of 2026-11-23, the OWASP project page says WSTG 5.0 is in development and offers 4.2 as a stable release. A plan or report that stores only a latest or stable link may later point to different content, making the test basis harder to reproduce. Choose the version before testing and record versioned scenario links. Include the version in test IDs when appropriate.
WSTG IDs identify a test area and number. An unversioned ID such as WSTG-INFO-02 can refer to evolving content. To identify the second Information Gathering scenario in version 4.2, write WSTG-v42-INFO-02. Link directly to the versioned scenario. OWASP intends versioned links to remain stable, but does not guarantee long-term availability of its domain.
| Plan record | Example | Why it matters |
|---|---|---|
| Baseline version | WSTG 4.2 or another team-approved release | Lets reviewers consult the same test description. |
| Test identifier | WSTG-v42-INFO-02 | Connects reports, tickets, and retests to one scenario. |
| Versioned link | https://wstg.owasp.org/v4.2/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server/ | Makes a point-in-time reference easier to reproduce than a changing latest link. |
| Local tailoring | Included and excluded scenarios with reasons | Makes selection and gaps visible for review. |
Version 4.2 was released in 2020; later development content may differ. If a new scenario matters, consult the development version but distinguish it from the approved test baseline. Using the latest page does not automatically create a stable testing standard.
Why not run the entire index as-is?
Completing a large number of test cases does not by itself make an assessment complete. Relevant scenarios depend on architecture, roles, sensitive data, exposure, technologies, recent changes, and the threat model. Mechanically running irrelevant tests wastes execution and review time; omitting a critical area can miss the central risk even when many other tests were completed.
Before selecting tests, document:
**Targets and boundaries:** applications, APIs, domains, test environments, included and excluded systems, owners, and contacts.
**User flows and roles:** what anonymous users, ordinary users, administrators, and service accounts can do.
**Data and impact:** credentials, personal, payment, and business data, and confidentiality, integrity, or availability impact.
**Technology and deployment:** frameworks, API types, browser features, cloud, containers, and external integrations relevant to testing.
**Changes and evidence:** new features, architecture changes, incidents, advisories, prior findings, and operational exceptions.
**Authorization and constraints:** test accounts and data, prohibited actions, request rates and time windows, retention, contacts, and stop rules.
Choose scenarios based on this context and record important categories you did not select and why. “Feature does not exist,” “the threat model does not expose this path,” “a separate control or assessment covers it,” and “it cannot be safely tested in this environment” describe different gaps. Record the evidence, compensating action, or risk owner so a later review can revisit the decision.
Map test scenarios to requirements and risk
The guide’s contents are an index for finding tests, not your organization’s priority order. Connect security requirements or threat-model risks to WSTG IDs so the purpose of each test is clear. For example, if cross-tenant disclosure is a key risk, map relevant authorization scenarios to actual roles and tenant boundaries, then use approved test data to distinguish allowed from denied access. If authentication bypass is a concern, map login and session requirements to applicable scenarios. These are illustrative ways to tailor a plan, not reported test results.
| Risk or requirement | Scenario | Preconditions | Evidence and decision | Follow-up |
|---|---|---|---|---|
| Users must not access another organization’s records | Applicable versioned authorization test and team test case | Two approved test tenants and users; non-production data | Responses or logs show allowed role succeeds and other tenant is denied | Ticket with impact and cause; rerun same conditions after fix |
| A session must not remain valid after logout | Applicable versioned session-management scenario and product requirement | Dedicated account, test session, logout procedure | Observe session behavior before and after termination; check server-side expiry | Reproduction details, requirement owner, retest result |
These examples are not results from a real organization. In a real environment, select scenarios based on enabled features, roles, data boundaries, and permitted methods. Do not summarize a report as “WSTG completed”; state the version, IDs, environment, account roles, exceptions, and areas actually covered.
Build a practical scope matrix
**Confirm ownership and authorization.** Document the system owner, target domains/APIs/environments, test window, allowed and prohibited actions, data handling, contacts, and immediate stop conditions. Do not include unapproved production domains or third-party services.
**Understand application boundaries and user flows.** Review inventories, architecture, roles, and data flows. Keep even discovery activity within the agreed targets and intensity.
**Set scope from evidence.** Select WSTG scenarios tied to risky features, data, trust boundaries, changes, threat modeling, and applicable contractual or regulatory needs. Record version and IDs; link any separate requirements that must be met.
**Define reproducible conditions.** Record target build or commit, environment, role, starting state, test data, procedure, expected result, and evidence location. Align on how success and failure will be distinguished.
**Choose priority and execution method.** Based on application risk, exploitability, impact, and change scope, assign manual review, automation, or specialist assessment. Automated scans help repeatable checks but do not guarantee coverage of business logic or every authorization combination.
**Triage and assign findings.** Record reproduced observations, affected component and role, prerequisites, business impact, rationale for severity, remediation or mitigation, and owner. Do not present a tool alert alone as a confirmed vulnerability.
**Retest and update the plan.** Rerun the original scenario against the fixed build and add regression tests. Revisit scope and exceptions after new features, architecture changes, advisories, or incidents.
This process focuses on selecting and tracing scenarios for a particular target. A separate guide to security testing in a developer workflow explains how test techniques fit different development stages.
What belongs in the report?
Write reports so developers and decision-makers can reproduce and act on them. Record the assessed target and version, environment and dates, scope and exclusions, WSTG version and IDs, method and limits, reproduction conditions and evidence for each finding, impact, risk rationale, recommended remediation, owner and due date, and retest status. Avoid copying unnecessary secrets or sensitive data into the report and restrict access.
A clean result means no finding was observed during the selected tests in the defined scope. It does not rule out unsupported technologies, an incomplete asset inventory, account restrictions, sampling, or undetected flaws. Record not tested, excluded, unavailable, and tool failure separately from pass.
What the WSTG does not replace
The WSTG does not automatically provide a penetration-testing authorization agreement, organization-specific risk acceptance rules, a complete source-code review, a full threat model, or detailed remediation design. ASVS can help with security requirements; the OWASP Cheat Sheet Series and vendor documentation can help with specific remediation. The broader security-testing workflow guide discusses the roles and timing of different test methods.
Using a public reference does not guarantee safety or compliance. The assurance needed must be supported by a scope, evidence, remediation, and retesting appropriate to service risk and applicable obligations.
References
OWASP, [Web Security Testing Guide project and versions](https://owasp.org/projects/web-security-testing-guide)
OWASP, [WSTG online guide](https://wstg.owasp.org/) — stable/development versions, scenario IDs, and versioned links.
OWASP, [WSTG Introduction](https://wstg.owasp.org/latest/02-Introduction/) — purpose, scope, structure, and version-specific IDs.
OWASP, [WSTG v4.2 Introduction](https://wstg.owasp.org/v4.2/2-Introduction/) — fixed release reference.
OWASP, [WSTG past releases](https://wstg.owasp.org/downloads/)
OWASP Developer Guide, [Using the WSTG](https://devguide.owasp.org/en/06-verification/01-guides/01-wstg/)
OWASP, [Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) — a catalog of verifiable security requirements.