Web App Pentesting: Scope, Methodology, and OWASP Standards
Introduction
Web application penetration testing goes beyond port scans and HTTP enumeration, so you need a repeatable methodology, clear scope, and alignment with industry standards for findings that are actionable and comparable.
This post covers scope and methodology for web app pentests and shows how to use OWASP Top 10, OWASP ASVS, and the OWASP Web Security Testing Guide (WSTG) in practice. For hands-on testing of each Top 10 risk on a vulnerable app, see our companion post OWASP Top 10 penetration testing. For HTTP-level recon, use HTTP/HTTPS enumeration Part 2.
Why use OWASP standards in web application penetration testing
The OWASP Foundation provides free, widely adopted resources that define what to test and how to test it:
Standard | Purpose | How you use it |
|---|---|---|
OWASP Top 10 | The most critical web application security risks | Checklist: ensure A01–A10 are each tested and documented |
OWASP ASVS | Verification requirements (e.g. access control enforced server-side) | Pass/fail per requirement with evidence; aligns with assurance levels |
OWASP WSTG | Step-by-step testing procedures | Playbook: follow "Testing for SQL Injection", "Testing for IDOR", etc. |
Using these together gives you consistent scope, repeatable tests, and findings that map to risks stakeholders already recognize. The Top 10 tells you which risk areas to cover; the WSTG gives concrete test steps; ASVS turns that into verifiable requirements with evidence.
Scope and engagement basics
Before testing, agree with the client on the following and document them in a scope or rules-of-engagement (ROE) document. Skipping this leads to disputes over what was in scope, whether a finding is valid, or how to respond to a critical issue.
In scope
Exact URLs or apps: e.g. https://app.example.com, https://api.example.com/v1. List base URLs and excluded paths (payment callbacks, third-party SaaS).
Types of testing: authenticated vs unauthenticated, role-based (user vs admin), REST/GraphQL APIs if applicable.
Out of scope
Explicit exclusions: denial-of-service, social engineering, physical security, third-party SaaS (unless agreed).
Environments: production read-only vs staging where you can reset state. Document what you may do in each environment.
Rules of engagement
Define what you must not do (no wiping production data, no resetting real user passwords) and insist on test accounts for state-changing tests. Agree who to contact for critical issues and when testing is allowed.
Testing window: e.g. weekdays 22:00–06:00 only.
Destructive actions: no mass delete; use test accounts only.
Communication: out-of-band channel for critical findings and outage response.
Deliverables
Report format: executive summary, scope, methodology, findings with severity, evidence (screenshots, request/response), remediation, appendix (ASVS or Top 10 checklist).
Severity scheme: Critical / High / Medium / Low / Info with agreed definitions (OWASP Risk Rating or CVSS).
Capture the agreed scope in a one-page table in your ROE (URLs, roles, environments, exclusions). That table becomes the first appendix in the final report.
How to use the OWASP Testing Guide (WSTG) in a pentest
The OWASP WSTG is organized by testing phase. In practice you iterate (e.g. find a new parameter and return to injection tests), but a typical order is:
Reconnaissance: search engines, DNS, tech fingerprinting.
Configuration and deployment: TLS, headers, default paths (A05, A02).
Identity and authentication: login, registration, password policy (A07).
Authorization: IDOR, privilege escalation (A01).
Session management: fixation, timeout, logout.
Input validation: SQLi, XSS, and related injection (A03).
Error handling, cryptography, business logic, integrity: verbose errors, weak crypto, checkout abuse, unsigned updates or unsafe deserialization (A04, A02, A09, A08).
Client-side: DOM XSS, local storage, postMessage (A03, A02).
Practical use: WSTG as playbook
Use the OWASP Web Security Testing Guide as your main reference. Keep the guide version consistent when recording test IDs and referencing procedures.
For each feature, pick the matching section (login → Identity Management + Input Validation).
Follow test steps including "how to identify" and remediation guidance.
Record the test ID and guide version, date, affected parameter, payload or test input, observed result, and evidence reference.
Example: SQL injection test using WSTG
WSTG reference: 4.7.5 Testing for SQL Injection
Steps:
Identify candidate input parameters in the login form, search feature, or API request body.
Capture a baseline request and send it to Burp Suite Repeater.
In the authorized test environment, submit suitable SQL injection test inputs to the selected parameter.
Compare the baseline and modified responses, including status codes, response bodies, error messages, and authentication behavior.
Record the exact request and response, the affected parameter, the test input, and the observed result. Map confirmed injection findings to the relevant OWASP Top 10 category.
Example curl against a lab login endpoint:
curl -s -X POST "http://localhost:3000/rest/user/login" \
-H "Content-Type: application/json" \
-d '{"email":"test@juice-sh.op","password":"x'\'' OR 1=1--"}'
If authentication succeeds or SQL errors appear in the response, capture the request/response pair as evidence.
Evidence: Use the Burp Suite Repeater comparison from the local OWASP Juice Shop lab. A successful authentication response is evidence of unexpected behavior, but confirm the underlying SQL injection mechanism before reporting SQL injection as a verified root cause.

