Web application testing
What is web penetration testing and why does your business need it?

In this article
A new checkout flow looks flawless to the product team. Weeks of development, rigorous QA testing, stakeholder sign-off. Then a security tester approaches it the way an attacker would, chaining together small cracks that nobody else noticed, and demonstrates how customer payment data could be extracted in minutes.
This is web penetration testing in action.
According to the IBM Cost of a Data Breach Report 2025, the global average cost of a data breach now stands at 4.44 million dollars. In the United States, that figure rises to over 10 million dollars. Web application vulnerabilities remain a primary attack vector, responsible for roughly a quarter of all confirmed breaches globally. Yet the majority of these attacks exploit weaknesses that could have been found and fixed before attackers got there first.
What is web penetration testing?
Web penetration testing, sometimes called a web pen test or web application pen test, is a structured, time-bounded security assessment where specialists attempt to compromise your web applications and related components. The goal is to reveal how a real adversary could gain access, use that access, and persist within your systems, then explain exactly how to stop it.
Think of it as a fire drill for your digital systems. Security professionals simulate real attacks to find where your defences are weak, then provide prioritised recommendations you can act on immediately. For methodology baselines, reputable testers follow frameworks like the OWASP Web Security Testing Guide and NIST SP 800-115, which give structured, thorough coverage rather than ad-hoc testing.
More than just a checklist
A modern web application penetration testing engagement maps your entire attack surface. That includes APIs, microservices, authentication flows, third-party integrations, single sign-on, mobile clients, and the cloud infrastructure that supports your application. Unlike a checklist review, web application penetration testing adapts as it learns: testers follow leads, change tactics, and chain weaknesses together to demonstrate practical impact. Skilled testers uncover complex vulnerabilities that automated scans miss entirely.
A good report includes proof of exploit, clear risk context and prioritised remediation guidance, not a list of theoretical issues.
How small vulnerabilities chain together
Consider a scenario we uncovered during a recent web application assessment. What looked like two minor, low-severity issues turned into a complete compromise of administrative access. The application had a stored cross-site scripting flaw, where user input was not properly sanitised. On its own it might seem manageable, but combined with an open URL redirect elsewhere in the application, the impact escalated dramatically.
A standard user account, the kind any customer might have, was used to inject a malicious payload through the stored cross-site scripting flaw. The payload was crafted to create a new administrator account, but it needed to run when viewed by someone with existing admin privileges.
This is where the open URL redirect came in. By crafting a legitimate-looking link, we could direct an administrator to a page containing the injected payload without raising suspicion. When the admin visited the compromised page during normal use of the application, the script ran silently in their browser and sent a privileged API request to create a new admin account with credentials we controlled.
The administrator never saw anything unusual. No error messages, no warnings. Meanwhile, a new admin account existed in the system, fully controlled by the attacker.
Through this privilege escalation chain, a low-privilege user moved from standard customer access to full administrative control without alerting the legitimate admin. Neither vulnerability alone would have achieved this. Together, they created a critical business risk.
Automated scanners might flag each vulnerability individually as moderate risk. A skilled tester sees how they connect, and demonstrates what an attacker could actually do with them.
Why your business needs web penetration testing
Every business that operates online, whether you sell products, provide services, or simply run a customer portal, faces the same fundamental risk: your web application is accessible to anyone with an internet connection, including people who want to exploit it.
The cost of a web application breach
The Verizon 2024 Data Breach Investigations Report found that basic web application attacks, exploiting common vulnerabilities like SQL injection and cross-site scripting, were responsible for 12 per cent of all confirmed breaches, an increase on the previous year. Add credential theft and other application-layer attacks and web applications feature in roughly a quarter of all breaches. In the UK alone, the average cost now exceeds 3.29 million pounds per incident.
A breach brings incident response costs, regulatory fines, legal fees, customer notification and the long tail of reputational damage that follows.
Compliance requirements
Many regulatory frameworks now mandate or strongly recommend regular penetration testing. If your business handles payment card data, PCI DSS Requirement 11.4 requires it. ISO 27001 certification expects it as part of a mature security programme. Increasingly, testing is also how you demonstrate due diligence to regulators, auditors and business partners.
Customer trust
Your customers trust you with their data. A breach costs money, and it also costs relationships. When customers learn their personal information was exposed because of a preventable vulnerability, that trust is difficult to rebuild. Testing before an attacker does shows that you take their data seriously.
When your business needs a web penetration test
A product launch heads to production on Friday. It touches payments and customer data. Do you ship, or do you pause for a focused test? Timing matters. These are the common triggers that signal when to schedule a test.
- Before major releases that introduce new authentication flows, payment paths or sensitive data processing.
- After significant changes such as a framework upgrade, cloud migration, new API gateway or identity provider switch.
- Following an incident or near miss, to validate that root causes are removed and no side doors remain.
- When third-party integrations change, including payment processors, analytics SDKs and customer single sign-on.
- For compliance or customer requirements, such as PCI DSS, that call for periodic testing with evidence of remediation.
- During a merger or acquisition, where inherited web properties carry unknown risk.
How often should you run a web penetration test?
Testing frequency depends on your exposure and your rate of change.
- High-risk, high-change applications, such as customer portals and payment systems: test at least annually, plus after major changes.
- Moderate-risk applications, such as internal portals with some sensitive data: test every 12 to 18 months, or after significant updates.
- Low-risk applications, static or informational: light testing every 18 to 24 months, plus continuous scanning.
Consider business cycles too. If holiday traffic, annual enrolment or quarterly releases create peak load, schedule testing early enough to deal with findings without pressure.
Note
We favour an assumed breach mindset. That means we test what happens if an attacker slips past the first control, then measure how well you contain, detect and recover. It is a realistic way to judge resilience, and it pulls the long tail into scope: staging environments, admin consoles, old subdomains and forgotten APIs.
What gets tested in a web penetration test
A thorough test examines your application from several angles, looking for the weaknesses attackers commonly exploit. The OWASP Top 10 is a useful reference for the most critical web application risks. In practice, a tester works through the application in this order.
- Authentication and access control. Can someone bypass your login? Could a regular user reach administrator functions? Are password reset flows secure?
- Input handling. What happens when someone submits unexpected data through a form, a search box or a URL? Could it reach your database or run commands on your server?
- Session management. Are sessions properly protected, or could an attacker hijack a legitimate user's session and act on their behalf?
- Business logic. Could someone manipulate prices, bypass a payment flow or reach data they should not see?
- Configuration and infrastructure. Is the web server properly configured, are unnecessary services exposed, is sensitive information leaking through error messages or hidden files?
Understanding your attack surface
Not all parts of your web application carry equal risk. A login page open to anyone on the internet presents different challenges than an internal admin panel used by two people. An attack surface-led approach starts by understanding what matters most to your business: what would an attacker actually want, and what is the objective?
The attack surface pyramid is a way to think about this systematically. It has four layers, the most exposed at the top and the most privileged at the base.
- Level 1, internet exposed. Functionality anyone on the internet can reach: registration forms, login pages, search features and public booking systems. Anonymous users can use these features, which makes them the most likely entry point for attackers.
- Level 2, customer facing. The authenticated attack surface with non-administrative privileges: personal account management, individual features and read-only permissions in business platforms. It is exposed to your entire user base, so it is the next priority.
- Level 3, admin. The authenticated attack surface with administrative privileges: team management settings, write and modify permissions, and role-specific management interfaces. Fewer people have access, but the impact of a compromise is higher.
- Level 4, super admin. Full platform access with complete control. Few users hold these privileges, but the accounts are high-value targets, and a compromise here affects everything.
The framework lets you prioritise testing by real risk exposure. You do not need a full penetration test of every layer at once: focus the budget on your biggest attack surface first, then expand coverage as resources allow.
Beyond traditional penetration testing
Traditional testing provides valuable baseline coverage. An attack surface-led methodology takes it further by bringing the entire attack surface into scope, which aligns more closely with how real attackers operate. Real attackers do not limit themselves to predefined technology silos; they look for whatever weakness gets them to their objective. Thinking the same way turns a test into a genuine simulation rather than a compliance exercise, so no critical exposure is overlooked simply because it falls outside a traditional scope definition.
What to expect from a web penetration test
Understanding what happens during a test removes uncertainty and helps you prepare.
- Scoping and objectives. We define objectives and tailor the testing approach with our attack surface-led methodology, so scope and strategy match real-world threats and your business priorities.
- Reconnaissance. Testers gather information about your application the way an attacker would: identifying technologies, mapping functionality and learning how the system works.
- Testing and exploitation. Using manual techniques and specialised tools, testers probe for vulnerabilities and attempt to exploit them. Where they find a weakness, they demonstrate its real-world impact.
- Reporting. You receive a clear report detailing what was found, how serious each issue is and exactly how to fix it, with technical findings explained in business terms so you can prioritise effectively.
- Remediation support. Questions come up while your team works through the findings, and we remain available afterwards to clarify them.
We scope this service as the web attack surface, because the application is only part of what an attacker can reach from a browser. Read how we test it on our web application penetration testing page.
More from the front line
More articles from our testers

Advanced SQL injection: exploiting double query injection

Escalating privileges via linked database servers
Want our testers to look at your attack surface?
Tell us what you need protected. A tester, not a salesperson, replies within one working hour with the questions that set the scope.