Web Application Security Testing: Methods, Scope and Proof
Security TestingHetz Team

Web Application Security Testing: Methods, Scope and Proof

How web application security testing works: scope and test accounts, the method testers follow, the risks that matter most and what a proven finding looks like.

Web application security testing checks whether someone who should not have access can reach your data, your features or your admin functions. It covers the browser-facing app, the API behind it, and the business rules that decide who may see and change what. The useful version is hands-on: a tester, or an automated agent, signs in as real users, follows the product's flows, and keeps only the problems it can prove with a real request and response.

This guide explains how that testing is scoped, the method testers follow, the risks that matter most in modern web apps, and what a good result looks like. If you are new to the field, start with what penetration testing is and come back here for the web application details.

What Web Application Testing Covers

A web application is more than the pages a visitor sees. It is the frontend, the API that the frontend calls, the database or storage behind the API, the authentication system, the third-party services it connects to, and the rules that decide what each role may do. A useful test touches all of these.

The scope usually includes the public site, the logged-in product, every role that can sign in, the API endpoints the product uses, and any file upload, import, webhook or payment flow. It excludes anything that is not yours or that the agreed rules forbid, such as live payment processing or another company's services.

Set the Scope and Accounts First

Before any test starts, four things need to be settled in writing:

  • The targets. Which domains, subdomains, apps and APIs are in scope, and which are explicitly out.
  • The environment. Production or staging. Staging is safer to test, but production shows the real configuration, so many teams test both.
  • The accounts. At least two test accounts per role, in the same tenant or organization where relevant. Without two accounts, the tester cannot check whether one user can reach another user's data.
  • The rules. What is forbidden, such as deleting real customer records, sending real emails to customers, or hammering the login with traffic that could lock out real users.

Clear scope protects both sides. It keeps the test inside what you own and lets the tester work without guessing.

The Method, Step by Step

A good web application test follows a method that is described in public frameworks such as NIST SP 800-115 and the OWASP Web Security Testing Guide. In practice it runs in this order:

  1. Map the application. Find every page, form, API endpoint and role. Include endpoints the frontend no longer calls, because old ones often remain reachable.
  2. Understand the flows. Sign-up, onboarding, checkout, invitations, exports and password reset. Bugs cluster where a flow changes state.
  3. Test the boundaries. For each resource and each role, try to read, change and delete it from another account.
  4. Probe inputs. Send unexpected values to every field and parameter, and watch how the server handles them.
  5. Chain and verify. Combine smaller weaknesses into a real path, then replay each finding to confirm it.
  6. Report and retest. Document the evidence and the fix, then run the same attack again after the change.

Step 3 is where most of the serious findings come from, and it is the step that automated scanners handle worst.

The Risks That Matter Most

The OWASP Top 10 gives a shared vocabulary for web risks, and our guide to OWASP Top 10 explained goes through each one. For most modern web apps, five areas deserve the most attention.

Broken access control

Can a user see another user's records by changing an ID? Can a member reach an admin endpoint that the interface hides? Can a user change their own role through a profile update? Access control bugs are the most common serious issue in web applications, and they are invisible to pattern matching, because the request looks valid. They are found by trying the same action from two accounts.

Injection and cross-site scripting

Modern frameworks prevent many injection bugs by default, but they reappear wherever developers build queries or HTML by hand. Cross-site scripting, where an attacker's script runs in another user's browser, is still common in comment fields, search pages and rich text. Our explainer on XSS shows how it works and how to fix it.

Authentication and sessions

Login, sign-up, password reset, magic links, OAuth and multi-factor flows are all places where small mistakes become account takeovers. Typical findings include reset tokens that do not expire, sessions that survive a password change, and login pages with no rate limiting. The authentication security checklist lists what to verify.

Business logic

Can a coupon be used twice? Can a free plan reach paid features? Can a negative quantity produce a refund? No scanner knows your rules, so these bugs are found by understanding what the product is meant to do and then trying to make it do something else.

Misconfiguration and exposed data

Debug pages left on in production, public storage buckets, verbose errors, permissive CORS and API responses that return more fields than the interface shows. These are often quick to fix, and they are a common reason a test finds a real leak.

Logged Out and Logged In

Testing both states gives different answers, and both matter.

AreaLogged outLogged in, with two accounts
Public pages and assetsExposed files, debug endpoints, headersNot the focus
Sign-in and resetRate limits, enumeration, reset flowSession handling after password change
Personal dataNot reachable by designWhether user A can read user B's data
Admin and role functionsWhether they respond to anonymous callsWhether a normal member can call them
Business rulesLimitedPlan limits, discounts, quotas, refunds

Most of the valuable findings sit in the right-hand column. A logged-out test is still useful, but it is not enough on its own.

The order matters too. Start logged out to confirm what the public can reach, then move to the logged-in flows, where the tester can compare what each role sees and does. Keep a record of which account made each request, so that a finding can be reproduced by your developers with the same accounts and the same steps.

What a Good Finding Looks Like

A finding is only useful when your developers can act on it. A good one includes:

  • The exact request and response that proves the problem, so it can be reproduced in minutes.
  • The impact in your terms, such as which customer data is exposed and to whom.
  • A severity that fits your product. A missing header on a marketing page is not the same as a broken tenant boundary.
  • A concrete fix for your stack, not a generic instruction to improve access control.
  • A retest that confirms the attack no longer works.

Severity deserves a closer look too. A finding that exposes one test account's profile photo and a finding that exposes every customer's invoices may both be access control bugs, but they call for very different responses. Ask the tester to explain the impact in plain terms, including which data, which roles and how many users could be affected, so that the priority reflects your business and not only a generic score.

Reports that list possible issues without evidence tend to create work without reducing risk. For a detailed walkthrough, read our guide to how to read a penetration test report.

Common Mistakes in Web Application Testing

  • Testing only the homepage. The risky parts of the product are behind login and inside the flows.
  • Using one account. Cross-user bugs cannot be seen from a single identity.
  • Trusting the interface. A hidden button is not a permission check. Test the endpoint behind it.
  • Skipping the API. The frontend is often a thin layer, and the API is the real target.
  • Treating the test as a one-time event. Each release can reopen an issue that was fixed before.
  • Testing with empty accounts. Lists, search results, exports and pagination only show problems when there is realistic data to return. Seed each test account with a few records before the test begins.
  • Forgetting background paths. Imports, scheduled jobs, webhooks and email links often run outside the normal request flow and can skip the checks the interface relies on.

Where Hetz Fits

Hetz runs web application tests as an automated, agent-driven service. You verify ownership of your domain, add your test accounts, and sign an authorization. Agents then map the live product, sign in as your users, and test the boundaries across roles, keeping only what they can prove. Each finding comes with the request, the response, a fix for your stack and a retest once you change the code. You can see how the service is scoped on our web application penetration testing page.

Next steps

Pick your most important web app and write down its roles, flows and test accounts. That is your scope. Then run a full test before your next release, and repeat it after major changes. You can see how a run works on the home page, compare plans on pricing, or start a scan.

FAQ

Frequently asked questions

Keep reading