Skip to content

Case study · Web3

Crypto Fundamentals and On-Chain Analytics Platform

A live opaque bearer token shipped in public frontend JavaScript unlocked five internal warehouse tRPC procedures, alongside a 4,020-object public storage bucket, five open OAuth client-registration endpoints, and an SSO open redirect.

Findings · 10
5 High5 Medium
FindingVulnerabilitySeverity
3.1Hardcoded bearer token in public frontend JS grants internal tRPC warehouse readsCWE-798The public website ships a live production API bearer token in its frontend JavaScript bundle alongside an internet-reachable "internal" API hostname.High
3.2Publicly readable cloud storage bucket exposing 4,020 objects including applicant resumesCWE-284, CWE-200Anonymous listing of public-assets-bucket returned 200 OK across five pages (4,020 objects, 11 prefixes covering applicant submissions, avatars, organization records, and web images), with keys preserving raw Unix developer home paths.High
3.3Unauthenticated OAuth dynamic client registration across five issuers with loopback interceptionCWE-287, CWE-601Five OIDC issuers across production, MCP, versioned, internal, and dev domains allow anonymous OAuth client registration with zero authentication or rate limiting.High
3.4Admin and data-room ?url= echo chained with vendor SSO open redirect and OIDC front doorCWE-601, CWE-346Both admin and vault blindly echo caller-supplied ?url= values into the deployment platform's SSO redirect.High
3.5Wildcard CORS with custom-header JWT across five API hosts and prod-shared dev/mirror originsCWE-942Five API hosts — including an unannounced dev host sharing production's load-balancer IP and a shadow .net mirror whose MCP host bypasses the CDN — advertise Access-Control-Allow-Origin: * with custom auth headers.High
Operational email domain DMARC p=none and missing CAA recordsCWE-290analytics-ops.example (recipient of primary DMARC reports and host of candidate interviews) sets p=none, allowing domain spoofing despite p=reject; pct=100 on the primary domain; primary zone also lacks CAA records (CWE-290).Medium
29 of 44 brand-prefixed hosting-platform project names unclaimedCWE-284External accounts can freely register high-trust names mirroring internal surfaces (gitops, mcp, api, debug, internal, explorer, secondary-prod) on the deployment platform's shared domain for targeted employee phishing (CWE-284).Medium
Asymmetric OAuth registration storing SSRF-shaped URIs and 7 metadata fieldsCWE-918POST /register persists 169.254.169.254, file://, javascript:, wildcard subdomains, and OIDC metadata URIs (sector_identifier_uri, jwks_uri, logo_uri); currently masked by /authorize, leaving a latent SSRF and regression hazard (CWE-918).Medium
Expired TLS certificates (28 days and 901 days) and 127.0.0.1 internal DNS recordCWE-298legacy-proxy.analytics.example serves a leaf, intermediate, and cross-signed root chain expired 901 days; legacy-viz.analytics.example expired 28 days; internal.analytics.example resolves to 127.0.0.1 (CWE-298).Medium
Cloud storage inventory disclosure and disabled-billing production bucketsCWE-200One secondary-project bucket is publicly listable (empty); seven private bucket names are enumerable via 403; two production-named buckets return UserProjectAccountProblem indicating absent/closed billing accounts (CWE-200).Medium

Executive summary

What we were asked to do

A crypto-fundamentals analytics platform asked us to assess its external estate from an unauthenticated starting position. The estate spans a static-exported marketing frontend, an API tier backed by an analytical data warehouse, an OAuth-gated Model Context Protocol (MCP) server, an identity-proxy-gated GitOps controller, SSO-gated admin and document-vault portals, cloud object storage, and a standalone consumer AI chat application.

The engagement surfaced real credential, authorization, and third-party SSO weaknesses — and just as importantly, demonstrated how four apparent critical findings narrowed or collapsed once tested past their initial error responses.

Principal findings

