Web Application Penetration Testing for Indian SaaS
Web application penetration testing for Indian SaaS: OWASP Top 10:2025 and API Top 10, how a test runs, a pre-test checklist, and DPDP Act and HIPAA duties.
TL;DR — Web application penetration testing (WAPT) is a permitted, human-led attack on your running web app and its APIs to prove what an attacker could do. A good test maps findings to OWASP, CWE and CVSS, gives a fix for each one and retests. Indian SaaS teams need it for enterprise deals, the DPDP Act and sector regulators.
What is web application penetration testing?#
Web application penetration testing is attacking a web application, with permission, within an agreed scope, and with evidence anyone can reproduce, to find how an attacker would abuse it. The output is not an opinion. It is a set of proven attack paths, each with a captured request and response, each mapped to a CWE and a CVSS vector, each with a fix and a retest after you fix it.
A useful working definition: WAPT is offensive security applied to the whole path from an anonymous internet user to the sensitive data and actions the application is meant to protect. That path crosses the front end, the API layer, login and sessions, the business logic, the back-end data stores and any third-party services in the flow. Each step is an attack surface. A report that covers the login page but misses the tenant check on /api/v2/reports/{id} is not a WAPT; it is a login-form review.
The term is used alongside web app pen testing, web application security assessment, application security testing and, loosely, VAPT (vulnerability assessment and penetration testing). The difference that matters: a penetration test is human-led, copies a real attacker and proves impact; a vulnerability assessment is broad automated scanning with unproven findings. Both have their place, but they are different deliverables, and no buyer should accept a scanner report as a WAPT.
This guide covers the frameworks a test maps to, the attack surface, the OWASP risk lists, how an engagement runs, what to fix before you call a tester, and how the DPDP Act and HIPAA apply to Indian SaaS.
How is WAPT different from a vulnerability scan or a bug bounty?#
Each answers a different question, and a mature programme uses all three in the right order.
| Vulnerability scan | Web application pen test | Bug bounty | |
|---|---|---|---|
| Who does it | Automated tools | Human testers, helped by tools | Independent researchers |
| Coverage | Broad, shallow | Scoped, deep | Unpredictable |
| Business logic | Not tested | Tested | Sometimes, by chance |
| Proof of impact | No | Yes, for every finding | Per report |
| Framework-mapped report | Partial | Yes | No |
| Best use | Hygiene between tests | Baseline and compliance evidence | Ongoing pressure after a baseline |
Vulnerability scanning. Tools such as Nessus, Burp Scanner, OWASP ZAP, Acunetix or Qualys crawl the application and match responses against signatures for known issues. Coverage is broad, findings are shallow and false positives are common. A scanner cannot understand your business logic. It is good for cheap, continuous hygiene and poor at anything that needs proof, chained attacks or logic analysis.
Web application penetration testing. Human testers build on scanner output with manual testing, chained attacks, business-logic analysis and attacker thinking. Every finding is checked end to end with reproduction steps and shown impact. Coverage is scoped rather than exhaustive: testers focus on the surfaces most likely to yield exploitable findings.
Bug bounty. Independent researchers probe a production application under a public or private programme (HackerOne, Bugcrowd, Intigriti) and are paid per valid finding. Coverage depends on which researchers take an interest. It works best after a WAPT baseline exists, to catch what a scoped engagement missed.
The right order is WAPT first (set the baseline), scanning second (keep up hygiene), bug bounty third (add ongoing pressure). Skipping WAPT and going straight to a bounty is a common and expensive mistake: researchers will find things, but you will have no framework-mapped evidence to hand an auditor.
Why does WAPT matter for Indian SaaS companies?#
Three forces have made WAPT a business issue for Indian SaaS founders rather than a box to tick.
Enterprise buyers ask for it. Indian SaaS companies selling to banks, insurers, hospitals and large global enterprises routinely receive vendor-security questionnaires asking for a recent WAPT report (usually within 12 months), the scope, a findings summary and the status of fixes. Without one, you scramble to arrange a test under deal pressure, or you lose the deal. Founders who test before the questionnaire arrives have the file ready.
The DPDP Act now has its Rules. India's Digital Personal Data Protection Act, 2023 was published on 11 August 2023. The government notified the DPDP Rules, 2025 on 13 November 2025, with an 18-month phased timeline for organisations to comply. Section 8(5) requires reasonable security safeguards to prevent a personal data breach, and Section 8(6) requires the Data Fiduciary to inform the Data Protection Board and each affected person of a breach.
A WAPT finding that shows a route to someone's personal data is a chance to fix it before it becomes a reportable breach. Ignoring that finding, and then being breached through the same route, leaves you on record as having known.
Regulators and supervisors ask too. RBI, SEBI and IRDAI expect regulated entities and their technology providers to run periodic VAPT. CERT-In's directions of 28 April 2022 require service providers, intermediaries, data centres, body corporates and government organisations to report listed cyber incidents within 6 hours of noticing them, and to keep ICT system logs for a rolling 180 days within India. For Indian healthtech serving US patients, the HIPAA Security Rule asks for periodic technical evaluation, which a WAPT helps meet.
Who needs a web application pen test?#
Exposure grows with a small number of factors. Check each one honestly.
- Real users touching real data. If your application is in production with real users and real data, not a demo or a prototype, you are past the "should we test?" point.
- Personal, financial or health data. If you process personal data covered by the DPDP Act, health records, financial records, source code or trade secrets, a successful attack becomes a data breach with notification duties.
- B2B selling to enterprises. If customers ask for security evidence during vendor due diligence, a WAPT report is often the fastest way to unblock the deal.
- Multi-tenant architecture. If you serve many customers from shared infrastructure, cross-tenant data leaks become a class of finding that only human-led testing finds reliably.
- Payments, wallets and transfers. If your application moves money, the step from exploit to loss is short and expensive.
- APIs used by third parties. If partners or developers call your APIs, the API surface is its own scope with its own kinds of findings.
- Regulated markets. If you serve customers in India (DPDP Act), US healthcare (HIPAA), the EU (GDPR, NIS2) or a regulated Indian sector (RBI, SEBI, IRDAI), expect to be asked for WAPT evidence.
The clearest fit in India today: a B2B SaaS company, seed to Series B, with a multi-tenant production application holding sensitive customer data and selling to regulated or enterprise buyers. These teams often under-invest in testing until a procurement request forces a rushed two-week engagement. Planning one WAPT a year, plus one after any major architecture change, costs less.
Which frameworks should a WAPT map to?#
Every finding in a rigorous WAPT should map to at least one recognised framework. Six matter most.
OWASP Top 10. OWASP's list of the most critical web application risks. The current edition is the OWASP Top 10:2025, which replaced the 2021 edition. Many questionnaires and older reports still cite 2021 IDs, so a good report states which edition it uses and maps between the two where a buyer needs it.
OWASP Application Security Verification Standard (ASVS). Where the Top 10 lists risks, the ASVS lists requirements: a framework of security requirements for designing, building and testing web applications and services. The current stable release is ASVS 5.0.0, published on 30 May 2025. A serious WAPT report shows which ASVS requirements were tested and which were out of scope.
OWASP API Security Top 10 (2023). The API-specific list. APIs get breached in ways the general Top 10 covers only partly. Any test of an API-heavy product should tag findings against API1 to API10 of the 2023 edition.
OWASP Web Security Testing Guide (WSTG). The tester's procedural reference: a catalogue of test cases across information gathering, configuration, identity, authentication, authorisation, sessions, input validation, error handling, cryptography, business logic, the client side and APIs. The current stable version is 4.2, with version 5.0 in development. A good coverage sheet references WSTG test IDs so you can see what was and was not tried.
Penetration Testing Execution Standard (PTES). The framework for how an engagement is structured. PTES has seven sections: pre-engagement interactions, intelligence gathering, threat modelling, vulnerability analysis, exploitation, post-exploitation and reporting.
NIST SP 800-115. NIST's Technical Guide to Information Security Testing and Assessment, published in September 2008. It overlaps with PTES on method and is useful when a test has to satisfy both Indian and US buyers.
On top of these:
- CWE. The Common Weakness Enumeration is a community-developed list of software and hardware weakness types. Every finding gets a CWE ID (CWE-79 for XSS, CWE-89 for SQL injection, CWE-284 for improper access control and so on). Developers use these to find training material.
- CVSS. Every finding is scored with the Common Vulnerability Scoring System, v3.1 or the newer v4.0, with the vector string shown. Security teams use this to triage.
- MITRE ATT&CK. Where relevant, ATT&CK tactic and technique IDs (Initial Access, Credential Access, Discovery, Collection, Exfiltration, Impact) give context to threat-intelligence and detection teams.
- DPDP Act 2023 and CERT-In for Indian applications; HIPAA, PCI DSS and SOC 2 where they apply.
A finding without a framework tag is an anecdote. A finding tagged OWASP A01:2025 + CWE-284 + CVSS 3.1: 8.1 (High) + WSTG-ATHZ-02 stands up in front of any auditor, buyer or engineering review.
What does an attacker see in a modern web application?#
Before naming techniques, know what an attacker sees. A typical modern web application has these interfaces:
- Front end (browser code). HTML, CSS, JavaScript bundles, service workers, browser storage (localStorage, sessionStorage, IndexedDB) and cookies. Everything loaded into the browser can be inspected by the user, including any secret placed there by mistake.
- API layer. REST endpoints, GraphQL resolvers, gRPC services, WebSocket channels and server-sent events. This is the main interface an attacker probes. Authorisation checks live here or nowhere.
- Authentication. Login, sign-up, password reset, MFA enrolment and challenge, session issue, refresh and logout, OAuth/OIDC and SAML flows, API keys, and service-to-service auth. Any weakness here becomes an account takeover.
- Session management. Session tokens (cookies, JWTs, opaque tokens), their lifetime, rotation, revocation and binding. Weakness here becomes session hijacking or authorisation bypass.
- Business logic. The application's actual rules: who can do what, in which order, with which state changes. Scanners cannot see it; human testers can.
- Back-end services and data stores. SQL and NoSQL databases, caches (Redis, Memcached), object storage (S3, Azure Blob, GCS), search indexes (Elasticsearch, OpenSearch) and queues (Kafka, RabbitMQ, SQS). Reachable via SSRF, injection or privilege escalation.
- Third-party integrations. Payment gateways, KYC providers, SMS and email providers, analytics and error-monitoring SDKs, feature flags, CDN settings and SSO identity providers. Any of these can leak data, mis-authorise or be used to pivot inward.
- File upload and download. Profile pictures, attachments, imported spreadsheets, PDFs read by AI agents. Historically a top pivot point for SSRF, code execution through processing libraries, and stored XSS.
- Mobile app and web views. If a mobile app talks to the same API, it often behaves differently from the web client, sometimes with weaker validation.
- Admin panel. Almost always weaker than the customer product, and a common target after a low-privilege account finds an authorisation gap.
Any one of these can be the way in. A WAPT lists each in scope, tests each with attacker techniques and produces evidence per finding.
What does the OWASP Top 10:2025 cover?#
The OWASP Top 10:2025 lists ten risk categories. The table shows each one, its 2021 equivalent and what a tester looks for.
| 2025 category | 2021 equivalent | What testers look for |
|---|---|---|
| A01 Broken Access Control | A01, plus A10 SSRF | Reading another user's data by changing an ID (IDOR), customer roles reaching admin functions, tenant A querying tenant B, checks enforced only in the UI, and SSRF |
| A02 Security Misconfiguration | A05 | Stack traces in errors, default credentials, missing security headers, directory listing, permissive CORS, public buckets, reachable cloud metadata |
| A03 Software Supply Chain Failures | Expands A06 | Known-vulnerable packages and base images, and weak points in dependencies, build systems and distribution |
| A04 Cryptographic Failures | A02 | Plaintext credentials, weak TLS, missing HSTS, secrets in URLs or logs, hardcoded keys, weak password hashing, JWT alg:none |
| A05 Injection | A03 | SQL, NoSQL, LDAP, OS command, template and expression-language injection, and XSS |
| A06 Insecure Design | A04 | Missing rate limits, no threat model, no separation of duties, tenant isolation not designed in |
| A07 Authentication Failures | A07 | No MFA on privileged accounts, credential stuffing, brute force, predictable or long-lived session tokens, session fixation |
| A08 Software or Data Integrity Failures | A08 | Unsigned updates, insecure CI/CD, mutable dependency sources, unsafe deserialisation |
| A09 Security Logging and Alerting Failures | A09 | Login failures and high-value actions not logged, logs that can be tampered with, no alerts on abuse |
| A10 Mishandling of Exceptional Conditions | New | Poor error handling, logic errors and systems that "fail open" under abnormal conditions |
OWASP's 2025 introduction explains the main moves: SSRF has been rolled into Broken Access Control, Software Supply Chain Failures expands the old "Vulnerable and Outdated Components" category, and Mishandling of Exceptional Conditions is new.
How do testers attack each category, and what is the fix?#
Broken access control. Access-control failures range from horizontal escalation (user A reads user B's data through an ID in the URL, the "IDOR" pattern) to vertical escalation (a customer reaches admin functions) to full tenant bypass (a filter that exists only in the front end). Common causes: the UI hides a button but the back end accepts the call; path parameters trusted without an ownership check; bulk endpoints that skip per-item checks; JWT claims trusted without validation; roles read from a client header.
The fix: treat authorisation as code, not UI. Check ownership on every object-level operation, deny by default, enforce tenant filters in the data layer, and route every decision through one central function whose call sites you audit.
Server-side request forgery (now under A01). The application fetches a URL that an attacker partly controls, and the attacker uses it to reach internal services or cloud metadata endpoints. On AWS that endpoint is 169.254.169.254; on GCP it is metadata.google.internal. Common surfaces are image proxies, webhook senders, RSS readers, PDF renderers and link-preview generators.
The fix: allow-list destinations rather than block-list them, protect DNS rebinding, put outbound-fetching workloads in their own network segment, and on AWS require IMDSv2. IMDSv2 uses session tokens, and its token responses have a default hop limit of 1.
Cryptographic failures. Sensitive data is exposed because cryptography is missing, weak or misused: plaintext credentials, deprecated TLS, missing HSTS, sensitive data in URLs or logs, hardcoded keys, MD5 or SHA-1 for passwords, ECB mode, static IVs, or JWTs accepting alg:none. A pattern we test for often is JWT algorithm confusion (see our JWT algorithm confusion explainer).
The fix: TLS 1.2 or higher with HSTS; passwords hashed with Argon2id, scrypt or bcrypt (cost factor 12 or more); secrets in a secrets manager, not in code; JWT libraries pinned to the intended algorithm.
Injection. Untrusted input is treated as code or a query by a downstream interpreter. Modern frameworks reduce SQL injection when developers use parameterised queries consistently. Where it still appears: raw query strings in edge cases (search filters, dynamic ORDER BY, admin tools), NoSQL query objects built from user input, templates that trust user variables, and shell calls built from user input.
The fix: parameterise everywhere, validate input as an extra layer, give database accounts least privilege, and never pass user input to eval, exec or a shell.
Insecure design. Design-level flaws rather than coding mistakes: missing rate limits, no threat modelling, no separation of duties, tenant isolation not built into the architecture, multi-step workflows with no authorisation check between steps. The fix is threat modelling before building, secure design patterns as team defaults, and trust boundaries written into the architecture documents.
Security misconfiguration. Missing hardening: verbose errors, default credentials, unnecessary services, missing headers (CSP, X-Frame-Options, Referrer-Policy, Permissions-Policy), directory listing, permissive CORS, public S3 buckets, and cloud metadata reachable from containers. The fix is hardening baselines automated in the deployment pipeline, security-header middleware by default, rotated secrets and cloud guardrails.
Software supply chain failures. Known-vulnerable npm, PyPI, Maven or Composer packages, unpatched base images and web servers with known exploits, plus weaknesses in how software is built and shipped. The fix: generate an SBOM at build time, scan dependencies in CI (Dependabot, Snyk, Trivy), set patching deadlines and refresh base images on a schedule.
Authentication failures. No MFA on privileged accounts, weak password rules, no defence against credential stuffing or brute force, predictable tokens, tokens not cleared on logout, session fixation and weak "remember me". The fix: MFA for sensitive actions, checking passwords against known-breached lists, adaptive rate limits, and random session tokens rotated on privilege change.
Software or data integrity failures. Trusting updates or data without checking integrity: unsigned updates, insecure CI/CD pipelines, mutable dependency sources and unsafe deserialisation that allows code execution. The fix is signed releases, verified update channels, pinned dependencies and safe deserialisation libraries.
Security logging and alerting failures. An attack in progress goes unseen because logging is absent, incomplete or unwatched. The fix is a logging standard covering login events, authorisation decisions, high-value business actions and admin actions, with central, tamper-protected storage and alerts on abuse.
Mishandling of exceptional conditions. What happens when something unexpected occurs: an error path that skips a security check, a timeout that grants access, an exception that leaks internal detail. Testers deliberately trigger errors, malformed input and partial failures to see whether the application fails safely or fails open.
What does the OWASP API Security Top 10 (2023) cover?#
APIs get their own list because their attack surface differs from server-rendered pages in important ways. These are the 2023 categories:
- API1 Broken Object Level Authorization. The API version of IDOR:
/api/v1/orders/{orderId}returns the order without checking the caller owns it. It is consistently the top finding on API-only tests. Fix: check authorisation on every object, using the authenticated identity, in code developers cannot forget (middleware, ORM scoping or one central function). - API2 Broken Authentication. Missing MFA on sensitive endpoints, weak or never-rotated API keys, JWT signing problems, refresh-token abuse, weak reset flows and OAuth misconfiguration. Fix: a robust auth library, key rotation, JWT algorithm pinning and secure OAuth patterns.
- API3 Broken Object Property Level Authorization. Combines the old "mass assignment" and "excessive data exposure". The API accepts fields it should not (
is_admin: true,balance: 99999) or returns fields the caller should not see. Fix: allow-list readable and writable fields per role, and never expose raw database models. - API4 Unrestricted Resource Consumption. Missing rate limits, quotas and size caps allow denial of service, runaway cloud bills and expensive queries. Fix: limits per IP, user, endpoint and tenant; payload size caps; timeouts on downstream calls.
- API5 Broken Function Level Authorization. A low-privilege user calls an admin endpoint that lacks a role check, often because admin routes share a prefix with user routes. Fix: deny by default and require a logged authorisation decision for every function.
- API6 Unrestricted Access to Sensitive Business Flows. An attacker automates a business flow (bulk sign-ups, referral farming, ticket scalping) faster than the business can tolerate, even though each request looks legitimate. Fix: friction such as CAPTCHA and velocity checks, and monitoring for abuse patterns.
- API7 Server Side Request Forgery. Listed separately because APIs often expose URL parameters (webhook targets, callbacks, image fetchers). Fix: as for SSRF above.
- API8 Security Misconfiguration. Verbose errors, permissive CORS (
Access-Control-Allow-Origin: *on authenticated endpoints is a common finding), missing headers, unneeded HTTP methods and exposed debug endpoints. Fix: a hardening baseline for API responses. - API9 Improper Inventory Management. Old versions left running after a new one ships (
/api/v1/*still live after the move to/api/v2/*), staging reachable from the internet, undocumented "shadow" APIs. Fix: a living API inventory and planned decommissioning. - API10 Unsafe Consumption of APIs. Trusting third-party API responses without validation, following redirects to untrusted places, or loading third-party data into privileged objects. Fix: treat third-party responses as untrusted input.
A thorough test of an API-heavy product tags findings against both the OWASP Top 10 and the API Security Top 10 where they apply. The two lists complement each other.
How does a WAPT engagement run?#
A rigorous engagement follows a documented sequence with evidence at each stage. This six-phase model follows PTES, NIST SP 800-115 and the OWASP WSTG.
- Reconnaissance. Passive research on the target: subdomains, exposed staging sites, historical scan data (Shodan, Censys), public code repositories that reveal endpoint patterns, technology signals and breach-corpus checks for your domain.
- Enumeration. Active mapping: authenticated crawling, reading JavaScript for API routes hidden from the UI, parameter discovery, finding upload surfaces, admin panels and third-party integrations. The coverage sheet starts here so you can confirm the scope was actually walked.
- Vulnerability analysis. Automated and manual probing of each surface, with tools such as Burp Suite Pro, OWASP ZAP and sqlmap, then manual work where automation is weakest: authorisation boundaries, business logic, sessions, custom crypto and file processing.
- Exploitation. Building real attack chains by hand. Every high-severity finding is proven end to end, from attacker action to concrete impact: data read, privileged action taken, another system reached, a tenant boundary crossed. No theoretical findings.
- Post-exploitation. Measuring the blast radius. If an authorisation bypass works, what data can be read, what actions taken, how many users are affected, and which compliance duties are triggered? The report must answer "how bad is this?"
- Report and retest. An executive summary for decision-makers, technical detail per finding (CVSS vector, CWE, OWASP and ASVS mapping, reproduction steps, fix, references), then a retest of what you fixed.
The minimum evidence per finding: the reproduction request (a curl command or Burp export), the response that shows impact, a timestamp, the environment, CWE and OWASP tags, the CVSS score with its vector, and a fix with example code where it helps.
Black-box, grey-box or white-box: which should you choose?#
The three types differ in how much the tester is told before starting.
| Black-box | Grey-box | White-box | |
|---|---|---|---|
| Tester receives | The URL, maybe one low-privilege account | Accounts in every role, API docs, an architecture overview | All of that plus source code and internal design documents |
| Copies | An outside attacker with no inside knowledge | A logged-in attacker who has done their homework | A fully informed attacker or an insider |
| Strength | Shows exactly what outsiders see | Time goes on finding issues, not mapping; tenant and role issues surface reliably | Deepest coverage; can combine code review with testing |
| Weakness | Time spent on mapping; deep logic and admin issues may be missed | Tests reconnaissance less hard | Highest cost; you must share your code |
| Best for | First look from outside; frameworks that require it | Most SaaS engagements, especially multi-tenant B2B | High-stakes launches, regulated fintech or healthtech |
Most Indian SaaS engagements land on grey-box. Black-box adds cost without matching value for a scoped test. White-box is worth the extra when the product justifies it, for example a fintech moving money or a healthtech holding patient records.
What does authentication and session testing cover?#
Authentication and sessions consistently produce the most findings, and their weaknesses turn straight into account takeover, the fastest and most damaging attack chain. Every WAPT should give them dedicated time.
- Login. Rate limits on failures, correct lockout, credential-stuffing defences, error messages that do not reveal which usernames exist, consistent response times, and the MFA challenge.
- Sign-up. Email verification, disposable-domain filtering if in scope, duplicate-account prevention and invitation-token security.
- Password reset. Token randomness, single use, expiry, delivery channel, out-of-band checks, session invalidation on password change and race conditions.
- Session tokens. Cookie flags (
Secure,HttpOnly,SameSite), JWT algorithm pinning, lifetime, refresh-token rotation and binding where appropriate. - Session lifecycle. Logout that clears the session on the server, not just the cookie; revocation on password change; re-authentication when MFA settings change; handling of concurrent sessions.
- MFA. TOTP secret strength, single-use backup codes, strength of the recovery flow and correct WebAuthn implementation.
- API keys. Randomness, hashed storage (never plaintext), rotation, per-key rate limits, narrow scopes and fast revocation.
- OAuth 2.x and OIDC.
stateparameter checks, PKCE for public clients, strict redirect-URI allow-lists, audience checks and refresh-token rotation. - JWTs. Reject
noneand algorithm confusion, verify the signature before reading claims, and enforceexp,audandiss. Handle key rotation through thekidheader safely. - SSO. SAML signature validation (resisting XML signature wrapping), replay prevention and correct mapping to the local user.
- Password storage. Argon2id, scrypt or bcrypt (cost 12 or more); never MD5, SHA-1, unsalted SHA-256 or home-made schemes.
These findings map to OWASP A07:2025, API2:2023 and CWEs such as CWE-287 (improper authentication), CWE-384 (session fixation), CWE-613 (insufficient session expiration) and CWE-798 (hardcoded credentials).
Why do scanners miss business logic flaws?#
Scanners cannot test business logic, because that requires knowing what the application is supposed to allow, and no signature encodes that. A scanner does not know that a discount code should apply once, that a large bank transfer should need MFA, that a support agent should not read messages between two customers, or that a referral bonus should pay only after onboarding. Only a human who reads the specification, or works it out from the UI, can test these rules.
Common business logic findings:
- State-transition bypass. An order moves from
pending_paymentstraight toshippedthrough a status endpoint that skips payment checks. - Skipped steps. A multi-step form whose checks run only in the browser; the attacker submits the final step with made-up earlier steps.
- Race conditions. Two simultaneous requests both redeem a single-use coupon because the "already used" check is not transactional.
- Numeric edge cases. Negative quantities, negative refunds and integer overflow in discount maths.
- Time-of-check to time-of-use. A balance is checked and then updated in two non-atomic steps, allowing double spending.
- Rewards abuse. Self-referral loops, chains of fake accounts and reward farming.
- Tenant boundary violations through logic. An invite flow adds a user to the inviter's tenant without checking whether that user already belongs to another.
- Rate limits sidestepped. A legitimate-looking sequence of requests achieves the effect of a rate-limit bypass without tripping the limiter.
The method: threat-model the flow before probing it. List the intended actions and the rules on each, then try to break each rule in every way a patient attacker could imagine. This is human work, because these flaws are specific to each application.
How do testers handle REST, GraphQL and gRPC APIs?#
Different API styles produce different kinds of findings, so an API-heavy product needs style-specific testing.
REST. Object-level authorisation on every endpoint that takes an ID, function-level authorisation on every route, mass assignment on every write, excessive data on every read, rate limits on sensitive operations, HTTP method allow-lists (no PUT or DELETE where only GET is intended), pagination limits and input validation.
GraphQL. Introspection exposure (usually disabled in production), query depth and complexity limits (unbounded nesting allows denial of service), authorisation in every resolver, batching abuse (one request carrying thousands of sub-queries), field-level authorisation, mutation authorisation and IDOR through GraphQL IDs.
gRPC. Method-level authorisation, message size limits, streaming abuse (long-lived streams as denial of service), TLS on the channel and reflection exposure (usually disabled in production).
WebSockets and server-sent events. Authentication on the upgrade request, authorisation on every message, message rate and size limits, and Origin header checks.
Webhook receivers. Signature verification, replay protection (a nonce or timestamp window), TLS enforcement and SSRF through any configurable webhook target.
These findings map mostly to the OWASP API Security Top 10 (2023), with CWE and CVSS tags on each.
What does client-side testing cover?#
The browser side of an application is its own attack surface.
Cross-site scripting (XSS). Reflected XSS comes back in the response to a crafted URL. Stored XSS is saved on the server and shown to other users. DOM-based XSS runs in client-side JavaScript without reaching the server, through location.hash, postMessage or document.referrer. Fix: encode output for its context, enforce a nonce- or hash-based Content Security Policy, and ban dangerouslySetInnerHTML and similar unless the input is proven safe.
Cross-site request forgery (CSRF). An attacker's site makes the victim's browser send an authenticated request. SameSite cookies reduce this a lot, but it still matters for non-cookie auth, cross-origin form posts and older browsers. Fix: SameSite=Strict or Lax session cookies, CSRF tokens on state-changing endpoints, and Origin and Referer checks.
Prototype pollution. A JavaScript-specific flaw where attacker input changes Object.prototype and alters unrelated code. It appears in Node.js servers and modern front ends. Fix: use Map for user-controlled keys, freeze Object.prototype, and keep libraries patched.
postMessage abuse. Receivers that trust message data without checking event.origin can be attacked from any embedded frame or opener. Fix: check event.origin against an allow-list in every receiver.
Clickjacking. Your page is framed invisibly inside an attacker's page, so the user's clicks trigger your actions. Fix: X-Frame-Options: DENY or CSP frame-ancestors 'none' (or a strict allow-list).
Open redirects. Your application redirects to a URL the user controls, enabling phishing links that look legitimate. Fix: allow-list redirect targets, or show a warning page.
Sensitive data in browser storage. Session tokens in localStorage (readable by any XSS), API keys in front-end bundles and personal data cached in IndexedDB without expiry. Fix: session tokens in HttpOnly cookies, no secrets in front-end code, and local caches that expire and clear on logout.
These map to OWASP A05:2025 (injection, which covers XSS), CWE-79 (XSS), CWE-352 (CSRF), CWE-1321 (prototype pollution), CWE-451 (clickjacking) and CWE-601 (open redirect).
Which findings come up most in API-heavy SaaS?#
These are the findings we test hardest for. None is exotic, and most map directly to the OWASP API Security Top 10 (2023):
- IDOR on API endpoints (API1). Object IDs in URLs with no ownership check, so any logged-in user with a script can read other tenants' data.
- Mass assignment on profile updates. The client sends
is_admin: trueand the ORM quietly applies it. - Weak JWT verification. The
nonealgorithm accepted, or asymmetric-to-symmetric confusion that lets a public key act as an HMAC secret. - No rate limits on login and password reset. Credential stuffing at full speed, plus username discovery through timing.
- Verbose errors. Framework and ORM versions, internal paths and sometimes column names shown on any error.
- SSRF on upload and image-fetch endpoints. A common chain into cloud metadata credentials on AWS workloads that do not enforce IMDSv2.
- Cross-tenant leaks through caches or search indexes. Tenant isolation enforced in the main database but forgotten in the cache or search index.
- Wide-open CORS on authenticated endpoints.
Access-Control-Allow-Origin: *paired withAccess-Control-Allow-Credentials: true. Browsers reject that pair, but its presence signals a misunderstanding that usually shows up as an exploitable variant nearby. - File processing chains. SVG uploads that run embedded scripts; PDF or Office processing that fetches external resources.
- Admin panel reachable from the customer side. No network separation, so a compromised customer account is one authorisation gap away from admin functions.
The findings are not new; every OWASP category describes them. What surprises teams is which of them are present in their own system. Almost every team believes it has covered these, and most are wrong about at least two.
What should a WAPT report include?#
A serious engagement should hand you:
- Executive summary (2–4 pages). Plain-language view of your security posture, top findings ranked by risk, an overall rating and a prioritised fix plan.
- Technical findings report. For every finding: title; OWASP Top 10, API Top 10, ASVS and WSTG mapping; CWE; CVSS score with vector; affected components; reproduction steps you can copy (ideally a curl command or Burp export); evidence; and a fix with code or configuration examples.
- Reproduction package. The scripts, payloads and sample requests used, so your team can re-check fixes themselves.
- Attack-flow diagrams. For multi-step high-severity findings, a diagram from entry point to final impact.
- Framework mapping tables. Findings cross-referenced to OWASP lists, ASVS, CWE, ATT&CK where relevant, and your compliance frameworks (DPDP Act, HIPAA, PCI DSS, SOC 2).
- Fix-priority matrix. Findings ranked by exploitability and business impact, with a suggested owner and rough effort.
- Retest report. After your fixes: which findings are closed, partly addressed, still open or accepted with a reason.
- Coverage sheet. WSTG test IDs and ASVS requirements attempted, marked pass, fail, not applicable or out of scope. Buyers often ask "was X tested?", and this answers it.
- Readout call. A 30–60 minute walkthrough with your engineering and security teams.
A PDF on its own is a report, not an engagement. The reproduction package, the coverage sheet and the retest are what turn findings into fixes and evidence.
How is a WAPT scoped, and how long does it take?#
These are the common engagement shapes. Durations are typical working days and vary with the size of the application.
| Shape | Typical length | What it covers |
|---|---|---|
| Mini vulnerability assessment | 2–5 days | Automated scanning plus a light manual pass; tells you whether a full test is needed |
| Focused WAPT | 5–10 days | One product area, API subset or new feature, usually grey-box |
| Full WAPT | 10–20 days | The whole production application: front end, APIs, auth, sessions, logic, integrations, uploads; report and retest |
| WAPT plus API test | 15–25 days | Products with a large API used directly by customers, mapped to both OWASP lists |
| White-box WAPT with code review | 15–30 days | Dynamic testing plus secure code review of the riskiest modules |
| Continuous testing | Ongoing | A lighter check every sprint and a deeper test each quarter, for fast-changing products |
Fixed-fee pricing for a defined scope is usually easier to plan around than time-and-materials, because it rewards finishing the work rather than hours spent. Be wary of quotes far below the market. The gap is usually made up with less manual testing (a rebadged scanner report), no retest, or a thin report.
What should you fix before calling a WAPT firm?#
Fixing the obvious issues first means the tester spends their time on subtle attack chains, not on things you could have fixed for free. Before scoping a test, check these:
- Your latest production dependency scan has no known-critical CVEs, or each exception is documented with its mitigating control.
- Every response sets
Strict-Transport-Security,Content-Security-Policy,X-Frame-Optionsor CSPframe-ancestors,Referrer-Policy,Permissions-PolicyandX-Content-Type-Options: nosniff. - CORS is restrictive: no
Access-Control-Allow-Origin: *on authenticated endpoints, and an explicit list of trusted origins. - Every API endpoint sits behind authentication middleware, with deny-by-default enforced globally rather than per endpoint.
- Every object-level operation checks ownership in server-side code, not in the front end.
- JWT verification pins the expected algorithm and checks
exp,audandiss. - Passwords are stored with Argon2id, scrypt or bcrypt (cost 12 or more), never MD5, SHA-1 or unsalted SHA-256.
- Login, password reset and abuse-prone endpoints (search, invite, export) have rate limits.
- Production errors show no stack traces or framework versions.
- Test accounts are ready for every relevant role, including a pair in different tenants.
- A one-page architecture overview exists with the trust boundaries marked.
- The file upload pipeline has been reviewed for SSRF, XSS through SVG and content-type sniffing.
- Cloud metadata endpoints are unreachable from application workloads, or protected by IMDSv2 or the equivalent.
- Logs capture login events, authorisation decisions, high-value business actions and admin actions.
- A staging environment exists, or you have agreed in writing to production testing within a set scope and change window.
How does the DPDP Act apply to web application testing?#
The DPDP Act applies to the processing of digital personal data in India, and to processing outside India connected with offering goods or services to people in India. Nearly every customer-facing and B2B SaaS product is in scope. The DPDP Rules, 2025 give organisations an 18-month phased timeline to comply.
Where the Act meets a WAPT:
- Section 5 (notice). People must be told the purpose of processing. A finding that shows data used beyond that purpose, for example through logs, analytics or reuse, is a compliance issue as well as a technical one.
- Section 8(5) (security safeguards). Data Fiduciaries must take reasonable security safeguards to prevent a personal data breach, including for processing done by their Data Processors. WAPT evidence shows those safeguards are tested.
- Section 8(6) (breach intimation). A breach must be reported to the Data Protection Board and each affected person. If a finding shows a route to personal data, fix it before it becomes a breach. Tag such findings with DPDP relevance alongside the OWASP and CWE tags.
- Section 8(7) and Section 12 (erasure, correction and updating). People can ask for their data to be corrected or erased, and data must be erased once its purpose is served. A WAPT can check that erasure really reaches caches, search indexes and downstream analytics.
- Data Processors. If third-party services (SMS gateways, email providers, analytics SDKs) process personal data for you, check that technical controls match the contract, not just the paperwork.
- Section 10 (Significant Data Fiduciaries). Organisations notified as Significant Data Fiduciaries must carry out periodic Data Protection Impact Assessments and audits, and appoint an independent data auditor. WAPT findings feed those assessments.
- Consent. Capturing consent, withdrawing it and limiting access to what was consented to are all testable. Broken consent handling is a DPDP issue even without a breach.
How does HIPAA apply to Indian healthtech?#
Indian healthtech products that handle US patients' health information for US covered entities, such as telemedicine platforms, health-record tools, imaging services and clinical-workflow SaaS, usually act as business associates under HIPAA.
Where the HIPAA Security Rule meets a WAPT:
- §164.308(a)(1)(ii)(A), risk analysis. A required assessment of risks to electronic protected health information (ePHI). WAPT findings feed it.
- §164.308(a)(8), evaluation. Periodic technical and non-technical evaluation of whether security policies meet the rule. A yearly WAPT is a common technical part of this.
- §164.312(a)(1), access control. Implementation specifications cover unique user identification and emergency access (required), and automatic logoff and encryption (addressable). A WAPT tests these directly.
- §164.312(b), audit controls. Activity logging on systems holding ePHI. A WAPT can check that logging exists and works.
- §164.312(c)(1), integrity. Protecting ePHI from improper change. A WAPT tests for injection, mass assignment and race conditions that could allow it.
- §164.312(e)(1), transmission security. Protecting ePHI in transit. A WAPT checks the TLS configuration.
- Breach notification. Under the Breach Notification Rule, covered entities notify affected individuals, the HHS Secretary and, for breaches affecting more than 500 residents of a state or jurisdiction, the media. A business associate must notify the covered entity within 60 days of discovery. Findings that expose ePHI are priority fixes.
- Business Associate Agreement. Your agreement with the US customer will usually require regular evaluation of technical safeguards, and a WAPT is the usual evidence.
Scope a WAPT for healthtech with HIPAA tagging: flag findings that touch ePHI separately and map them to the relevant Security Rule sections.
How does WAPT fit with AI red teaming and ISO 42001?#
WAPT is one part of a broader offensive security programme. Two related engagements come up often for AI-native Indian SaaS.
AI red teaming. If your application includes AI features (chat assistants, RAG search, agents, generated content), the AI surface needs its own engagement, using frameworks such as the OWASP Top 10 for LLM Applications, MITRE ATLAS and the NIST AI RMF. A WAPT tests the web application around the AI; AI red teaming tests the AI system inside. Both are needed. See our AI red teaming guide.
ISO/IEC 42001 readiness. For AI-native SaaS working towards an AI management system under ISO/IEC 42001:2023, WAPT and AI red team results provide evidence for several parts of the system. Run the technical tests, fix the findings, then go to the audit with evidence in hand. See our ISO 42001 readiness guide.
A sound security programme for an AI-native SaaS combines continuous scanning, a yearly WAPT, AI red teaming of the AI surface and ISO 42001 readiness work. Each covers what the others do not.
How do we approach web application testing?#
We built our approach for Indian SaaS companies selling to regulated and enterprise buyers. Three principles guide it.
Evidence, not opinion. Every finding comes with a reproducible payload (a curl command, Burp export or script), a captured request and response, and the reasoning behind its score. If we cannot reproduce it within scope, it does not go in the report.
Framework-mapped reports. Every finding is tagged with its OWASP Top 10 category, OWASP API Security Top 10 category where relevant, CWE, CVSS score with vector, ASVS requirement and WSTG test ID where applicable, and any compliance framework that matters to you (DPDP Act, HIPAA, PCI DSS, SOC 2, RBI, SEBI, IRDAI). Auditors read the tags, developers read the fixes and executives read the summary.
We advise on the fix and retest. We find the issue, advise your team on the fix and retest. The engagement closes when findings are shown to be fixed or accepted with a written reason.
See our web application pen testing service for scoping options, or start with a free Exposure Check to see what an outside attacker can already find. To talk about a scope, contact us.
Frequently asked questions#
How is web application penetration testing different from a vulnerability scan?#
A scan runs automated signature checks: broad, shallow, prone to false positives and blind to business logic. A penetration test adds human testers who chain findings, test logic and prove impact end to end. A scanner report is not a WAPT report, and enterprise buyers know the difference.
How often should we run a WAPT?#
At least once a year, plus an extra test after any major change such as an auth migration, a new API surface or a cloud move. Fast-changing products benefit from continuous testing. Many compliance programmes expect a yearly test.
What is the difference between VAPT and WAPT?#
VAPT (vulnerability assessment and penetration testing) is the broad term common in Indian regulation. WAPT is the web application part of it. A VAPT may also include network, cloud and mobile testing, depending on what the target actually has.
Should we test staging or production?#
Staging is safer but must closely match production for findings to carry over. Production is more realistic but needs an agreed change window, data-handling terms and a rollback plan. A common approach is staging for the main test, with a light, non-destructive check in production; payment flows and irreversible actions stay in staging.
How do you handle our data during testing?#
Data handling is agreed per engagement in the statement of work and the data processing agreement. By default we use test data and touch no production personal data unless that is explicitly in scope. Artefacts are encrypted at rest and deleted at the end of the agreed retention period.
Is The Zyber Security CERT-In empanelled?#
Not yet. If a rule or contract requires a CERT-In empanelled auditor, check the firm on CERT-In's own empanelment list before you sign. Our guide to choosing a security testing partner explains how.
Sources#
- OWASP, Top 10:2025
- OWASP, Top 10:2025 introduction and changes
- OWASP, API Security Top 10 2023
- OWASP, Application Security Verification Standard
- OWASP, Web Security Testing Guide
- NIST, SP 800-115: Technical Guide to Information Security Testing and Assessment
- Penetration Testing Execution Standard (PTES)
- MITRE, ATT&CK
- MITRE, About CWE
- FIRST, Common Vulnerability Scoring System
- MeitY, Digital Personal Data Protection Act, 2023
- PIB, Government notifies the DPDP Rules, 2025
- CERT-In, Directions under section 70B of the IT Act, 28 April 2022
- eCFR, 45 CFR Part 164 Subpart C: HIPAA Security Rule
- eCFR, 45 CFR Part 164 Subpart D: Breach Notification Rule
- AWS, Use the Instance Metadata Service (IMDSv2)
Web Application Pen Testing
The flaws in your app that scanners miss.

