Web Penetration Testing
Also known as:Web Pentest · Web Application Pentest · WAPT
Web Penetration Testing is the methodical, authorized testing of web applications, single-page apps, APIs, and their supporting infrastructure to identify exploitable vulnerabilitiesVulnerabilityA technical or organizational weakness that can be exploited by a threat. before real attackers do. It goes far beyond automated scanning: a skilled tester examines authentication flows, authorization logic, session handling, input validation, and business-specific workflows that no scanner can model.
Who commissions this test?
CISOs, product owners, development leads, and compliance teams are the typical stakeholders. Organizations pursuing PCI DSS compliance (Requirement 6), SOC 2 Type II, or ISO 27001 certification often require web pentests as evidence of due diligence. Product teams also commission them before launching a customer-facing application or after a major architectural change.
Test objectives
The goal is to identify as many exploitable weaknesses as possible within the defined scopeScopeThe explicitly defined systems, data, locations, activities, and exclusions covered by an engagement., assess their real-world impact, and deliver actionable remediationRemediationThe correction or mitigation of a confirmed security weakness, defect, or misconfiguration. guidance. Unlike a vulnerability assessmentVulnerability AssessmentSystematically identifies and assesses vulnerabilities in a defined environment., a web pentest proves exploitability through controlled exploitation rather than merely flagging potential issues.
What is tested?
Testing covers the full surface of a web application: authentication and session management, role-based and attribute-based access controlAccess ControlGoverns who is permitted to access specific systems, data, or functions., input handling across all parameters, file upload functionality, API endpoints, WebSocket channels, client-side logic, third-party integrations, server configuration, and HTTP security headers. Business logic is examined manually since automated tools cannot understand application-specific workflows.
Common findings
Typical vulnerabilities discovered during web pentests include Cross-Site ScriptingCross-Site ScriptingInjection of executable script code into web application content. (reflected, stored, and DOM-based), SQL InjectionSQL InjectionManipulates database queries through insufficiently validated inputs., Insecure Direct Object References (IDOR), broken access control allowing horizontal and vertical privilege escalation, Cross-Site Request ForgeryCross-Site Request ForgeryTriggers unwanted actions by an authenticated browser without the user's knowledge., Server-Side Request ForgeryServer-Side Request ForgeryExploits a server to send unauthorized requests to internal or external targets., security misconfigurations such as exposed admin panels or verbose error messages, insecure file uploads enabling remote code execution, broken authentication mechanisms, JWT implementation flaws, session fixation, information disclosure through HTTP headers and stack traces, and missing security headers like Content Security PolicyContent Security PolicyBrowser policy restricting the sources permitted for scripts and other web content. and HSTS. Testing methodology commonly follows the OWASPOpen Web Application Security ProjectNon-profit community providing standards, tools, and knowledge bases regarding application security. Top 10 and OWASP ASVS.
Typical engagement workflow
A web penetration test follows a structured process from initial contact through to project closure.
Interest and initial inquiry — the client reaches out, usually describing the application to be tested and the business reason (compliance, pre-launch, recurring assessment).
Scoping discussion — testers and the client discuss the application architecture, technology stack, number of roles, authenticated vs. unauthenticated testing, and any areas to exclude. This shapes the effort estimate.
Proposal and approval — a formal proposal is created outlining the scope, methodology, timeline, deliverables, and pricing. The client reviews and approves.
Scope definition — the exact targets are documented: URLs, environments (staging vs. production), test accounts per role, API documentation, and any restrictions.
Letter of Engagement — a legally binding document authorizes the testing, defines liability, emergency contacts, and communication channels. This protects both parties.
Additional authorizations — if the application is hosted by a third party or in the cloud, the tester may need written permission from the hosting provider. WAF whitelisting or IP allowlisting is arranged.
Information provisioning — depending on the approach (Black-BoxBlack Box TestingSecurity test conducted without internal knowledge of architecture, source code, or configuration., Gray-BoxGrey Box TestingSecurity test conducted with limited knowledge of and access rights to the target system., or White-Box), the client provides credentials, API documentation, source code access, or architecture diagrams.
Kick-off call — testers, developers, and stakeholders align on logistics, escalation paths, testing windows, and communication cadence.
Execution with ongoing communication — testers work through the application methodically, informing stakeholders of critical findings immediately rather than waiting for the final report. Daily or periodic status updates keep the project transparent.
Vulnerability collection and rating — all findings are documented with reproduction steps, evidence (screenshots, HTTP requests/responses), and a severity rating (typically CVSS or a risk-based model combining likelihood and impact).
Final report — a comprehensive report is produced containing an executive summary, detailed technical findings, risk ratings, and specific remediation recommendations for each vulnerability.
Presentation — results are presented to both technical and management audiences, explaining the findings, their business impact, and prioritized remediation steps.
Project closure — the engagement formally concludes. A retest is typically scheduled after the client has addressed the findings.
Who should commission this test — and when?
Any organization operating web applications should commission web penetration tests. Key triggers include pre-launch of new applications, after major releases or architectural changes, annually as a baseline, and whenever compliance frameworks demand it (PCI DSS quarterly/annually, SOC 2, ISO 27001). Organizations handling sensitive data — financial services, healthcare, e-commerce — should test more frequently and after every significant code change.
Related concepts
- Penetration TestingPenetration TestingAuthorized, methodical testing of a system for exploitable weaknesses, to find them before real attackers do.: The broader discipline of authorized security testing across all system types.
- Cross-Site Scripting (XSS)Cross-Site ScriptingInjection of executable script code into web application content.: Injection of malicious scripts into web pages viewed by other users.
- SQL InjectionSQL InjectionManipulates database queries through insufficiently validated inputs.: Insertion of malicious SQL statements through application input fields.
- Server-Side Request Forgery (SSRF)Server-Side Request ForgeryExploits a server to send unauthorized requests to internal or external targets.: Exploiting a server to make requests to unintended internal or external targets.
- OWASPOpen Web Application Security ProjectNon-profit community providing standards, tools, and knowledge bases regarding application security.: The leading open community producing web application security standards and guidance.
- Content Security PolicyContent Security PolicyBrowser policy restricting the sources permitted for scripts and other web content.: A browser security mechanism that mitigates XSS and data injection attacks.