RC RANDOM CHAOS

A forged admin token opened SQL access to 17 trillion Microsoft records

A forged unsigned JWT using the local username admin let researcher Faav execute SQL against Microsoft's Titan analytics service.

· 4 min read
A forged admin token opened SQL access to 17 trillion Microsoft records

Microsoft’s Titan analytics service exposed an estimated 17,333,335,124,315 stored rows through an API that accepted unsigned JSON Web Tokens. The researcher, Faav, says a forged token claiming the local username admin was enough to execute SQL with Titan’s administrator role.

The 17.3 trillion figure describes the environment that was technically reachable, based on database metadata. It likely includes historical, duplicated, and derived data. Faav limited testing to table descriptions, metadata, and bounded samples, and says no customer data or personally identifiable information was taken. The potential impact was hypothetical, but the authentication failure and working SQL access were demonstrated.

A public API behind a private frontend

On August 25, 2026, Faav’s automated system, Antares, found Titan. Its web interface displayed a VPN requirement for Microsoft employees, while a separate API endpoint resolved to an Azure Cloud Services host and published a Swagger document.

The document listed four routes: /GetConfiguration, /GetOnboardedTables, /v2/Query, and /v2/Insert. Three specified Azure AD bearer authentication. The raw-SQL query route was the exception.

An archived 2023 Titan interface supplied the missing context. Its Superset configuration contained 56 table definitions, including a routing value named TestData. A request to /v2/Query without an authorization header returned 401 Unauthorized, so the next step was to examine how Titan handled bearer tokens.

Titan checked several JWT claims. A token from an external Entra test tenant first produced a tenant error. Altering the tenant reached an audience check, altering the audience reached an application allowlist, and changing the application ID reached a user lookup. Those claim changes were accepted while the original signature remained unchanged.

Faav then supplied a synthetic JWT with {"alg":"none","typ":"JWT"} and an empty signature section. Titan continued processing it. The service validated expected values for tenant, audience, application ID, and user without verifying the cryptographic signature that establishes who issued those claims.

A JWT signature binds a token’s claims to an issuer and key. Parsing claims before authorization is routine; treating parsed, unsigned claims as trusted identity turns every later check into validation of attacker-controlled input. Tenant and application allowlists provide no useful boundary when the caller can write both values.

The UPN field was a local username

The unsigned token initially failed at Titan’s user lookup. Antares tested email-formatted identities because the claim was named upn, which normally represents an Entra user principal name. Faav later tried the literal value admin.

Titan used the claim as a local application username. admin resolved to local user ID 1, which had the Admin role. A SELECT 1 query returned 1, confirming SQL execution through the forged identity.

Queries against Titan’s platform metadata then showed approximately 25,000 account and email records, including 17,990 employee email records and 15,001 employee organization records. The platform also held 355 database configurations, 20,979 virtual-dataset SQL definitions, 24,569 dashboards, 425,891 charts, and 27,347 dataset definitions.

The employee directory covered a subset of Microsoft staff associated with Titan and included job titles, departments, management hierarchy, and login history. Faav says this information could have supported targeted social engineering, although that use was neither tested nor demonstrated.

A separate Bing analytics source was also reachable. Faav ran two one-row queries against its latest available partition. The samples contained search, identifier, and broad location fields derived from reverse IP at country or state level. MUID values occurred in more than one dataset, making cross-service correlation plausible, but the researcher did not correlate records, identify people, or build profiles.

Counting the reachable environment

Faav tested all 56 routing values recovered from the archived configuration with SELECT 1. Thirty remained active. They mapped through 24 backend configurations to 17 connected analytics databases containing 9,863 unique table names.

The storage estimate came from metadata across 17 ClickHouse databases. Faav counted one replica per shard, mapped distributed tables to their backing clusters, and checked the result through both system.tables.total_rows and active system.parts. Both paths produced 17,333,335,124,315 rows.

For operators, the immediate control is strict token verification in a maintained authentication library. Pin accepted algorithms, reject none, verify the signature before consuming identity claims, and then enforce issuer, audience, tenant, expiry, and application policy. Tests should submit altered claims with an unchanged signature and a fully unsigned token, then assert rejection before any user lookup occurs.

The identity mapping deserves its own boundary. An externally supplied upn should not become a privileged local username through an implicit string match. Map authenticated identities through explicit provisioning to stable identifiers, keep local administrative accounts out of that namespace, and test values such as admin anywhere an identity field crosses from an identity provider into application authorization.

Analytics query services also need containment for a failed front-door check. Restrict public reachability, give each connector only the databases and operations it requires, separate platform metadata from analytics data, and log identity, route, query target, and row limit for every request. A raw-SQL broker with access to many backends concentrates the effect of one authentication defect.

Faav reported the issue to Microsoft on September 5, 2026, and MSRC opened case 144051 that day. Microsoft asked the researcher to stop testing, investigated the activity, and locked down the API endpoint on September 9. Microsoft awarded a $5,000 bounty on September 17. Faav disclosed that Microsoft had editorial control over the published account, including cuts and changes to how the impact was described.

Share

Keep Reading

Latest on the Wire

Full wire →

New signal daily · RSS

Stay in the loop

New writing delivered when it's ready. No schedule, no spam.