Web applications are where most organisations meet their customers — and where many attackers begin. A web application penetration test examines an application the way a determined attacker would, looking for flaws in authentication, access control, input handling and business logic. This guide explains what the test covers, how it is carried out and how to get the most from one.

Why web applications need dedicated testing

Network firewalls let web traffic through by design, so the application itself becomes the security boundary. Every form field, API parameter, cookie and file upload is an input the attacker controls. Modern applications add complexity: single-page front ends, dozens of API endpoints, third-party integrations, cloud storage and external identity providers. A flaw anywhere in that chain can expose data.

Automated scanners help, but they struggle with the issues behind many of the worst breaches — broken access control and business logic errors. Broken access control has sat at or near the top of the OWASP Top 10 for years precisely because finding it requires an understanding of what each user should and should not be able to do.

Testing approaches

ApproachWhat testers receiveBest for
Black boxA URL and nothing elseSimulating an anonymous external attacker
Grey boxUser accounts for each role, often API documentationMost engagements — efficient and realistic
White boxAccounts, documentation and source code accessHigh-assurance applications and in-depth reviews

Grey-box testing usually offers the best value. Supplying credentials for every role lets testers spend their time probing authorisation instead of trying to obtain accounts.

The testing process

1. Reconnaissance and mapping

Testers route all traffic through an intercepting proxy such as Burp Suite or ZAP while exercising every feature. They build a map of pages, API endpoints, parameters, roles and workflows, and hunt for hidden content such as old API versions, debug endpoints and backup files.

2. Authentication and session management

Checks include password policy enforcement, lockout and rate limiting, multi-factor authentication bypasses, password reset flows, session token randomness, cookie attributes (Secure, HttpOnly, SameSite) and whether sessions are properly invalidated at logout.

3. Authorisation and access control

Testers attempt horizontal escalation — reaching another user's data, often just by changing an identifier, a flaw known as IDOR or broken object level authorisation — and vertical escalation, performing administrative actions as an ordinary user. This is frequently where the most serious findings appear.

4. Input handling

Every input is tested for injection: SQL and NoSQL injection, cross-site scripting (XSS), OS command injection, server-side template injection, XML external entities and server-side request forgery (SSRF). File uploads are checked for type validation, storage location and the risk of execution.

5. Business logic

Testers look for ways to abuse legitimate features: applying a discount twice, skipping a payment step, submitting negative quantities, racing two requests to spend the same balance, or completing a workflow out of order. These flaws are unique to each application and are rarely found by scanners.

6. Configuration and client-side security

Checks cover TLS configuration, security headers such as Content-Security-Policy and HSTS, CORS policy, verbose error messages, secrets exposed in JavaScript bundles and outdated third-party libraries.

7. Reporting and retesting

Findings are documented with reproduction steps, evidence, risk ratings and developer-friendly fixes, then verified after remediation.

Standards that guide the work

  • OWASP Web Security Testing Guide (WSTG) — a comprehensive catalogue of test cases organised by area.
  • OWASP Top 10 — an awareness document describing the most critical categories of web application risk.
  • OWASP Application Security Verification Standard (ASVS) — detailed, testable requirements at three levels of rigour, useful for defining what "secure enough" means for a given application.
  • OWASP API Security Top 10 — essential when the application is driven by REST or GraphQL APIs.

APIs deserve special attention

Many applications are now thin front ends over extensive APIs, and the API is where the real security decisions are made. Testers enumerate every endpoint — including those the user interface never calls — and check each one for object-level and function-level authorisation, mass assignment (where a client can set fields such as role or price that it should not control), excessive data in responses, missing rate limits and inconsistent behaviour between API versions. GraphQL adds its own checks, such as exposed introspection, query depth limits and batching abuse.

Common findings and their fixes

  • Insecure direct object references — enforce authorisation server-side on every request, based on the authenticated user rather than identifiers supplied by the client.
  • Cross-site scripting — encode output for its context, use frameworks that escape by default and deploy a strict Content-Security-Policy.
  • SQL injection — use parameterised queries everywhere and validate input against allow-lists.
  • Weak password reset — issue single-use, short-lived, unpredictable tokens and never reveal whether an account exists.
  • Missing rate limiting — throttle login, registration, reset and other sensitive endpoints to slow brute-force and enumeration attempts.
  • Excessive data exposure — return only the fields the client needs instead of filtering them in the browser.

How long does a test take?

Duration depends on complexity rather than page count. A small brochure site with a contact form may need a day or two, while a multi-role SaaS platform with a large API can need two weeks or more. Counting user roles, API endpoints and distinct workflows gives a far better estimate than counting URLs.

Getting the most from a test

  1. Test in an environment that mirrors production, with realistic data and identical configuration.
  2. Provide accounts for every role and a short walkthrough of key workflows.
  3. Share API specifications, such as OpenAPI documents or GraphQL schemas, so no endpoint is missed.
  4. Involve developers in the debrief — they fix issues faster when they understand the attack.
  5. Schedule testing before major releases, not after them.

Our web application penetration testing service follows the OWASP WSTG and reports every finding in terms developers can act on. Developers who want to stop these flaws reaching production can join our web application security course.

Written by

Elytrix Labs Offensive Security Team

Field notes from the Elytrix Labs consultants, analysts and instructors who run our engagements and teach our courses. Every article is reviewed by a practising specialist before publication.

Meet the team behind Elytrix Labs

Get the monthly security briefing

One concise email a month with new threats, practical defences and upcoming courses. No spam — unsubscribe anytime.

Subscribe to the security briefing