A live opaque bearer token shipped in cleartext inside the public frontend JavaScript bundle granted authenticated read access to five internal tRPC warehouse procedures, returning live column-typed catalog data and schema definitions over a wildcard-CORS gateway. Separately, unauthenticated cloud storage enumeration located a world-readable bucket matching the platform's short prefix with 4,020 objects — including applicant resumes and developer Unix home paths — belonging to an unrelated talent-matching app, creating either an immediate privacy exposure on the company's cloud account or a naming collision to rule out internally. Across five OIDC issuers (production, MCP, versioned, internal, and an unannounced dev host sharing production's load balancer and SSO), unauthenticated RFC 7591 dynamic client registration accepted arbitrary redirect URIs without rate limiting, though runtime enforcement narrowed impact to local-loopback code interception. Finally, both the admin portal and document vault echoed `?url=` into a deployment platform's SSO relay that acted as an unauthenticated `307` open redirect when `nonce` was omitted, while also serving its genuine OIDC login page for unregistered client_id values. No customer account, admin session, or CI/CD pipeline was compromised.

What this means in plain terms

Three things a board should take from this.

  • A working internal API credential was shipped to every website visitor. Moving client-side keys out of public bundles is a quick fix, but the deeper issue is that an "internal" API hostname was directly reachable from the public internet with wildcard cross-origin access.
  • Four thousand publicly readable objects — including job-applicant resumes — sit in a bucket matching the platform's naming prefix. Because the files belong to an unrelated recruiting web app, engineering needs to check within minutes whether that bucket sits inside the company's cloud project; if it does, a single access-control change closes a live privacy exposure.
  • Four findings that initially looked critical narrowed sharply under rigorous verification. An unauthenticated /trpc bypass turned out to enforce JWT checks once real procedure names were tested; an open OAuth registration endpoint proved blocked from remote phishing by a separate runtime allowlist; and neither the admin SSO relay nor the identity-proxied CI/CD surface yielded an unauthenticated takeover.

The five things that need a decision, not a patch

#What is wrongBusiness impactWho decides
1A live bearer token ships in the public frontend bundle and calls an internet-reachable "internal" tRPC APIRotating the token takes minutes, but deciding whether api-internal.analytics.example belongs on the public internet — and how public catalog endpoints are separated from tenant endpoints — is an architecture decision.Platform engineering
2A public bucket (public-assets-bucket) matching the company's prefix exposes 4,020 objects including resumes and developer home pathsThe contents belong to a separate talent-matching app. Confirming whether this sits on the company's cloud billing account (or an engineer's side project) carries immediate privacy-law and acceptable-use implications.Security + legal + cloud ops
3The deployment platform's SSO relay is an unauthenticated open redirect without nonce, and its OIDC login accepts unregistered client_id valuesBoth admin.analytics.example and vault.analytics.example depend on this relay. Dropping ?url= locally helps, but the underlying open redirect and OIDC front-door behavior sit in the vendor's platform and need vendor escalation.Vendor management + security
4An unannounced development API (api.analytics-dev.example) shares production's load-balancer IP and production SSO, alongside a shadow .net mirrorDevelopment and mirror origins expand the credential and OAuth blast radius without adding customer value. Keeping or decommissioning them is an environment-isolation decision.Infrastructure + engineering
5The operational email domain (analytics-ops.example) has DMARC p=none, and 29 brand-prefixed hosting-platform project names are unclaimedThe primary domain enforces p=reject, but the domain that receives DMARC reports and hosts candidate interviews allows spoofing. Claiming defensive namespaces and tightening email policy are brand-protection decisions.Security + IT

What we did not get

No customer account takeover. No admin or document-vault session. No cross-tenant customer data read. No CI/CD or GitOps access. No arbitrary code execution or cross-site scripting. No LLM provider API keys.

Every path to a true multi-tenant or administrative compromise terminated at a sound cryptographic control: signature-checked JWT verification on /v2 and /trpc, strict cloud Identity-Aware Proxy enforcement on the GitOps controller, edge-walled authentication on the AI chat API, and cryptographically signed session validation on the deployment platform's SSO login.

Engagement outcome

An authorized external security assessment of a crypto analytics platform identified a client-bundled internal API bearer token exposing public catalog and warehouse schema metadata, unauthenticated OAuth dynamic client registration constrained to loopback callbacks, and parameter-reflection issues chaining with third-party SSO relay behavior, alongside a publicly readable storage bucket requiring internal ownership verification. No customer accounts, administrative sessions, private tenant data, or CI/CD pipelines were accessed, and core authentication, JWT signature validation, and identity-proxy controls were verified to hold across the estate. All findings were disclosed under a confidentiality agreement with prioritized remediation and vendor-escalation guidance.


1. The engagement in numbers

MetricValue
Root workstreams1
Total Swarm Size52
Investigation tracks logged30
Unique hostnames discovered (CT logs + DNS)202
Live production, dev, mirror, and AI hosts triaged28
Historical per-PR preview subdomains verified dead172 / 172
Confirmed findings (calibrated)10 (5 high, 5 medium)
Apparent criticals refuted or narrowed on re-test4
Frontend JS chunks audited50 (41 marketing + 9 AI chat)
Public bucket objects enumerated4,020 (1 sample PDF verified; no bulk harvest)
XSS reflection & DOM probes128 reflection probes + 22 chunks (0 confirmed)
GitOps IAP endpoints & header-bypass probes131 endpoints × GET/POST + 13 headers (0 bypasses)
Unclaimed brand-prefixed hosting project names29 of 44 tested

Two restraint choices belong in the summary. First, for the 4,020-object public bucket, only object listings and a single resume PDF were retrieved to establish readability and file type — no bulk download of applicant documents or user avatars was performed. Second, none of the 29 unclaimed hosting project names or retired storage bucket names were registered or mutated during testing.

Agent topology

RoleSessionsResponsibility
Orchestrator1Wave planning, direct verification, impact calibration, final reporting
Recon23CT/DNS estate mapping, certificate audits, cloud asset sweeps, wave synthesis
Exploit26OAuth/DCR, MCP, SSO relay, tRPC/CORS, JS bundle harvesting, dev parity, XSS, AI surface
Advisor2Independent Wave 3 and Wave 3b coverage-gap reviews and non-credentialed routing
Fig 01 · Agent topology
Fig 01 · Agent topology

2. What held

Before detailing the weaknesses, seven defensive controls held cleanly under sustained probing.

  • GitOps cloud Identity-Aware Proxy (IAP) held. Across 131 endpoints (GET and POST), 13 forged-header and alg:none JWT variants, GitOps path-traversal payloads, nonce replays, and 10 hostile OAuth redirect_uri tricks, every request stopped at the IAP edge (302/401). No backend banner answered.
  • JWT signature verification held across `/v2`, `/trpc`, and `/mcp`. Forged alg:none and invalid HS256 tokens, 36 path-normalization bypasses, CL.TE smuggling (400), WebSocket upgrades, method confusion, and alternate Host routing produced zero bypasses.
  • Historical previews were decommissioned and edge-patched. All 172 per-PR preview hosts returned 404 (DEPLOYMENT_NOT_FOUND); 400 x-middleware-subrequest bypass probes across the 10 highest-signal debug/auth branches produced zero deltas.
  • XSS, SSRF, SSTI, and deserialization defenses held. Across 128 reflected-XSS probes (52 slugs + 76 query params), 22 JS chunks, client-side search hydration, newsletter routes, and API inputs, zero XSS or server-side injection primitives were found.
  • The standalone AI chat app (`chat.analytics.example`) kept secrets off the client. All 75 /api/* paths returned a uniform 401 edge response with no CORS, /register returned 404, and all 9 JS bundles (~1.1 MB) contained zero hardcoded LLM or platform API keys.
  • Private first-party storage and container registries enforced IAM. Anonymous reads against user-uploads-bucket, static-assets-bucket, sibling project buckets, and both registries returned 403/401.
  • Live production DNS and the status page had no takeover surface. All 22 live production subdomains resolved to registered upstreams, and 80+ probes on status.analytics.example confirmed read-only behavior with zero write paths.
Fig 02 · 2. What held
Fig 02 · 2. What held

The refutations and impact calibration: four apparent criticals narrowed under proof

Multi-wave testing surfaced four alarms that looked critical on first contact; direct verification narrowed or refuted all four.

  1. Unauthenticated `/trpc` bypass → Refuted (router-before-auth ordering). In Wave 2, 93 guessed procedure names on /trpc/* returned 404 NOT_FOUND without a token beside a 403-gated /v2/*, looking like missing authentication. In Wave 3, extracting the six real procedure names from the frontend JS bundle and re-testing unauthenticated and with a forged alg:none JWT returned 401 UNAUTHORIZED on all six — proving auth runs in tRPC middleware after route lookup.
  2. Remote OAuth account takeover via open DCR → Narrowed to loopback interception. POST /register returned 201 Created for external redirect URIs (https://attacker.example/cb), looking like remote phishing ATO. Direct /api/auth/authorize testing across production, internal, and dev issuers proved a separate hardcoded loopback allowlist (127.0.0.1, localhost, [::1]) rejects external hosts with 400 invalid_redirect_uri.
  3. Unauthenticated admin takeover via SSO relay → Narrowed to phishing primitive. First-party ?url= echo, the vendor relay's no-nonce 307 open redirect, and unvalidated OIDC front-door login are real, but forged session cookies, alg:none tokens, and six spoofed forwarding headers were all rejected. Compromising an admin session still requires an entitled employee to authenticate.
  4. Customer data breach claims → Calibrated on data class and ownership. The bundled bearer unlocked five real internal tRPC procedures, but all returned public catalog and schema metadata rather than tenant PII. Likewise, public-assets-bucket exposed 4,020 objects and real resumes, but every file belonged to an unrelated talent-matching app sharing the two-letter prefix, leaving cloud ownership unconfirmed from outside.
Fig 03 · The refutations and impact calibration: four apparent criticals narrowed under proof
Fig 03 · The refutations and impact calibration: four apparent criticals narrowed under proof

3. The findings that mattered

How the estate was mapped

Fig 04 · How the estate was mapped
Fig 04 · How the estate was mapped

3.1 Hardcoded bearer token in public frontend JS grants internal tRPC warehouse readsHigh

In plain terms. The public website ships a live production API bearer token in its frontend JavaScript bundle alongside an internet-reachable "internal" API hostname. Any visitor can extract the token and query five internal data-warehouse procedures directly — even from a third-party browser origin because the gateway serves wildcard CORS.

What. Static analysis of 41 marketing JS chunks surfaced an opaque UUID bearer constant (NEXT_PUBLIC_<redacted>), a companion expired HS256 frontend JWT (rebuilt on deploy), a developer workspace path disclosing a username and repo name, 13+ server environment variable key names (values stayed server-side), and three non-public hostnames (api-internal.analytics.example, api-internal.analytics-dev.example, and a marketing preview alias).

How we found it. By harvesting all 41 frontend chunks when headless browser recon failed, extracting the hardcoded bearer and six real tRPC procedure names, and testing them with and without the token. Without the token (or with a forged alg:none JWT), all six returned 401 UNAUTHORIZED; with the extracted bearer, five of six catalog/configuration procedures returned 200 OK with analytical column types (LowCardinality(String), Nullable(String)) and live catalog records.

Root cause. Placing a backend credential in a client-exposed NEXT_PUBLIC_* variable inlines it into public static assets, compounded by exposing the internal tRPC gateway on the internet with ACAO: * (CWE-798).

Fig 05 · 3.1 Hardcoded bearer token in public frontend JS grants internal tRPC warehouse reads
Fig 05 · 3.1 Hardcoded bearer token in public frontend JS grants internal tRPC warehouse reads

Impact. Immediate disclosure of an accepted production gateway credential, internal analytical warehouse schema structure, and full reference catalogs, plus developer environment intelligence. Severity is calibrated to High rather than Critical because all responding procedures returned catalog/reference data and every guessed user, account, or billing procedure returned 404 NOT_FOUND — no customer-private records were reached.

Fix. Rotate the bearer token immediately, eliminate NEXT_PUBLIC_* API credentials in favor of a server-side BFF proxy or short-lived session tokens, remove developer workspace paths from production builds, and restrict api-internal.analytics.example to private networking or explicit origin allowlists.


3.2 Publicly readable cloud storage bucket exposing 4,020 objects including applicant resumesHigh

In plain terms. A world-listable cloud storage bucket matching the platform's two-letter prefix exposed 4,020 objects — including applicant resume PDFs, user avatars, and raw Linux home paths. Every object belongs to an unrelated talent-matching web app sharing the abbreviation, so internal cloud admins must verify project ownership immediately.

What. Anonymous listing of public-assets-bucket returned 200 OK across five pages (4,020 objects, 11 prefixes covering applicant submissions, avatars, organization records, and web images), with keys preserving raw Unix developer home paths. A single 94 KB resume PDF was verified for readability; at least three applicant names appeared on page one.

How we found it. By pivoting from the cloud project number disclosed in the GitOps IAP redirect into structured prefix-based bucket enumeration. Private buckets (user-uploads-bucket, static-assets-bucket, and sibling project buckets) returned 403 AccessDenied; public-assets-bucket returned 200 OK.

Root cause. Public allUsers read/list permissions on a bucket containing user-uploaded PII and raw filesystem keys (CWE-284, CWE-200). Because a separate empty public bucket with the same prefix sat under a different cloud project number than the IAP project, external testing cannot prove whether this is a decommissioned/side-project app on the client's cloud account or a third-party prefix collision.

Fig 06 · 3.2 Publicly readable cloud storage bucket exposing 4,020 objects including applicant resumes
Fig 06 · 3.2 Publicly readable cloud storage bucket exposing 4,020 objects including applicant resumes

Impact. If the bucket resides in the organization's cloud account, this is an immediate personal-data exposure carrying GDPR and privacy-notification obligations plus internal developer attribution. If it is an unrelated third-party bucket sharing the prefix, the client has zero liability — making internal ownership verification the single fastest high-value check after reading this report.

Fix. Check internal cloud project inventories immediately. If owned, revoke public read/list IAM grants in one command, audit and purge the 4,020 objects, enforce public access prevention at the project level, and investigate why a separate application or personal project shared corporate cloud storage.


3.3 Unauthenticated OAuth dynamic client registration across five issuers with loopback interceptionHigh

In plain terms. Five OIDC issuers across production, MCP, versioned, internal, and dev domains allow anonymous OAuth client registration with zero authentication or rate limiting. Runtime validation blocks remote attacker domains, but allows arbitrary loopback ports (127.0.0.1 / localhost / [::1]), enabling local-listener auth-code interception across both the API and MCP surfaces.

What. POST /register (RFC 7591) on api.analytics.example, mcp.analytics.example, api-v3.analytics.example, api-internal.analytics.example, and api.analytics-dev.example returns 201 Created anonymously (token_endpoint_auth_method: none, PKCE S256), with 10+ rapid registrations unthrottled. Calling /api/auth/authorize with a registered loopback callback (http://127.0.0.1:<port>/cb or http://localhost:<port>/cb) returns 303 to the login portal with redirect_uri preserved inside returnTo.

How we found it. By parsing /.well-known/openid-configuration, registering public clients across all five issuers, and testing external, first-party, special-scheme, and loopback redirect URIs against /api/auth/authorize. /register persisted arbitrary URIs without filtering, whereas /authorize enforced a separate hardcoded loopback allowlist rejecting external domains (400 invalid_redirect_uri).

Root cause. Unauthenticated RFC 7591 registration without an initial access token (RFC 7591 §3), rate limiting, or separation between first-party native clients and anonymous registrations (CWE-287, CWE-601).

Fig 07 · 3.3 Unauthenticated OAuth dynamic client registration across five issuers with loopback interception
Fig 07 · 3.3 Unauthenticated OAuth dynamic client registration across five issuers with loopback interception

Impact. Any local process, malicious developer tool, or co-resident malware on a user's workstation can mint a clean client identifier, trigger sign-in, intercept the authorization code on an arbitrary loopback port, and redeem it with its own PKCE verifier for a valid Bearer token. Because api.analytics-dev.example routes login through the production explorer SSO, the same primitive spans production and development.

Fix. Gate POST /register behind an initial access token or administrative approval, rate-limit registrations per IP, restrict loopback callbacks to pre-registered first-party clients, and align registration-time validation with runtime authorization validation (returning 400 rather than silently downgrading scopes and auth methods).


3.4 Admin and data-room ?url= echo chained with vendor SSO open redirect and OIDC front doorHigh

In plain terms. Both admin and vault blindly echo caller-supplied ?url= values into the deployment platform's SSO redirect. Compounding that, the platform's own SSO relay turns into an unauthenticated 307 open redirect whenever nonce is omitted, and its OIDC authorization endpoint renders the genuine login form for fabricated client identifiers.

What. Three interacting behaviors across first-party origins and the deployment platform:

  • admin.analytics.example/?url=<payload> and vault.analytics.example/?url=<payload> return 302 to sso.deploy-platform.example/sso-api with ?url= echoed unfiltered across all schemes and hosts.
  • Calling sso.deploy-platform.example/sso-api?url=https://attacker.example/cb with nonce omitted or empty returns an unauthenticated 307 to any https:// host — even unregistered domains (javascript: and // return 400). Supplied nonces are stateless on the unauthenticated path and replayable across admin and vault.
  • Calling sso.deploy-platform.example/oauth/authorize with an unregistered client_id returns 200 rendering the genuine platform login form, deferring client validation until post-auth, and supporting only response_mode=web_message.opener.

How we found it. By walking the 10-step SSO chain across both origins, mutating nonce values, testing six spoofed forwarding headers and forged session cookies (alg:none and synthetic), and inspecting the platform's OIDC discovery and JWKS.

Root cause. Unfiltered query-string preservation on protected origins (CWE-601), plus the platform's query-parameter-triggered login gate and deferred OIDC client_id validation (CWE-346).

Fig 08 · 3.4 Admin and data-room `?url=` echo chained with vendor SSO open redirect and OIDC front door
Fig 08 · 3.4 Admin and data-room `?url=` echo chained with vendor SSO open redirect and OIDC front door

Impact. High-credibility credential phishing against administrators and document-vault users hosted entirely on trusted platform URLs, without needing an attacker lookalike domain for the initial hop. Because forged cookies and spoofed headers were rejected and post-login bounce requires an authenticated victim session, no unauthorized admin access occurred.

Fix. Strip or strictly allowlist ?url= on admin.analytics.example and vault.analytics.example before constructing SSO redirects. Escalate the no-nonce 307 open redirect, stateless unauthenticated nonces, and deferred /oauth/authorize client_id validation directly to the deployment platform's security team.


3.5 Wildcard CORS with custom-header JWT across five API hosts and prod-shared dev/mirror originsHigh

In plain terms. Five API hosts — including an unannounced dev host sharing production's load-balancer IP and a shadow .net mirror whose MCP host bypasses the CDN — advertise Access-Control-Allow-Origin: * with custom auth headers. A single XSS bug on any first-party origin would allow cross-origin reads across all five hosts.

What. Preflight testing across 17 candidate headers confirmed that api.analytics.example, api-internal.analytics.example, api-v3.analytics.example, api.analytics-dev.example, and the /trpc, /v2, and OAuth paths of mcp.analytics.example return 204 with ACAO: * and a static 12-header allowlist exposing x-analytics-jwt, Authorization, and trpc-accept (correcting a Wave 2 false negative that tested only /mcp). Meanwhile, api.analytics-dev.example (leaked in an admin UI CSP) shares production's load-balancer IP, TLS SAN, and production explorer SSO, while *.analytics-mirror.example mirrors every subdomain and serves mcp directly from origin without CDN.

How we found it. By harvesting leaked hostnames from CSP headers and JS bundles, mapping origin IPs across alternate TLDs, and running cross-origin preflight and forged-JWT matrices across all five hosts and subpaths.

Root cause. Wildcard proxy CORS headers paired with header-borne authentication (bypassing browser cookie restrictions) and collapsed production/dev/mirror isolation (CWE-942).

Fig 09 · 3.5 Wildcard CORS with custom-header JWT across five API hosts and prod-shared dev/mirror origins
Fig 09 · 3.5 Wildcard CORS with custom-header JWT across five API hosts and prod-shared dev/mirror origins

Impact. Wildcard CORS removes cross-origin isolation for any leaked x-analytics-jwt or Bearer token — including the client-bundled token in Finding 3.1. Compounded by permissive 'unsafe-inline' 'unsafe-eval' directives in the marketing CSP, a non-HttpOnly session cookie read by frontend JavaScript, and missing CSP headers on api-internal.analytics.example, any future XSS becomes full cross-origin API exfiltration.

Fix. Replace Access-Control-Allow-Origin: * with an explicit allowlist of trusted first-party origins, move browser session tokens to HttpOnly; Secure; SameSite cookies, isolate api.analytics-dev.example onto separate infrastructure and identity stores, and decommission or CDN-gate the shadow .net mirror.


Also confirmed

FindingSeverityContent
Operational email domain DMARC p=none and missing CAA recordsMediumanalytics-ops.example (recipient of primary DMARC reports and host of candidate interviews) sets p=none, allowing domain spoofing despite p=reject; pct=100 on the primary domain; primary zone also lacks CAA records (CWE-290).
29 of 44 brand-prefixed hosting-platform project names unclaimedMediumExternal accounts can freely register high-trust names mirroring internal surfaces (gitops, mcp, api, debug, internal, explorer, secondary-prod) on the deployment platform's shared domain for targeted employee phishing (CWE-284).
Asymmetric OAuth registration storing SSRF-shaped URIs and 7 metadata fieldsMediumPOST /register persists 169.254.169.254, file://, javascript:, wildcard subdomains, and OIDC metadata URIs (sector_identifier_uri, jwks_uri, logo_uri); currently masked by /authorize, leaving a latent SSRF and regression hazard (CWE-918).
Expired TLS certificates (28 days and 901 days) and 127.0.0.1 internal DNS recordMediumlegacy-proxy.analytics.example serves a leaf, intermediate, and cross-signed root chain expired 901 days; legacy-viz.analytics.example expired 28 days; internal.analytics.example resolves to 127.0.0.1 (CWE-298).
Cloud storage inventory disclosure and disabled-billing production bucketsMediumOne secondary-project bucket is publicly listable (empty); seven private bucket names are enumerable via 403; two production-named buckets return UserProjectAccountProblem indicating absent/closed billing accounts (CWE-200).

4. Kill chain summary

Fig 10 · 4. Kill chain summary
Fig 10 · 4. Kill chain summary
ChainReachedTerminated atData obtained
Public bundle bearer → internal tRPCStage 5 (collection)Catalog/schema procedures only; no tenant procsWarehouse schema types + 5 catalog responses
Cloud bucket sweep → public-assets-bucketStage 5 (collection)Single sample PDF + listing; ownership unverified4,020 object keys + 1 sample PDF (no bulk download)
Open OAuth DCR → loopback code captureStage 4 (exploit)Requires victim login + local loopback listenerNone (no victim session)
Admin/vault ?url= → vendor SSO / OIDCStage 4 (exploit)Vendor login gate; forged cookies/headers rejectedNone (no admin session)
Wildcard CORS + custom-header JWTStage 3 (delivery)0 XSS found; forged JWTs rejected (401/403)None
/trpc unauthenticated auth bypassStage 2 (refuted)6/6 real procedures enforce server-side JWT (401)None
GitOps IAP bypass / path traversalStage 2 (held)Cloud IAP edge (302/401) across 131 pathsNone
Preview envs / middleware bypassStage 2 (held)172/172 torn down + edge-patchedNone

5. What the shape of this engagement teaches

Route-before-auth ordering creates convincing false-positive auth bypasses. Ninety-three guessed /trpc procedures returned 404 NOT_FOUND unauthenticated beside a 403-gated /v2 path. Extracting six real procedure names from the JS bundle and observing 401 UNAUTHORIZED on all six proved auth runs inside procedure middleware. Never call an auth bypass on a 404 without testing a real route.

Validate both sides of a two-stage OAuth trust boundary. POST /register accepted every hostile URI, which looked like a remote account takeover. Testing /api/auth/authorize directly revealed a hardcoded loopback allowlist that rejected external domains — narrowing impact to loopback interception and a poisoned client registry.

Static JavaScript bundles map an API even when browser automation fails. Headless browser recon failed at startup, yet grepping 50 static frontend chunks recovered the live internal bearer, all six real tRPC procedures, an expired companion JWT, developer paths, and three non-public hostnames — while confirming the AI chat client shipped zero keys.

Prefix-matched cloud buckets demand attribution discipline before calling a breach. Finding 4,020 objects and resumes under a two-letter prefix is urgent, but external probes cannot verify cloud project ownership. Reporting exact contents alongside the unrelated-app mismatch lets the client either close a privacy breach in one command or rule out a collision in sixty seconds.

Third-party SSO relays inherit the blast radius of every portal behind them. First-party GitOps IAP and API JWT checks held firmly, yet admin and vault inherited high-trust phishing primitives from how the deployment platform's SSO relay handled omitted nonces and unregistered OIDC client IDs.

PriorityActionWhy firstEffort
1Rotate the client-bundled internal API bearer token and remove NEXT_PUBLIC_* API credentialsLive production gateway credential is in cleartext on the public CDNLow
1Verify cloud project ownership of public-assets-bucket; if owned, revoke public IAM and purge 4,020 objectsPotential active privacy-law exposure of applicant resumes and dev pathsVery low
2Strip or allowlist ?url= on admin.analytics.example and vault.analytics.example, and escalate the no-nonce 307 redirect and OIDC front-door behavior to the deployment platform vendorCloses high-trust admin/vault phishing chain at both first-party and vendor layersLow + Vendor
2Gate POST /register behind an initial access token, add rate limiting, and align registration validation with runtime allowlists across all 5 issuersCloses anonymous DCR client minting, loopback interception, and latent SSRF storageMedium
2Replace Access-Control-Allow-Origin: * with an explicit first-party origin allowlist on all 5 API hosts (including MCP /trpc) and move browser auth to HttpOnly cookiesEliminates cross-origin token exfiltration amplificationMedium
3Isolate api.analytics-dev.example off production's load balancer and SSO, and decommission or CDN-gate the shadow .net mirrorRestores clean prod/dev and origin boundariesMedium
3Enforce DMARC p=reject and strict SPF on analytics-ops.example, and add CAA records to the primary zoneCloses spoofing on the operational email and recruiting domainVery low
4Reserve high-risk unclaimed hosting project names (or monitor registrations), remove expired-cert DNS records (legacy-proxy, legacy-viz) and internal loopback DNS, and resolve disabled-billing cloud bucket statesHardens brand-impersonation, TLS hygiene, and operational cloud postureLow

Notices

Authorization

This was an authorized external security assessment conducted under a written engagement agreement. All testing was confined to in-scope assets and passive/read-only verification.

Non-destructive restraint was enforced throughout: for the 4,020-object public bucket, only listings and a single sample PDF were retrieved to establish readability — not a bulk download of applicant data. No unclaimed hosting-platform project names or historical cloud storage buckets were registered or altered. No brute-force credential attacks, victim phishing lures, or destructive API mutations were performed. Fuzzing harnesses were prepared for parser targets but intentionally blocked at the scope gate because local compiled binaries were outside the black-box contract.

Redaction

Every hostname, IP address, credential, cloud identifier, personal name, and vendor-identifying detail in this document has been replaced with a placeholder or generalized.

What was removed:

  • All real domain names, subdomains, shadow-mirror domains, and preview hostnames
  • All IP addresses, load-balancer endpoints, and CDN distribution identifiers
  • All bearer tokens, JWT values, OAuth client IDs, public key IDs, and telemetry DSNs
  • All cloud project numbers, bucket names, and repository or branch identifiers
  • All applicant names, resume contents, developer usernames, and local filesystem paths
  • Organization, product, and unrelated third-party application names
  • Identifying third-party vendor names (deployment platform, cloud provider, CDN, LLM provider, CMS, and status-page provider)
  • Exact calendar dates and wall-clock timestamps

What was kept, deliberately: vulnerability classes and CWE identifiers, the four refutation and calibration sequences in full (tRPC route-before-auth ordering, OAuth registration-versus-runtime allowlist split, SSO relay vs. session enforcement, and bucket-prefix attribution caution), aggregate object/host/probe counts, and protocol-level mechanics (RFC 7591, PKCE S256, web_message.opener, CORS preflight behavior). These are transferable engineering lessons and identify nobody.

Placeholders used throughout:

PlaceholderMeaning
analytics.examplePrimary platform apex and marketing frontend
api.analytics.example / api-internal.analytics.examplePublic REST/OAuth/tRPC host and internet-reachable internal-named API host
api-v3.analytics.example / api.analytics-dev.exampleCDN-fronted versioned API sibling and unannounced dev host on production's LB IP
mcp.analytics.exampleOAuth-gated MCP and tRPC API host
admin.analytics.example / vault.analytics.exampleSSO-gated administrative portal and document vault
gitops.analytics.exampleCloud IAP-gated GitOps continuous-delivery controller
chat.analytics.example / status.analytics.exampleStandalone consumer AI chat app and read-only third-party status page
*.analytics-mirror.example / analytics-ops.exampleSecondary TLD production mirror and operational email/interview domain
legacy-proxy.analytics.example / legacy-viz.analytics.exampleDecommissioned subdomains with expired TLS certificates
internal.analytics.exampleSubdomain resolving to loopback (127.0.0.1)
sso.deploy-platform.exampleThird-party deployment platform SSO relay and OIDC IdP
public-assets-bucket / user-uploads-bucket / static-assets-bucketWorld-readable prefix-matched bucket and private first-party storage buckets
x-analytics-jwt / <redacted>Custom session JWT header and any specific key, identifier, path, or value

Data handling

No applicant PII, resume text, personal names, email addresses, credentials, or proprietary warehouse rows are reproduced. Bucket exposure is reported strictly by aggregate object count and generic prefix classes, and internal tRPC exposure is described solely by procedure-count and column-type behavior.

Disclaimer

Findings reflect the state of the tested systems during the engagement window; security posture changes and a finding here does not imply the condition persists today. Four apparent criticals are explicitly reported as refuted or calibrated down, not inflated as compromises (/trpc auth verified on six real bundle-extracted procedures; remote OAuth takeover narrowed to loopback by /authorize; SSO relay bounded below unauthenticated takeover; 4,020-object bucket flagged for internal ownership verification). The 4,020-object bucket was verified without harvesting user data — listings and one sample file established readability with no bulk collection.


Methodology and tooling by BlackBit. Four apparent criticals narrowed or refuted through direct end-to-end verification; client-bundled credentials, open OAuth registration, and third-party SSO relay weaknesses isolated cleanly. Published with the client's permission.

More in Web3

← All case studies