Run these tests safely in OWASP Juice Shop; our OWASP Top 10 practical post walks through each risk with lab steps.
How to use OWASP ASVS in a pentest
OWASP ASVS defines application security verification requirements at different assurance levels. This article uses ASVS 4.0 requirement numbering for its examples. Level 1 provides a baseline, Level 2 is intended for most applications requiring significant security assurance, and Level 3 is intended for applications requiring advanced verification. Assess each applicable requirement as Satisfied or Not satisfied, and record supporting evidence.
Practical use: ASVS verification workflow
Agree on the verification level with the client and select the matching ASVS version. Use the OWASP ASVS project page to access the standard and its checklist.
Map requirements to test cases. Example: ASVS V4.1.1 (access controls enforced on a trusted service layer, not only in the UI) → attempt to browse /admin or call admin API routes as a standard user.
Execute tests and record evidence (Burp request/response or browser screenshot).
Report: Requirement ID, Result, Evidence summary, remediation if Not satisfied.
Example: ASVS V4.1.1 with Juice Shop
Requirement: V4.1.1 (Access Control) – the application enforces access control for privileged/admin functions on a trusted service layer, not only in the UI.
Test procedure:
Log in as a standard user (not admin).
Browse to admin paths (e.g. /administration or admin API routes discovered in Burp).
Confirm whether admin UI or JSON data is returned without server-side denial.
Expected: 403 Forbidden or redirect to login for non-admin roles.

Evidence: Screenshot or Burp response showing admin content visible to a non-admin account (Not satisfied) or consistent denial (Satisfied). This is an authorization check (Top 10 A01), not an integrity failure (A08).
How to use OWASP Top 10 as a checklist
The OWASP Top 10 lists the ten most critical risks (A01–A10). Use it as a checklist so each risk is explicitly tested and reported.
Suggested tests per risk (summary)
Risk | At least one test to run |
|---|---|
A01 Broken Access Control | IDOR (change resource ID), vertical escalation, forced browsing to /admin |
A02 Cryptographic Failures | Sensitive data in transit/storage, weak TLS/ciphers |
A03 Injection | SQLi in login/search, XSS in reflected/stored fields, NoSQL if JSON API |
A04 Insecure Design | Business logic abuse, missing rate limiting on login |
A05 Security Misconfiguration | Default paths, verbose errors, missing CSP/HSTS |
A06 Vulnerable Components | Outdated frontend libs, backend versions, CVE lookup |
A07 Authentication Failures | Default creds, weak password policy, JWT alg:none |
A08 Software and Data Integrity Failures | Unsigned/unverified updates or webhooks, CI/CD pipeline abuse, unsafe deserialization |
A09 Logging/Monitoring | Failed login/admin access: is it logged and protected? |
A10 SSRF | URL parameters → http://localhost, http://169.254.169.254 |
Top 10 checklist table (report appendix)
Run at least one test per item. If you find nothing, note Tested – no vulnerability found so coverage is explicit.
Quick reference: mapping standards to your test
Phase / focus | Use this standard | Example |
|---|---|---|
What to cover | OWASP Top 10 | Ensure A01–A10 each have at least one test |
How to test | OWASP WSTG | Follow "Testing for SQL Injection", "Testing for IDOR" |
Pass/fail criteria | OWASP ASVS | Verify V4.1.1 server-side access control with evidence |
Lab practice | Juice Shop | Non-production target; see OWASP Top 10 post |
Conclusion
Web application pentesting benefits from clear scope up front and three OWASP layers in the report: WSTG for procedure, Top 10 for risk coverage, ASVS for requirement-level pass/fail. Define ROE before scanning, map each in-scope feature to WSTG sections, and attach evidence for every finding. Pair this methodology with hands-on Top 10 labs and HTTP enumeration to move from checklist to reproducible tests.
References
Register for instructor-led online courses today! https://www.darkrelay.com/courses
Check out our self-paced learning paths! https://www.darkrelay.com/learning-paths
Explore our bundled Pricing & Plans for cost-effective options! Buy a course subscription to learn more—hands-on labs and expert-led training included. https://www.darkrelay.com/plans-pricing
Contact us for custom pentesting needs at: info@darkrelay.com or WhatsApp.



Comments