Security operations

Web Application Penetration Testing: How It Works in 2026

A web application penetration test is an authorized attack on your app, carried out the way a real attacker would — then proved with evidence and a fix for every finding.

Cysoro Security TeamPublished · 9 min read
SECURITY OPERATIONS Web app pen testing An authorized attack on your app — proved, reported, fixed. Test report — findings CRITICAL — Broken access control HIGH — SQL injection in search HIGH — Session token not rotated MEDIUM — Missing security headers scope → recon → test → exploit → report → retest ✓
Quick answer

Web application penetration testing is an authorized, time-boxed simulated attack on a web application and its APIs, in which testers work the way real attackers do and report only the weaknesses they can prove. It follows a structured methodology — usually the OWASP Web Security Testing Guide — through scoping, reconnaissance, testing, exploitation and reporting, and ends with a retest of every fix.

Key takeaways

  • A penetration test proves impact: testers exploit a flaw to show what it actually allows, while a vulnerability scan only flags what might exist.
  • The OWASP Web Security Testing Guide v4.2 is the standard method, and findings are usually categorized with the OWASP Top 10:2025.
  • Broken access control — one user reaching another user's data — is the top risk and the one scanners miss most often.

Your scanner says the app is clean, yet a tester logs in as a regular customer, changes one number in a URL, and reads another customer's invoices. That gap — between what automated tools can see and what a person can prove — is exactly what web application penetration testing exists to close.

What is web application penetration testing?

Web application penetration testing is an authorized, time-boxed simulated attack on a web application and the APIs behind it. Testers work the way real attackers do — mapping the application, probing it for weaknesses and exploiting the ones they find — and report only the weaknesses they can prove, with evidence and a fix for each one.

It is sometimes called a web app pen test or an application penetration test. The key words are "authorized" and "proved". Testing without written permission is illegal in most jurisdictions, and a finding without a proof-of-concept is just a guess. A real test has a signed scope, a testing window, and findings a developer can reproduce.

The work covers the application itself, its APIs, its authentication and session handling, its business logic and the way it is configured and deployed. It does not usually cover the underlying network or the office IT estate — those are separate tests with separate scopes.

Penetration test vs vulnerability scan: what is the difference?

A vulnerability scan is automated and broad. A scanner crawls the application, sends known probes and reports matches against a database of known issues. It is fast, repeatable and good at generic problems: missing security headers, outdated components, exposed files, weak TLS.

A penetration test adds human judgment. Testers interpret the scanner's output, discard the false positives, and then do the things a scanner cannot: log in as each user role and check what each role can actually reach, abuse a multi-step workflow, and chain two low-severity issues into a serious one.

They also exploit a flaw to show what it really allows. NIST SP 800-115 draws the line plainly: scanners check only for the possible existence of a vulnerability, while the attack phase of a penetration test exploits it to confirm that it exists.

Vulnerability scanPenetration test
Who does the workAutomated toolPeople, with tools assisting
Finds known issuesYes, quickly and broadlyYes, as a starting point
Finds business-logic flawsNoYes — a core focus
Finds broken access controlRarelyYes, role by role
Proves impactNoYes, by exploitation
False positivesCommonMostly filtered out
Typical cadenceContinuous or weeklyAnnually and after major changes

The two are complements, not substitutes. Scan continuously to catch the routine issues, and pen test periodically to catch the ones that need a person to find.

Which methodology do testers follow?

Most web application penetration tests follow the OWASP Web Security Testing Guide (WSTG), currently version 4.2, with version 5.0 in development. It organizes testing into 12 categories — information gathering, configuration, identity, authentication, authorization, session management, input validation, error handling, cryptography, business logic, client-side and APIs — with a test case for each area, such as WSTG-ATHZ-04 for testing insecure direct object references.

Findings are usually categorized with the OWASP Top 10:2025, the current list of the ten most critical web application risks. Broken access control is still number one, security misconfiguration is second, and the 2025 edition adds software supply chain failures and mishandling of exceptional conditions as new categories. Server-side request forgery, which had its own slot in 2021, now sits under broken access control.

Two other frameworks shape engagements. NIST SP 800-115, the Technical Guide to Information Security Testing and Assessment, describes the four-phase lifecycle — planning, discovery, attack and reporting — and is the reference many government and compliance-driven tests cite.

The Penetration Testing Execution Standard (PTES) breaks the same work into seven phases, adding explicit threat modeling and post-exploitation steps. A good proposal names which methodology it follows and maps its coverage to it; a proposal that names none is a warning sign.

NIST SP 800-115: the four phases1. PlanningScope & rules2. DiscoveryRecon & scanning3. AttackExploit & prove4. ReportingFindings & fixesReporting runs alongside the other three phases — logsand status updates are written as the work happens, notreconstructed from memory at the end. Attack loops backto discovery whenever new access reveals new targets.
The NIST SP 800-115 lifecycle. Illustration by Cysoro.

