Skip to content
StrikeCyberStrikeCyber
Technology / SaaS

Session Tokens That Never Expired in a SaaS Platform

A small technology and SaaS business wanted independent assurance over the authentication and session handling in its web application and the API behind it.

Technology / SaaS sector
Technology / SaaS
Industry
Technology / SaaS
Services
Web Application Testing
Engagement
Web application and API penetration test
Region
National
Testing days
8

The Challenge

The client is a small technology and SaaS business. Like many teams at this stage, it had grown quickly and wanted independent confirmation that the authentication and session handling in its platform stood up to focused attack. The product is reached through a web application and a supporting API, and both share the same login and session model, so a weakness in one surface tends to carry across the other.

The brief was practical. The client asked us to look at how sessions were issued, how long they stayed valid, and what an attacker could do with a token once it had been obtained. They also wanted the wider application and API tested for common access-control and input-handling issues, rather than a tick-box scan. The goal was a clear, ranked picture of real risk so the engineering team could plan fixes against the rest of their roadmap. This write-up combines web application penetration testing with API penetration testing under one scope.

Our Approach

We ran an eight-day engagement across the web application and its API, testing both as an authenticated attacker would. Work began with mapping the login flow, the token format and the way sessions were created, refreshed and revoked. From there we examined what happened to a token over time: whether it had an absolute lifetime, whether it could be renewed without limit, and whether multiple sessions could run at once for the same account.

Alongside the session work we tested the usual access-control and input-handling paths across the application and the API, checking that one user could not reach another user's data and that server-side authorization was enforced rather than assumed. We validated each finding by hand to remove false positives and to confirm the practical impact, not just the theoretical one. Every issue was rated by severity and recorded with clear reproduction steps so the client's developers could act without guesswork. The approach mirrored how we scope external network penetration testing and other assessments: evidence first, ranked by what a real attacker would reach.

What We Found

Testing produced seven findings in total: one high, two medium, two low and two informational. There were no critical issues.

The high-severity finding concerned session handling. Tokens could be renewed indefinitely, with no absolute lifetime and no limit on concurrent sessions for a single account. In practice this meant that a token obtained once could be kept alive well beyond any reasonable working session, and that many live sessions could coexist for the same user. Where a token is stolen, that combination widens the window an attacker has to act and makes it harder to force an intruder out by expiry alone.

The remaining findings were lower in severity and clustered around configuration and defense-in-depth around the authentication and session model. The medium issues represented meaningful hardening opportunities, the low issues were minor gaps worth closing in the normal course of development, and the informational items were observations that help the team tighten the platform over time. None of the lower findings, on their own, gave an attacker a direct route to another tenant's data.

The Outcome

We delivered a ranked report that put the indefinite session renewal issue at the top, with concrete reproduction steps and clear remediation guidance for each finding. For the high-severity issue, the recommendations centered on introducing an absolute session lifetime, enforcing sensible renewal limits, and adding a concurrent-session cap so a single account cannot sustain an unbounded number of live tokens.

Because the client is a small team, we prioritized the work so the most valuable fixes came first and the lower-severity items could be folded into normal development. The findings were presented in a way the engineering team could action directly, and we offered retesting so changes could be confirmed rather than assumed once the work was complete. The engagement gave the client an evidence-based view of where their authentication model needed to tighten, and a practical order in which to tackle it. For teams wanting this kind of ongoing assurance, we cover it under our penetration testing services.

Why It Matters

Session handling is one of the quietest ways a SaaS platform can let an attacker stay in. A stolen token is only as dangerous as the time it stays valid and the number of sessions it can ride alongside. When tokens renew indefinitely with no absolute lifetime and no concurrent-session limit, a single compromised credential or leaked token can give long, persistent access that expiry would otherwise cut short. For a small business, that can be the difference between an incident contained in minutes and one that runs for days.

Testing the web application and the API together matters because they share the same session model. A weakness proven on one surface usually applies to the other, and fixing it in one place without the other leaves the gap open. Getting these controls right early, while the product is still small, is far cheaper than retrofitting them after growth. Independent testing gives owners and IT managers a ranked, factual view of where authentication is weakest and a clear plan to address it. If you want to talk through your own platform, book a free consultation.

FAQ

About this engagement

What does this case study show?

This technology / saas case study is drawn from a genuine engagement, anonymized where needed to protect the client. It shows the challenge, our approach and the outcome.

Can StrikeCyber deliver similar results for our organization?

Yes. The expert-led, prioritized approach behind this outcome applies across technology / saas and other sectors and organization sizes. Scope a free consultation to discuss your environment.

How is client confidentiality protected?

Findings and client data are isolated to your organization and handled in access-limited environments we control in the United States. Nothing is published without the client's consent.

Ready to take the offensive?

StrikeCyber specializes in penetration testing and red teaming engagements that deliver actionable findings. Connect with us for a free consultation.

No obligation, no sales pressure. A senior operator replies within one business day.

(877) 657-8496