Sooner or later, a customer, an investor or a partner will ask a SaaS company: "When was your last penetration test?" For many startups, that question arrives in the middle of an important deal, and the honest answer is "never".
This guide explains what a penetration test is, what it should cover for a SaaS product, and how to get real value from it rather than a box-ticking report.
What a penetration test is
A penetration test, or pentest, is a hands-on security assessment where an experienced tester tries to find and exploit weaknesses in your application, the way a real attacker would, but with your permission and within agreed limits.
It is different from a vulnerability scan. A scanner automatically checks for known issues, such as outdated software or missing headers. It is useful and cheap, but it cannot understand your business logic. A scanner does not know that a user on the Basic plan should not be able to reach Enterprise features, or that customer A must never see customer B's invoices. A human tester does.
What a SaaS pentest should cover
For a typical SaaS product, a web application and API test usually focuses on:
Authentication
How users sign up, log in, reset passwords and stay signed in. Testers look for weak password reset flows, missing rate limits on login, session tokens that never expire, and flaws in single sign-on or two-factor sign-in.
Authorisation and tenant isolation
This is where SaaS products most often have serious problems. Testers check whether one customer can access another customer's data by changing an ID in a request, whether ordinary users can perform admin actions, and whether plan or role restrictions are enforced on the server rather than only hidden in the interface.
Input handling
Can attackers inject code or commands through forms, file uploads, search fields, imports or integrations? This covers classic issues like cross-site scripting and SQL injection, as well as server-side request forgery in features that fetch URLs.
Business logic
Can someone get paid features for free, apply a discount twice, skip a payment step or abuse a referral programme? These flaws are unique to each product and invisible to scanners.
APIs
Your public or private API often exposes more than your interface does. Testers look for missing authorisation on endpoints, excessive data in responses and weak rate limiting.
AI features
If your product includes an AI assistant or agent, it should be tested for prompt injection and for what the AI can access and do on a user's behalf. Our guide to prompt injection explains the risks.
Configuration
Security headers, TLS, cookie settings, exposed admin panels, debug pages and cloud storage permissions. Our free security headers check and SSL check cover some of these basics.
When you need one
Common triggers:
- Before selling to larger companies, whose security teams will ask.
- Before a funding round, when investors run technical due diligence.
- After major changes to authentication, permissions, payments or data handling.
- Once a year as a baseline, for most products handling customer data.
- When a compliance framework requires it, such as SOC 2, ISO 27001 or PCI DSS for card data.
How to prepare
A little preparation makes the test far more valuable:
- Agree the scope in writing: which applications, APIs and environments are included, and what is off limits.
- Use a staging environment that mirrors production, with realistic test data and no real customer data.
- Provide test accounts for every role and plan, and at least two separate customer accounts so tenant isolation can be tested.
- Share documentation: API docs, user roles and anything unusual about how the product works.
- Name a contact who can answer questions and handle anything urgent the tester finds.
What a good report looks like
You should receive:
- An executive summary a non-technical reader can understand.
- A list of findings, each with a severity rating, a clear description, the steps to reproduce it and the business impact.
- Specific fix guidance for your developers.
- A retest after you have fixed the issues, confirming they are closed.
Be wary of reports that are mostly pasted scanner output with no evidence of manual testing.
After the test
Fix critical and high-severity issues first, then retest. Keep the report and retest confirmation for customer security questionnaires. Most importantly, look for patterns: if several findings come from the same root cause, such as authorisation checks being done in the front end, fix the pattern, not just the individual bugs.
Frequently asked questions
How long does a SaaS pentest take?
It depends on the size of the application and API. Small products may need a few days of testing; larger platforms can take a couple of weeks.
Is automated scanning enough?
Scanning is a good regular habit, but it misses the authorisation and business logic flaws that cause most serious SaaS breaches.
Should we test production?
Usually staging is safer. If production must be tested, agree strict limits and timing in advance.
See how we help SaaS teams on our SaaS and startups page, our cybersecurity services, or get a free plan in 60 seconds.