---
title: "Web Application Penetration Testing, Explained | vapt.in"
description: "What happens during a web application penetration test: the three testing perspectives, the flaw classes covered, and what the tester needs from you."
url: "https://vapt.in/blog/web-application-penetration-testing-explained/"
---

# Web Application Penetration Testing, Explained

What a tester actually does to a web application over two weeks, what they need from you before they start, and which classes of flaw only turn up when a person is holding the keyboard.

Published

17 August 2026

Last updated

19 November 2026

Reading time

6 min

By

Abhinav A

Filed under

VAPT · Web Application

On this page (15)

A web application penetration test is a person attempting to misuse your application on purpose, within an agreed boundary and a fixed window, and writing down what worked.

An automated scanner sends a large number of known-bad inputs at your application and reports which ones produced a suspicious response. A penetration tester builds a model of what your application is _for_: who the users are, what they own, what they are supposed to be prevented from doing. Then the tester attacks that model. The second approach finds a category of problem the first cannot see at all.

What follows is what actually happens during one, written for the person handing over the credentials.

## The three perspectives, and why one of them matters most

Almost every scoping conversation turns on which of these you are buying.

### Unauthenticated

The tester has no account and works from the outside, as an anonymous internet user would. This covers the login and registration flows, password reset, anything reachable before sign-in, and the perimeter of the application itself.

It is the cheapest option and the least informative one. Most real applications keep almost nothing of value in front of the login, so an unauthenticated test frequently returns a thin report, which is sometimes mistaken for good news.

### Authenticated, single role

The tester is given a normal user account and works as that user would. This reaches the bulk of the application, and it is where most findings come from.

### Authenticated, multiple roles

The tester is given at least two accounts: often a standard user and an administrator, or two users belonging to different customers. The test includes whether the boundary between them holds.

**This is the perspective worth paying for.** Broken access control is consistently the most common serious finding in web applications, and it is structurally invisible to a single-account test. If a tester only ever holds one set of credentials, there is no way to establish whether user A can reach user B's data, because there is no user B.

The cost difference between one account and three is small. The difference in what the test can conclude is not.

## What actually gets tested

The categories below are roughly the order a tester works through them, and roughly the order of how much trouble each tends to cause.

### Access control

Whether the application enforces its own rules about who may see and do what. Two shapes:

- **Horizontal:** can one user reach another user's records at the same privilege level? The classic form is an identifier in a URL or request body that the server trusts without checking ownership. Change`/api/invoices/1042` to `/api/invoices/1041` and see what comes back.
- **Vertical:** can a standard user reach administrative functions? Often the interface simply hides the button while the endpoint behind it remains open to anyone who knows the path.

This is the category that most rewards having several accounts, and the one scanners cannot meaningfully attempt, because a scanner has no idea which records are supposed to belong to whom.

### Authentication and session handling

Whether the login mechanism can be bypassed, worn down, or side-stepped. In practice this covers credential stuffing resistance and rate limiting, the password reset flow (historically one of the weakest parts of most applications), multi-factor implementation, and what happens to a session at the moments that matter: logout, password change, role change, and concurrent sign-in.

Where JSON Web Tokens are used, the tester checks whether the signature is actually verified, whether the algorithm can be changed by the client, and whether claims inside the token are trusted without a server-side check.

### Injection

Whether input crosses from data into instruction: SQL, operating system commands, template expressions, LDAP queries, and anything else the application hands to an interpreter.

Modern frameworks have made classic SQL injection much less common than it was. It has not disappeared, and it tends to survive in the places the framework does not reach: hand-written reporting queries, search filters, bulk import routines, and legacy endpoints nobody has touched in years.

### Business logic

Whether the application can be made to do something legitimate in an illegitimate order, quantity, or sequence. Applying a discount code more times than intended. Skipping a step in a multi-stage process by requesting the final step directly. Submitting a negative quantity. Completing a purchase while the payment is still pending, by exploiting the gap between two requests.

**Nothing automated finds these.** They are not malformed input. Every request involved is well-formed and individually valid. They are only visible to someone who understands what the workflow is supposed to achieve, and they are frequently the findings with the most direct financial consequence.

### Server-side request forgery and file handling

