Web Application Penetration Testing
Use when the surface is an HTTP app or API. Use bug-bounty-hunting when
the rules come from a public program page. Use penetration-testing when
the engagement is mixed hosts plus one web app.
When to use
- "WSTG this app", "OWASP Top 10", "API Top 10"
- auth, session, XSS, CSRF, SSRF, injection, access control
- mobile backend APIs (pair MSTG client work with this skill)
Methodologies
| Catalog | Role |
|---|---|
| OWASP WSTG | default test cases (info gathering through business logic) |
| OWASP ASVS | verification requirements / coverage checklist |
| OWASP API Security Top 10 | BOLA, BFLA, mass assignment, unbounded resources |
| OWASP Top 10 | executive grouping of findings |
| OWASP MSTG / MASVS | mobile client; APIs still WSTG |
| PTES | wrap the web work in an engagement report |
| CWE | finding IDs (79, 89, 352, 918, 639, 601) |
Tooling
PWN::Plugins::BurpSuite(preferred) orZaproxyPWN::Plugins::TransparentBrowserthrough the proxyPWN::Plugins::Spider,OpenAPI,FuzzPWN::Bounty::LifecycleAuthzReplayfor two-role authzPWN::SASTon the app repo when source is available
Procedure
- Map the app: roles, session mechanism, API surface, CSRF tokens.
- Walk WSTG info-gathering then config, then identity, then authz.
- Injection and XSS on every sink Burp or OpenAPI listed. Save requests.
- Business logic: price, workflow skip, race, mass assignment.
- Prove each finding with one request/response pair. Read the saved HAR
or Burp item back.
- Report by WSTG / ASVS id + CWE.
Pitfalls
- A crawl with no replay is not a WSTG pass.
- Do not stop at "I will test XSS next time".
- SPA APIs hide in XHR; dump_links plus Burp sitemap, not just HTML.
Verification
Sitemap or OpenAPI note exists, at least one authenticated test ran, and
each claimed finding cites a saved request and a WSTG/CWE id.