← All articles

Authenticated vs Unauthenticated Penetration Testing

Authenticated penetration testing means the tester logs in with real accounts you provide, usually one per role, and attacks the application from the inside. Unauthenticated testing attacks only what an anonymous visitor can reach. Unauthenticated testing finds exposed infrastructure, misconfigurations and pre-login bugs. Authenticated testing finds what usually matters most in a SaaS product: users reading other users' data (IDOR), members acting as admins, and one tenant reaching another. If your app has a login screen and stores customer data behind it, you need authenticated testing. Unauthenticated testing alone covers only the front door.

The core difference

An unauthenticated tester sees your login page, marketing site, public API endpoints, subdomains, TLS configuration and exposed services. An authenticated tester sees the rest: dashboards, settings, file uploads, exports, billing, admin functions, and every API call the frontend makes after login.

In a typical B2B SaaS app, most functionality and nearly all customer data sit behind authentication. That's also where the most common serious bug class lives. OWASP's 2025 Top 10 keeps Broken Access Control at #1 and reports that 100% of applications tested had some form of it. The OWASP API Security Top 10 leads with Broken Object Level Authorization (API1) and includes Broken Function Level Authorization (API5). These bugs rarely show up without a valid session, because the attack is "logged in as user A, request user B's object."

What each approach finds

Finding typeUnauthenticatedAuthenticated
Exposed services, outdated server versions, known CVEs✅ Primary strength✅
TLS and security header misconfigurations✅✅
Subdomain takeover, public cloud buckets, leaked keys in JS✅✅
Login, signup and password-reset flaws; account enumeration✅✅
Endpoints that should require auth but don't✅ (if discoverable)✅ (easier, the tester sees the real routes)
IDOR / BOLA: reading or editing another user's objects❌✅
Cross-tenant data access❌✅ (needs two tenants)
Privilege escalation: member → admin, mass assignment of role❌✅
Business logic: plan limits, coupons, seat counts, workflow skippingRarely✅
Injection and XSS in post-login features (exports, rich text, webhooks, SSRF in integrations)❌✅
Session handling: logout, token revocation, timeoutPartial✅

Unauthenticated testing isn't optional either. Several of the cheapest attacks, like a dangling CNAME, an open S3 bucket or an API key in a JS bundle, need no account at all. A good engagement does the unauthenticated pass first and the authenticated pass second.

The vocabulary: black, grey and white box

Vendors often describe the same split in terms of how much the tester knows:

  • Black box: no credentials, no docs. Mostly unauthenticated.
  • Grey box: test accounts and basic documentation, like an API spec. This is authenticated testing.
  • White box: source code and architecture access in addition to accounts.

HackenProof's 2026 pricing guide points out that black-box tests can look cheapest on paper, but paid hours go into reconnaissance a real attacker would have months for, and that grey box "usually gives the best value." That matches how real attackers behave. Signing up for a free trial is usually the first thing an attacker does against a self-serve SaaS app, and that makes them an authenticated user.

What authenticated testing looks like in practice

The access-control matrix

The heart of an authenticated pentest is a matrix of roles against actions. For each endpoint, the tester replays requests across roles and tenants:

RequestOwner (Tenant A)Member (Tenant A)Owner (Tenant B)No session
GET /api/projects/{A-project}200 ✅200 ✅must be 403/404must be 401
DELETE /api/projects/{A-project}200 ✅must be 403must be 403/404must be 401
POST /api/users/{id}/role200 ✅must be 403must be 403/404must be 401
GET /api/admin/export200 ✅must be 403must be 403must be 401

Every bold cell is a test case, and any of them returning 200 is a finding. A simple read-only check of one cell looks like this:

# Tenant B's token requests Tenant A's project. Anything but 403/404 is a bug.
curl -s -o /dev/null -w '%{http_code}\n' \
  -H "Authorization: Bearer $TENANT_B_OWNER_TOKEN" \
  https://api.example.com/api/projects/8f3c2a10

Do this for one endpoint and it's a curl command. Do it for 200 endpoints, four roles and two tenants, across GET, PUT, PATCH and DELETE, and it becomes the bulk of an engagement. That's why authenticated testing costs more.

Beyond IDOR

