Skip to content
StrikeCyberStrikeCyber
Technology / SaaS

Hardcoded Keys and Token Leaks in a Queensland SaaS Mobile App

A mid-sized Queensland SaaS business asked us to assess the security of a mobile application that handles sensitive case and evidence data on devices that are not always managed.

Technology / SaaS sector
Technology / SaaS
Industry
Technology / SaaS
Services
Mobile App Testing
Engagement
Mobile application penetration test
Region
Queensland
Testing days
31

The Challenge

A mid-sized Queensland technology and SaaS business engaged us to test a mobile application that handles sensitive case and evidence data. Because the app stores information on user devices and talks to backend services over the internet, the client wanted to understand how it behaved outside a controlled environment: on a device that might be shared, lost, or not centrally managed.

The concern was straightforward. If an attacker could obtain a device, a backup, or even just the publicly available app binary, how much could they learn or recover? The client also wanted assurance that sign-in, token storage and logout behaved as expected across both managed and unmanaged devices, and that server-side endpoints supporting the app did not leak internal detail. We scoped a focused mobile application penetration test to answer these questions with evidence rather than assumptions.

Our Approach

Over thirty-one testing days, we examined the application the way a motivated attacker would. Starting from the publicly available binary, we analysed how the app stored data at rest, how it authenticated, how it handled OAuth callbacks, and how it managed tokens across managed and unmanaged device states.

We inspected on-device storage namespaces, encryption handling, and the behaviour of logout and enrolment checks. We reviewed exported application components, requested permissions, transport security configuration, and the handling of rich-text content rendered inside the app. Alongside the client-side work, we carried out unauthenticated reconnaissance against the public demo and development endpoints supporting the app to understand what an outsider could learn about the backend stack and internals.

Each finding was reproduced, documented with clear steps, and rated by severity and business impact. We prioritised issues that chained together, so the client could see not just isolated weaknesses but the realistic paths an attacker would combine. Related backend exposure was assessed with our external network testing approach.

What We Found

We identified twenty findings across the engagement: one critical, five high, ten medium, three low and one informational.

The critical finding was a chain in which the publicly available app binary alone could yield persistent API access to any user whose on-device file could be obtained. Supporting this were several high-severity issues in data-at-rest handling, including authentication and case data stored under a hardcoded encryption key and a weak data protection class for an app handling evidence.

  • Token handling weaknesses, including OAuth tokens retained on disk on non-managed devices and an incomplete logout that left previous users' data in other on-disk namespaces.
  • An OAuth callback using a custom URL scheme vulnerable to hijacking by a malicious app on the same device.
  • A stored cross-site scripting surface where server-supplied rich-text notes could carry attacker-controlled content.
  • Overlay and tapjacking exposure allowing capture of sign-in, cleartext HTTP to local-network destinations, over-requested permissions, and exported components without protective permissions.
  • Unauthenticated probing of public demo and development endpoints revealing stack and internal detail.

The Outcome

We delivered a prioritised report that separated the one critical chain and the high-severity data-at-rest and token issues from the medium and lower findings, so the client's team could address the most damaging paths first. For each item we provided reproduction steps, the realistic attacker impact, and practical remediation guidance.

The standout message was clear: the combination of a hardcoded encryption key, weak data protection, retained tokens and an incomplete logout meant that gaining access to a single device or its files could expose far more than one user's session. We walked the client through how those findings chained, and how closing the storage and token-handling weaknesses would break the chain even if other issues remained in a backlog.

We also flagged the backend reconnaissance exposure on demo and development endpoints as a quick win, and offered to retest once remediation work was complete. Follow-up social engineering testing was discussed as a future complement to the technical assessment.

Why It Matters

Mobile applications that handle sensitive case and evidence data carry a different risk profile from server-only systems. The device is rarely fully controlled by the organisation, and anyone who publishes an app to a store hands a copy of the client code to the world. That means storage, encryption, token handling and logout behaviour all need to assume a hostile device, not a trusted one.

For this client, the lesson was that individually modest weaknesses became serious when combined. A hardcoded key is a concern on its own; paired with retained tokens and an incomplete logout, it turns a lost or shared device into a path to another user's account. Treating findings as chains rather than a checklist is what reveals the real exposure.

For any business running a mobile product, the practical takeaways are to encrypt on-device data with keys that are not embedded in the binary, to clear all user state on logout, and to assume unmanaged devices will hold tokens. If you would like a similar assessment, our team is available for a free consultation.

FAQ

About this engagement

What does this case study show?

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

Can StrikeCyber deliver similar results for our organisation?

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

How is client confidentiality protected?

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

Ready to take the offensive?

StrikeCyber specialises 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.

1300 654 898