What are the phases of a web application penetration test?

Every engagement follows the same arc, whatever the methodology calls its steps. Here is how it runs in practice.

1. Scoping and authorization

Before anything is touched, the scope is written down: every URL, subdomain, API endpoint and environment in scope, the user roles testers will hold accounts for, the techniques allowed (and forbidden, such as denial-of-service testing against production), the testing window, emergency contacts and how test data is handled. A signed rules-of-engagement document is the deliverable, and it is also the legal protection for everyone involved.

2. Reconnaissance and mapping

Testers map the real attack surface, which is almost always larger than the architecture diagram. They spider the application as each user role, enumerate endpoints and parameters, read the JavaScript for hidden API calls, and check DNS records, certificate transparency logs and public code for forgotten subdomains and staging servers. A missed endpoint is a missed vulnerability, so this phase is where thoroughness pays off.

3. Systematic testing

Testers work through the OWASP Top 10 categories methodically, role by role. Unauthenticated testing checks what an outsider can reach: exposed admin paths, default credentials, account enumeration on registration and password-reset flows, missing security headers and weak TLS.

Authenticated testing is where most serious findings live: cross-tenant access, privilege escalation, missing function-level checks, session handling flaws, injection, and business-logic abuse such as applying a discount twice or skipping a payment step.

4. Exploitation and impact proof

When a vulnerability is found, the tester demonstrates what it actually allows. A SQL injection that leaks one row is a different risk from one that dumps the whole user table, and a report should say which one it is.

Testers also chain findings: a low-severity information leak plus a weak access check can become a full account takeover, and documenting that chain is what separates a useful report from a list of scanner output.

5. Reporting and retest

Each finding gets a write-up with severity, evidence, reproduction steps and remediation guidance. Critical findings are usually disclosed the same day, not held for the final report. After the fixes are made, testers retest every finding and issue an updated report. A test without a retest is unfinished: you never actually confirmed the holes are closed.

Where serious findings usually liveBroken access control — one role reaching another's dataBusiness logic abuse — workflows bent to the attacker's benefitAuthentication & session flaws — weak resets, tokens, loginsInjection — SQL, XSS, command injection in inputs and APIsScannersrarely findthe top two
Access control and business logic are the findings scanners miss most. Illustration by Cysoro.

What do testers check?

A complete test works through eight areas. Not every application has all eight, but a proposal that skips one without saying so has a coverage gap.

  • Access control. Every role through every protected resource. Can a customer see another customer's data by changing an ID? Can a regular user call an admin function directly? This is OWASP A01:2025, the top category, and the one most likely to produce a critical finding.
  • Authentication. Login, password reset, multi-factor authentication, account lockout, session tokens and single sign-on. Testers check for enumeration, weak reset flows, token reuse and bypasses.
  • Injection. SQL injection, cross-site scripting, command injection and server-side request forgery in forms, APIs and file uploads.
  • Configuration and deployment. Security headers, TLS, CORS settings, exposed files and debug endpoints. Our article on what CORS is explains one of the most commonly misconfigured areas.
  • Business logic. The rules that make your application yours: pricing, discounts, quotas, approvals, refunds and state transitions. Testers try to use the application in ways the designers did not intend.
  • APIs. REST, GraphQL and webhooks get the same treatment as the web interface, including broken object-level authorization — one of the most common API flaws.
  • Cryptography. How secrets, tokens and sensitive data are stored and transmitted, and whether weak or outdated algorithms are in use.
  • Logging and error handling. Whether failures are logged well enough to detect an attack, and whether error messages leak useful information to an attacker.

Which tools do penetration testers use?

The standard toolkit is a proxy plus a scanner plus the tester's own scripts. Burp Suite Professional is the most widely used intercepting proxy: it sits between the browser and the application, letting the tester inspect, modify and replay every request. Its list price is $499 per user per year. OWASP ZAP is the open-source alternative and covers much of the same ground for free.

Scanners such as Nuclei and the Burp scanner handle broad coverage, while purpose-built tools cover specific areas: SQLmap for SQL injection, ffuf for endpoint fuzzing, and browser developer tools for client-side analysis. None of them replaces the tester. The tools find candidates; the person decides which ones matter, proves the impact and writes the finding.

How do you choose a penetration testing provider?

Ask for four things before you sign. First, a sample report — redacted is fine. It should read like an engineer's document, with reproduction steps and fixes, not a scanner dump.

Second, the methodology and the coverage statement: which WSTG categories and which roles were tested. Third, the testers' qualifications and whether the same people who scope the work do the testing. Fourth, the retest terms: how many retests are included and how quickly findings are re-verified.