Whether the application can be persuaded to fetch a URL of the attacker's choosing, or to accept, store and later serve a file it should have rejected. Anywhere the application takes a URL, imports from a remote source, generates a document from a template, or accepts an upload, this gets attention.

### Client-side

Cross-site scripting in its stored, reflected and DOM-based forms; cross-site request forgery on state-changing actions; clickjacking; and the security-related response headers, which are quick to check and quick to fix.

## What the tester needs from you

Most disappointing tests go that way because the first three days are spent waiting for access.

- **Working credentials for every role in scope**, tested by you before handover, and not subject to a lockout that triggers on the second failed attempt.
- **An environment that resembles production.** An empty staging instance with three test records cannot exhibit most access-control flaws, because there is nothing to reach across to.
- **Allowlisting.** If a web application firewall or rate limiter sits in front, decide deliberately whether the tester works through it or around it. Both are defensible. Discovering on day four that the firewall has been silently dropping requests is not.
- **A named technical contact** who can answer a question the same day.
- **Any documentation that exists:** API specifications, a description of the role model, notes on which parts are new.

The [preparation checklist](https://vapt.in/blog/preparing-for-your-first-vapt/)covers this in more detail, including the parts that need to happen weeks ahead.

## How long it takes

Duration follows the size of the attack surface, not the size of the codebase. A tester counts distinct functions, roles, and entry points.

A small application with one role and a handful of screens is a few days. A substantial application with several roles, an administrative interface, a payment path and an API behind it is commonly two to three weeks of testing, plus reporting. Anyone quoting a fixed duration before seeing the application is quoting a price, not an estimate. What drives that number is covered in[what moves the price of a penetration test](https://vapt.in/blog/what-moves-the-price-of-a-penetration-test/).

## Extend coverage beyond the web application

The gap is where the unpleasant surprises live.

Web application penetration testing examines the deployed application's externally reachable behaviour, authentication, authorisation and business logic. Complementary source code review examines implementation details; infrastructure testing examines the supporting hosts and networks; and [social engineering testing](https://b52security.com/capabilities/social-engineering-penetration-testing/) examines human-facing attack paths. Each adds a different dimension of security assurance.

Retesting verifies fixes against the assessed application, while assessments after significant releases keep the evidence aligned with the version currently deployed.

## What comes back

A findings report, with each issue carrying reproduction steps, evidence, a severity rating and remediation guidance. The section-by-section walkthrough is in [what is actually inside a VAPT report](https://vapt.in/blog/what-is-inside-a-vapt-report/), along with the specific thing to check in each part.

One check matters more than the rest: **read the reproduction steps on the most serious finding.** If you cannot follow them yourself and observe the same result, neither can your developers, and neither can anyone confirming later that it was fixed.

About the author

###  Abhinav A 

Lead — VAPT & Security Assessments

Leads Security Brigade’s VAPT delivery team. Has executed advanced penetration tests across BFSI, fintech, QSR and telecom.

[LinkedIn](https://www.linkedin.com/in/abhinavawasthi786/) 

Applying this to your own estate

## Get a VAPT scoped against what you actually run.

Application count, environment, regulator and evidence deadline are what move a scope. A template does not know any of them. Describe your estate and you will get the scope, the cost and the retest cadence in writing. Security Brigade is CERT-In empanelled and publishes this site.

[What a VAPT engagement covers](https://vapt.in/vapt-services/)

[Sample Web Application Penetration Testing Report](https://vapt.in/resources/sample-reports/web-application/)[Talk to our team](https://vapt.in/contact/?service=vapt)

## Continue reading

[All articles →](https://vapt.in/blog/)

[The Phases of a Penetration TestEvery credible methodology describes the same arc, under different names. What happens in each phase, how long each takes, and how to tell whether a proposal has a real methodology behind it or a diagram.](https://vapt.in/blog/phases-of-a-penetration-test/)[External and Internal Network Penetration TestingExternal and internal network tests answer different questions. What each one looks for, the findings that recur in almost every internal engagement, and why the first output is usually a corrected asset inventory.](https://vapt.in/blog/network-penetration-testing-explained/)[Mobile Application Security Testing, ExplainedA mobile test has three parts: the binary, the device, and the API behind them. Most of the serious risk sits in the third, because the app itself runs on hardware the attacker owns.](https://vapt.in/blog/mobile-application-security-testing-explained/)