Authenticated testers also look at:

  • Mass assignment. Adding "role":"admin" or "org_id":"..." to a profile update request.
  • Hidden admin functions. Endpoints referenced in the JS bundle but never shown in the member UI.
  • Tenant switching. Changing an X-Org-Id header or a JWT claim.
  • Invite and sharing flows. Accepting an invite meant for someone else, or reusing an expired link.
  • Backend-as-a-service rules. For apps on Supabase or Firebase, a logged-in user can often query the database directly. Row-level security policies decide everything. Our Supabase RLS audit checks PostgREST and RLS policies, and a Firebase rules check does the same for Firebase.

How to prepare for authenticated penetration testing

Preparation decides how much of the paid time goes into testing.

  1. Create two tenants (organizations/workspaces). Without a second tenant, cross-tenant testing is impossible.
  2. Create one account per role in each tenant. For example, owner, admin, member, read-only and billing. Label them clearly.
  3. Seed data. Projects, files, invoices, API keys and comments, so there are objects to request across boundaries.
  4. Handle MFA and SSO. Provide TOTP seeds for test accounts or exempt them, and say whether SSO-only flows are in scope.
  5. Share the API schema (OpenAPI or GraphQL) if you have one. If you don't, API endpoint discovery can rebuild much of it.
  6. Mark destructive actions. Production payments, outbound email to real users and account deletion should be excluded or pointed at sandboxed equivalents.
  7. Rotate credentials afterwards. Disable or delete test accounts once the retest is done.

Use dedicated test accounts, never real customer accounts, and only test applications you own or are authorized to test.

Which do you need?

  • Marketing site, no login: unauthenticated is enough.
  • App with login, single-user accounts, no sensitive data: unauthenticated plus a light authenticated pass.
  • Multi-user or multi-tenant SaaS, B2B customers, SOC 2 or ISO 27001 in progress: full authenticated testing across every role. This is also what enterprise security reviewers usually expect when they ask for "a pentest of the product." See SOC 2 penetration test.
  • Complex API surface or mobile clients: authenticated, with explicit API scope. See the OWASP API Security Top 10 explained.

For the rest of what a full test covers, use the web application penetration testing checklist. For the network-side split, see external vs internal penetration testing.

How SecurityInfinity's two tiers map to this

Our Startup Pentest follows the same split. External (unauthenticated) starts at $499 per application and covers the web app, APIs, subdomains and cloud exposure, with engineer-verified high and critical findings, a PDF report mapped to OWASP Top 10 and a signed attestation letter. Authenticated starts at $999 per application and adds testing across every user role, access-control, IDOR and business-logic review, API and privilege-escalation testing, mapping to SOC 2 and ISO 27001, and a free retest within 30 days. Both deliver in 3 business days after scope and authorization are confirmed. To see what's visible before login first, run the free quick web scan on a verified domain.

Frequently asked questions

What is authenticated penetration testing?

Authenticated penetration testing is a pentest where the tester logs in with valid accounts you provide, typically one per user role, and tests everything behind the login. It's how testers find access-control flaws such as IDOR, privilege escalation and cross-tenant data exposure, which can't be reached anonymously.

Is authenticated or unauthenticated testing better?

Neither replaces the other. Unauthenticated testing shows what any anonymous attacker can reach, such as exposed services, misconfigurations and pre-login bugs. Authenticated testing covers the logged-in application, where most data and most access-control bugs live. Any app with user accounts should get both.

Is it safe to give pentesters credentials?

Yes, if you use dedicated test accounts in test tenants with seeded data, never real customer accounts. Exclude destructive actions in the rules of engagement, and disable or rotate the credentials once testing and retesting are finished.

Why does authenticated testing cost more?

Each role and tenant multiplies the number of test cases. Every endpoint has to be checked against every role and across tenant boundaries, for each HTTP method. That manual access-control and business-logic work takes more time than an anonymous external assessment.

Is an authenticated scan the same as an authenticated pentest?

No. An authenticated scan runs automated checks with a session, which helps with known-pattern issues behind login. An authenticated pentest also reasons about roles, tenants and workflows to find authorization and business-logic flaws that pattern-based scanners usually can't judge.

Find what attackers can see, before they do.

AI pentesting agents test your web app, API and cloud, and every finding comes with evidence and a fix. First report in about 10 minutes.

Stay ahead of attackers.

New vulnerabilities, breach write-ups and practical fixes. A few emails a month.