Also agree on the logistics in the rules of engagement: a named contact on each side, a channel for urgent findings, and a clear stop condition if the test starts affecting production. A provider that resists putting any of this in writing is telling you something.

How should you prepare for a penetration test?

Preparation makes the test better, not easier to pass. Provide test accounts for every user role, including an admin, and seed the application with realistic data so testers can exercise real workflows. List the integrations and third-party services in scope, and warn your hosting provider and any managed security service so the test traffic is not mistaken for an attack.

Fix the easy wins first: run Cysoro's free security headers checker against the application, and close the gaps it finds.

Also check the site's certificates with the SSL checker. Testers will still check those areas, but the time they would have spent on missing headers is better spent on your business logic. Keep a staging environment that mirrors production if you can — testing against a stale staging copy produces findings that do not apply to the live system.

Do not test without written authorizationPenetration testing without permission is illegal in most jurisdictions. Never point a scanner or a proxy at a system you do not own or have explicit written permission to test — including a vendor's SaaS product. If the scope is unclear, stop and get it in writing first.

How do you read the report and act on it?

Start with the executive summary, then sort findings by severity and by exploitability. A critical finding that requires an authenticated admin account is less urgent than a high finding any anonymous visitor can exploit — but both need owners and dates.

For each finding, check that the remediation guidance is specific enough to hand to a developer, and that the retest confirms the fix rather than just the absence of the original payload.

Track the findings to closure the way you would any incident: assign, fix, retest, close. The retested report is the artifact your auditors, customers and cyber insurer will actually want to see. If you need continuous visibility between annual tests, attack surface management helps you keep track of the exposed assets the next test will start from.

The bottom line

A web application penetration test is the difference between believing your application is secure and knowing where it is not. Scanners catch the routine issues; people catch the authorization flaws, the business-logic abuse and the chained exploits that actually hurt.

Scope it properly, insist on a named methodology and a retest, and treat the report as a work plan rather than a certificate. Then run a quick check of your own application's headers with the security headers checker today — it is the cheapest finding a penetration tester could ever hand you.

Frequently asked questions

What is web application penetration testing?

It is an authorized, time-boxed attack on a web application and its APIs by security testers who work the way real attackers do. Testers map the application, probe it for weaknesses, exploit the ones they find to prove the impact, and report each finding with evidence and a fix. It is done with written permission and a defined scope.

What is the difference between a vulnerability scan and a penetration test?

A vulnerability scan is automated: it checks for known weaknesses and reports what might exist. A penetration test adds people who interpret the results, test business logic and authorization by hand, and exploit findings to prove what an attacker could actually do. NIST SP 800-115 puts it plainly: scanners check only for the possible existence of a vulnerability, while a penetration test exploits it to confirm it exists.

How long does a web application penetration test take?

A small application with a handful of roles and no API usually takes one to two weeks. A large application with many roles, integrations and APIs can take three to six weeks. The scoping call sets the duration: the number of user roles, endpoints and workflows is what drives the effort, not the size of the codebase alone.

How often should you penetration test a web application?

Test at least once a year and after any significant change, such as a new authentication flow, a new API, a major feature release or a move to a new platform. Regulated environments often require it: PCI DSS requires application-layer penetration testing at least annually and after significant changes. Continuous testing between annual tests catches issues sooner.

What does a penetration test report contain?

A good report has an executive summary with the overall risk, one write-up per finding with severity, evidence and reproduction steps, and concrete remediation guidance. Each finding is usually rated with CVSS and mapped to a category such as the OWASP Top 10. The report should also state exactly what was in scope and what was tested, so you can judge coverage.

Is penetration testing legal?

Yes, when it is authorized in writing. Testing without permission is illegal in most jurisdictions, including under the US Computer Fraud and Abuse Act. Every legitimate engagement starts with a signed rules-of-engagement document that names the systems in scope, the allowed techniques, the testing window and the emergency contacts.

Do you need a penetration test if you already run a vulnerability scanner?

Yes. Scanners are good at known, generic issues such as missing security headers or outdated components. They cannot judge whether one customer can see another customer's invoices, whether a discount can be applied twice, or whether a password reset flow can be abused. Those business-logic and authorization flaws are exactly what a penetration test is for.

Sources

  1. OWASP — Web Security Testing Guide project
  2. OWASP Developer Guide — OWASP Top 10 (2025)
  3. NIST — SP 800-115, Technical Guide to Information Security Testing and Assessment
  4. OWASP — Testing Cross Origin Resource Sharing (WSTG-CLNT-07)
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against the OWASP Web Security Testing Guide v4.2, the OWASP Top 10:2025 and NIST SP 800-115.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free