Skip to content

Case study · Web3

Mobile-First Social Crypto Trading App

A first-party telemetry proxy reflected arbitrary origins with credentials across three live routes and accepted unsanitized cross-origin CSP reports, while an apparent critical OAuth account takeover was refuted.

Findings · 6
2 Medium4 Low
FindingVulnerabilitySeverity
3.1Telemetry proxy reflects arbitrary origins with credentialsCWE-942The platform mounts its hosted product-analytics service behind a first-party subdomain (telemetry.socialtrade.example) using a public project token already embedded in the apex Content-Security-Policy header.Medium
3.2Unauthenticated cross-origin CSP-report ingestion accepts unsanitized HTML without rate limitingCWE-20, CWE-79The same telemetry subdomain exposes /report/?token=<redacted> as the apex's CSP violation collector.Medium
3.3Missing HSTS on apex and absent security headers on campaign subdomainCWE-319, CWE-523The apex domain sets five strong browser security headers — CSP, X-Frame-Options: DENY, X-Content-Type-Options: nosniff, Referrer-Policy: strict-origin-when-cross-origin, and Permissions-Policy…Low
Narrow edge WAF bypass via HTML-entity encoding (CWE-184)CWE-184Edge WAF blocked 54/115 baseline payloads (403), but passed HTML-entity-encoded SQLi (1&#39; OR &#39;1&#39;=&#39;1, &#39; OR SLEEP(5)--) and raw tag-only HTML (<iframe>, <svg>…Low
Permissive email authentication policy (CWE-290)CWE-290Apex DNS publishes SPF ending in ~all (softfail) and DMARC set to p=quarantine rather than p=reject, with no public DKIM selectors discovered. For a consumer crypto brand, quarantine-only DMARC weakens anti-phishing posture against domain spoofing.Low
Pre-production bundle IDs and internal hostnames in public metadata (CWE-200)CWE-200Production iOS app-association manifest (/.well-known/apple-app-site-association) discloses three non-production bundle identifiers (dev, staging, internal) under the production Apple Team ID…Low

Executive summary

What we were asked to do

A mobile-first social crypto trading platform asked us to assess its public web estate from an unauthenticated external position. The trading product lives primarily in iOS and Android applications; the public web surface is a CDN-fronted single-page application (SPA) paired with an embedded-wallet identity provider, a first-party reverse proxy for product analytics and feature flags, and mobile deep-link manifests.

The engagement confirmed two live cross-origin configuration weaknesses on the telemetry proxy and four hygiene gaps across edge headers, email authentication, WAF filtering, and public metadata — and produced a textbook refutation of an apparent critical OAuth account takeover.

Principal findings

The platform's first-party telemetry proxy reflected arbitrary `Origin` headers — including `null` — paired with `Access-Control-Allow-Credentials: true` across three live endpoints (`/decide/`, `/flags/`, and `/report/`), and accepted unauthenticated cross-origin CSP reports containing raw HTML and JavaScript payloads (`204 No Content`) with no rate limiting. Anonymous flag calls returned project config with empty flags and unauthenticated POST flag evaluations returned 401, bounding current impact; viewer-side XSS execution in the analytics dashboard was not proven without a viewer account. The refutation: automated triage flagged a "Critical" OAuth code-replay takeover because /token (and 12 other app-association paths) returned the same 200 OK 5,595-byte shell regardless of state or provider. Forensic review dismantled that claim — the apex is a cached static SPA (hasLoader: false, zero session cookies), the identity provider enforces PKCE (code_verifier) plus state_code and returned 400 Bad Request to canary probes, Referrer-Policy: strict-origin-when-cross-origin blocks query-string Referer leaks, and 182 reflected-XSS probes returned zero reflections.

What this means in plain terms

Three things leadership should take from this.

  • The telemetry subdomain trusts every origin on the internet with credentials and accepts unvalidated report payloads. Today the anonymous flag map is empty and authenticated flag posts return 401, so no user data leaked during testing. The moment user-scoped feature flags or parent-domain cookies touch that subdomain, arbitrary websites can read them; today, any third-party site can already poison the CSP-violation feed without throttling.
  • A headline "Critical" OAuth account takeover turned out to be a false positive, and proving why was the highest-value work in the engagement. A static SPA serving the same cached HTML shell for every route and query string looks identical to an endpoint that "accepts any state value." Four independent controls — PKCE, Referrer-Policy, zero XSS, and the identity provider's 400 validation gate — held.
  • The remaining gaps are fast operational fixes, plus one architectural choice on browser token storage. Adding HSTS on the apex, applying security headers to a standalone campaign subdomain, tightening DMARC from quarantine to reject, and stripping pre-production bundle IDs from production manifests take hours. Keeping long-lived refresh tokens in localStorage under a CSP that permits script-src 'unsafe-inline' is not exploitable today, but leaves thin margin if a client-side XSS ever appears.

The five things that need a decision, not a patch

#What is wrongBusiness impactWho decides
1Telemetry proxy reflects any Origin (including null) with Access-Control-Allow-Credentials: true on /decide/, /flags/, and /report/Mounting a third-party analytics proxy on a first-party subdomain pulls its permissive defaults inside your domain boundary. Restricting origins now prevents future user-cohort leaks.Platform engineering + security
2Unauthenticated /report/ endpoint ingests raw HTML/JS in CSP-report fields with no rate limitIngestion is live-proven; viewer-side escaping in the analytics dashboard could not be verified without a viewer account. Deciding whether to filter at the edge proxy and audit the dashboard view is an operational call.Platform engineering + analytics
3Client-side OAuth bootstrap reads localStorage refresh tokens under a CSP permitting script-src 'unsafe-inline'No XSS exists on the apex today and PKCE holds, so there is no live takeover. Whether to move code exchange to a server-side callback with HttpOnly cookies (or drop 'unsafe-inline') is an architecture trade-off.Identity + frontend architecture
4Production mobile-association manifest and CSP headers expose dev/staging/internal bundle IDs, internal edge hostnames, and staging bucket namesPublic manifests are required by mobile OS specs, but listing pre-production targets in production files hands adversaries a map for mobile binary and internal-network follow-up.Mobile engineering + DevOps
5Apex omits HSTS, a campaign subdomain omits all security headers, and domain email uses SPF ~all with DMARC p=quarantineStandardising edge headers across every edge service and moving DMARC to p=reject requires checking legacy mail senders and subdomains first.Infrastructure + IT security

What we did not get

No account takeover, user session, wallet key, refresh token, proven dashboard execution, or host foothold (host_scope: false, url-only). No object-storage listing, SQL injection, reflected XSS, path traversal, open redirect, cache poisoning, or subdomain takeover. Private trading APIs do not resolve in public DNS, both object-storage buckets returned 403 AccessDenied, and the embedded-wallet identity provider rejected canary calls with 400 Bad Request. Those controls worked.

Engagement outcome

An authorized external security assessment of a social crypto trading platform's public web estate identified two medium-severity cross-origin configuration weaknesses on its first-party telemetry proxy and four low-severity edge, email, and metadata hardening gaps. An initially flagged OAuth account takeover hypothesis was forensically refuted after verifying that the web apex serves a static cached application shell while PKCE, `Referrer-Policy`, and identity-provider validation enforce session boundaries. No user accounts, funds, sessions, or private storage assets were accessed, and prioritised remediation guidance was delivered under confidentiality.


1. The engagement in numbers

MetricValue
Root workstreams1
Total Swarm Size6
Subdomains enumerated (merged)31 (9 live, 15+ internal/historical NXDOMAIN)
Subdomain takeovers0
Live-recon endpoints mapped141 (30 pages crawled, 145 sitemap URLs)
Hypotheses tested16 / 16 (0 unverified)
Confirmed findings (post-adjudication)6 (2 medium, 4 low)
Refuted critical claims1 (OAuth code-replay account takeover)
Unverified chain escalations1 (analytics viewer-side XSS execution)
Injection / XSS / traversal / redirect probes244 (182 XSS, 25 SQLi, 18 traversal, 19 redirect — 0 exploitable)
Edge WAF baseline probe54 / 115 payloads blocked (403)
User sessions, tokens, or records obtained0

Two numbers in that table carry the story. First, the engagement ran cleanly in six focused sessions — one orchestrator plus five single-session phase workers — because nested sub-fan-out was constrained by sandbox policy; every phase still completed its full contract with raw HTTP captures saved per probe. Second, post-engagement forensic adjudication audited those raw HTTP captures against automated severity claims, separating live-proven exposures from an overstated critical and an unproven viewer-side chain.

Agent topology

RoleSessionsResponsibility
Orchestrator1Phase gating, contract management, handoffs, final synthesis
Recon1Deep-mode surface mapping, subdomain enumeration, manifest capture, WAF/CDN profiling
Advisor1Recon gate review, hypothesis ranking, gap triage
Vulnerability analyst116 hypotheses across 10 OWASP classes with verbatim HTTP captures
Exploit1Live PoC reproduction, identity SDK bundle analysis, WAF character matrix
Reporter1Narrative report assembly (completed via orchestrator after path-policy block)
Fig 01 · Agent topology
Fig 01 · Agent topology

2. What held

The refutation is the centrepiece of this section, and four distinct defensive layers held behind it.

  • The embedded-wallet identity provider enforced PKCE and strict parameter validation. Inspecting the client SDK bundle confirmed that OAuth code exchange posts {authorization_code, state_code, code_verifier, provider, mode} to auth-provider.example/api/v1/oauth/authenticate, pairing a code_challenge from /api/v1/oauth/init with a browser-held code_verifier. Direct canary calls to both endpoints returned 400 Bad Request ({"error":"missing required parameters"}), and standard OIDC discovery paths returned 404 on both the provider host and the branded tenant subdomain.
  • Apex input handling, framing, and Referer controls held cleanly. Every apex response enforced Referrer-Policy: strict-origin-when-cross-origin, X-Frame-Options: DENY, CSP frame-ancestors 'self' (verified across 7 app-association routes), and X-Content-Type-Options: nosniff. Across 182 reflected-XSS probes (13 paths × 14 parameters), 25 SQLi probes (including time-based SLEEP(5)), 18 path-traversal variants, 19 open-redirect probes, and 4 unkeyed cache-poisoning headers, zero probes reflected, delayed, traversed, redirected off-host, or poisoned cache (with X-Original-URL and X-Rewrite-URL safely switching responses to no-store).
  • Object-storage isolation and DNS retirement held. Both production and staging profile-image buckets returned 403 Forbidden (AccessDenied) on root and ListBucket (?list-type=2) probes from non-application user agents. All 15 historical and internal-named subdomains — including a CI-named subdomain re-probed explicitly on ports 80 and 443 — resolved NXDOMAIN with zero dangling CNAMEs.
  • No first-party web API surface was exposed, and the embedded charting dependency was current. Schema discovery found 0 OpenAPI specs, 0 GraphQL endpoints, and 0 static HTML forms; private order and edge hosts referenced in CSP did not resolve publicly. The client-side charting library bundle fingerprinted at v31.0.0, well past the patched v27.x CVE series.
Fig 02 · 2. What held
Fig 02 · 2. What held

The refutation: a critical that was not one

This deserves its own subsection because it is the most transferable engineering lesson in the engagement.

During reconnaissance, inline JavaScript on the apex landing page showed a client-side redirect shim: when oauth_code, oauth_state, and oauth_provider all appear in the URL query string on /, the script hides the document and calls location.replace("/token" + location.search). During vulnerability testing, sending eight state variants (including missing state, attacker-chosen strings, and 20 arbitrary provider names) to GET https://socialtrade.example/token?... returned the exact same HTTP/2 200, content-length: 5595, and identical static ETag every time. Twelve other app-association paths (mobile deep-link routes for token views, key export, payment, and user profiles) returned that same 5,595-byte response. Automated triage treated that as missing server-side OAuth state binding and chained it with a hypothetical Referer leak into a "Critical" account takeover.

Forensic inspection of the live captures broke every link in that chain:

  1. The `200 OK` response is a cached static SPA shell, not OAuth validation. The response carried a CDN edge cache HIT, cache-control: public, max-age=0, must-revalidate, a static ETag, and no session Set-Cookie (only the CDN bot-management cookie). The framework manifest confirmed isSpaMode: true and hasLoader: false. Serving index.html to arbitrary query parameters is what every static SPA does; it proves nothing about whether an authorization code is accepted.
  2. Code exchange happens at `auth-provider.example`, which enforces PKCE. Bundle inspection showed the client SDK generates a PKCE code_verifier (stored in sessionStorage) and state_code at /api/v1/oauth/init, then posts {authorization_code, state_code, code_verifier, provider, mode} to /api/v1/oauth/authenticate. A stolen authorization code alone cannot mint a session without the victim's code_verifier. Direct canary POST probes to both endpoints returned 400 Bad Request (missing required parameters). No live OAuth flow or cross-session replay was ever executed.
  3. The proposed Referer-leak capture vector is blocked by the apex's own headers. Every apex response — including /token — sets Referrer-Policy: strict-origin-when-cross-origin. Navigating from https://socialtrade.example/token?oauth_code=... to an external origin strips the path and query string entirely, sending only https://socialtrade.example/.
  4. No same-origin script execution exists to read `sessionStorage` or `localStorage`. All 182 reflected-XSS probes returned zero reflections, and framing is blocked by X-Frame-Options: DENY and frame-ancestors 'self'.
Fig 03 · The refutation: a critical that was not one
Fig 03 · The refutation: a critical that was not one

The class is worth naming: SPA-fallback amplification produces false-positive authentication bypasses. When an edge host serves an identical cached 200 OK SPA bootstrap regardless of path or query string, a 200 OK with forged OAuth parameters is zero evidence of server-side acceptance. Before calling an OAuth flow broken, trace where the code is actually exchanged, confirm whether PKCE and Referrer-Policy hold, and verify that a real session credential is minted.

One legitimate architectural note survives the refutation: because the apex CSP permits script-src 'unsafe-inline' while the client stores refresh tokens in localStorage and PKCE verifiers in sessionStorage, any future same-origin XSS would immediately reach session material. That is a defense-in-depth decision, not a live Critical.


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 Telemetry proxy reflects arbitrary origins with credentialsMedium

In plain terms. The platform mounts its hosted product-analytics service behind a first-party subdomain (telemetry.socialtrade.example) using a public project token already embedded in the apex Content-Security-Policy header. Three live endpoints on that subdomain — /decide/, /flags/, and /report/ — echo any browser Origin header straight back in Access-Control-Allow-Origin, including Origin: null, paired with Access-Control-Allow-Credentials: true (CWE-942).

What. Live cross-origin GET requests to /decide/?token=<redacted> and /flags/?token=<redacted> returned HTTP/2 200 with reflected access-control-allow-origin and access-control-allow-credentials: true across every tested origin (https://attacker.example, https://evil.example, null, and https://socialtrade.example), while omitting Origin omitted Access-Control-Allow-Origin. OPTIONS preflight returned HTTP/2 200 permitting GET,POST,OPTIONS,HEAD and content-type.

How we found it. By extracting the project token from the apex report-uri header, mapping active routes on the telemetry reverse proxy, and probing a five-origin matrix plus OPTIONS preflight, cookie-bearing GET requests, and POST evaluations carrying distinct_id and person_properties.

The bounding tests mattered as much as the confirmation. Anonymous GET responses returned project metadata (config: {"enable_collect_everything": true}, supportedCompression: ["gzip", "gzip-js"], sessionRecording: false, isAuthenticated: false) with featureFlags: {} empty. POST requests with distinct_id and person_properties returned HTTP/2 401 (not_authenticated: No API token provided), still carrying reflected CORS headers. A fabricated <provider>-session cookie produced the same unauthenticated 200 body, and no real session cookie was proven scoped to .socialtrade.example. Calibrating this finding at Medium rather than High reflects that bound: the CORS weakness is live-confirmed, while current anonymous exposure is limited to public project configuration until flags are populated or a parent-domain cookie is shared across subdomains.

Root cause. The analytics reverse proxy reflects the request Origin without a strict origin allowlist while advertising Access-Control-Allow-Credentials: true.

Fig 05 · 3.1 Telemetry proxy reflects arbitrary origins with credentials
Fig 05 · 3.1 Telemetry proxy reflects arbitrary origins with credentials

Impact. Cross-origin disclosure of analytics project settings, supported compression, and session-recording state today; cross-origin exposure of feature-flag rollouts, experiment keys, and user-scoped cohort flags whenever flags are populated or cookies are scoped across subdomains.

Fix. Restrict Access-Control-Allow-Origin on the telemetry proxy to an explicit allowlist of production origins (https://socialtrade.example and mobile origins), reject Origin: null, and drop Access-Control-Allow-Credentials: true on endpoints that do not require browser cookies.


3.2 Unauthenticated cross-origin CSP-report ingestion accepts unsanitized HTML without rate limitingMedium

In plain terms. The same telemetry subdomain exposes /report/?token=<redacted> as the apex's CSP violation collector. Because the project token is public in every page's Content-Security-Policy header and the endpoint reflects arbitrary origins with credentials, any external host can submit forged CSP violation reports containing arbitrary HTML and JavaScript snippets — and the collector accepts them with 204 No Content and no observable rate limiting (CWE-20, potential CWE-79).

What. Sending POST requests (Content-Type: application/csp-report, Origin: https://attacker.example) to telemetry.socialtrade.example/report/?token=<redacted> returned HTTP/2 204 No Content with reflected access-control-allow-origin and access-control-allow-credentials: true across all five single-object payloads: <img src=x onerror=alert(1)> in document-uri, <script>alert(1)</script> and <svg onload=alert(1)><iframe src=javascript:alert(1)> in script-sample, javascript:alert(1) in document-uri/blocked-uri, and a five-request burst (all 204, zero throttling). Plain JSON events and Reporting API array batches returned HTTP/2 400 (invalid_payload), confirming envelope checks exist while field content and origin go unfiltered; response headers confirmed forwarding to analytics-upstream.example.

How we found it. By probing the apex CSP report-uri with baseline malformed JSON (400), OPTIONS preflight (200 with reflected CORS), and valid application/csp-report HTML/JS payloads. Ingestion (`204`) was proven; viewer-side stored XSS execution in the analytics dashboard was not. Without a viewer account, we could not verify whether the upstream UI renders script-sample or blocked-uri unescaped (error responses emit content-security-policy: default-src 'none'), so claiming dashboard takeover would overstate the evidence.

Root cause. Publicly exposed collector token combined with reflected cross-origin acceptance, no field sanitization or URI-scheme validation on CSP-report fields, and no per-source rate limiting.

Fig 06 · 3.2 Unauthenticated cross-origin CSP-report ingestion accepts unsanitized HTML without rate limiting
Fig 06 · 3.2 Unauthenticated cross-origin CSP-report ingestion accepts unsanitized HTML without rate limiting

Impact. Any unauthenticated actor can flood the project's CSP-violation feed, bury legitimate browser security alerts in noise, inflate analytics event ingestion volume, and inject HTML/JS strings that become stored XSS if any downstream dashboard, webhook, or custom viewer renders them unsafely.

Fix. Validate document-uri and blocked-uri against expected https:// schemas at the edge proxy, strip or truncate script-sample, restrict Origin / Referer where browser Reporting API semantics permit, enforce request body size and per-IP rate limits, and verify HTML escaping in the analytics dashboard and any downstream alert integrations.


3.3 Missing HSTS on apex and absent security headers on campaign subdomainLow

In plain terms. The apex domain sets five strong browser security headers — CSP, X-Frame-Options: DENY, X-Content-Type-Options: nosniff, Referrer-Policy: strict-origin-when-cross-origin, and Permissions-Policy — but omits Strict-Transport-Security (HSTS) (CWE-319 / CWE-523). Meanwhile, a standalone year-end campaign subdomain (campaign.socialtrade.example) served by a separate edge deployment emits none of the six security headers (CWE-693).

What. A six-host by six-header matrix captured verbatim across the estate:

HostHSTSCSPXFOXCTOReferrer-PolicyPermissions-Policy
socialtrade.exampleMissingPresent (unsafe-inline)DENYnosniffstrict-origin-when-cross-originRestricted
telemetry.socialtrade.examplemax-age=2592000Missing on rootMissing on rootMissing on rootMissing on rootMissing on root
campaign.socialtrade.exampleMissingMissingMissingMissingMissingMissing
www.socialtrade.exampleMissingMissing (302)Missing (302)Missing (302)Missing (302)Missing (302)
status.socialtrade.exampleMissingMissing (404)Missing (404)Missing (404)Missing (404)Missing (404)
auth-tenant.socialtrade.exampleMissingMissingSAMEORIGINMissingMissingMissing

In addition, campaign.socialtrade.example returned HTTP/2 405 on HEAD while serving its SPA on GET, indicating a custom edge service deployed outside the apex header template. On the apex itself, CSP permits script-src 'unsafe-inline' and style-src 'unsafe-inline', weakening XSS containment if a future injection vector is introduced on a page that also reads localStorage refresh tokens.

How we found it. By auditing response headers systematically across every live subdomain and verifying frame-ancestors across seven app-association paths.

Root cause. Security headers are applied per edge service rather than enforced as a zone-wide edge transform policy, leaving HSTS off on the apex and all headers absent on the campaign host.

Fig 07 · 3.3 Missing HSTS on apex and absent security headers on campaign subdomain
Fig 07 · 3.3 Missing HSTS on apex and absent security headers on campaign subdomain

Impact. Without HSTS, a first-visit plaintext http:// request on a hostile network is exposed to SSL-stripping downgrade before the edge redirect completes. On campaign.socialtrade.example, any future client-side injection or clickjacking attempt would face zero CSP or framing restrictions.

Fix. Apply Strict-Transport-Security: max-age=31536000; includeSubDomains; preload at the edge zone level (after verifying all subdomains support HTTPS), apply the standard security header set to campaign.socialtrade.example, and plan migration off script-src 'unsafe-inline' to nonces or hashes.


Also confirmed

FindingSeverityContent
Narrow edge WAF bypass via HTML-entity encoding (CWE-184)LowEdge WAF blocked 54/115 baseline payloads (403), but passed HTML-entity-encoded SQLi (1&#39; OR &#39;1&#39;=&#39;1, &#39; OR SLEEP(5)--) and raw tag-only HTML (<iframe>, <svg>, <marquee>) with 200. Full HTML-entity-encoded XSS payloads remained blocked (403), narrowing initial recon expectations; because the apex is a static SPA with zero DB or reflection sinks, the bypass unlocks no exploitable surface today.
Permissive email authentication policy (CWE-290)LowApex DNS publishes SPF ending in ~all (softfail) and DMARC set to p=quarantine rather than p=reject, with no public DKIM selectors discovered. For a consumer crypto brand, quarantine-only DMARC weakens anti-phishing posture against domain spoofing.
Pre-production bundle IDs and internal hostnames in public metadata (CWE-200)LowProduction iOS app-association manifest (/.well-known/apple-app-site-association) discloses three non-production bundle identifiers (dev, staging, internal) under the production Apple Team ID; apex CSP connect-src names internal edge subdomain patterns and staging object-storage bucket names; robots.txt enumerates sensitive mobile deep-link route families (key export, token verification, user profiles, and charting).

Reviewed and explicitly not classified as vulnerabilities:

  • Uniform 5,595-byte SPA shell across 12 app-association routes (plus a 307 trailing-slash redirect on the token-verification route): expected catch-all behavior of a static SPA (isSpaMode: true, hasLoader: false), not an authorization bypass — confirmed unchanged with a fabricated session cookie.
  • Android Digital Asset Links signing-certificate SHA-256 hash (/.well-known/assetlinks.json): public by Android platform specification; only the hash is published, not private key material.
  • Embedded-wallet public app ID and client bootstrap token in JS bundle: required by design to initialise the client SDK; not a standalone secret.

4. Kill chain summary

Fig 08 · 4. Kill chain summary
Fig 08 · 4. Kill chain summary
ChainReachedTerminated atData obtained
Telemetry CORS read (/decide/, /flags/)Stage 4 (exploit)Empty anonymous flags; 401 on POST with distinct_idPublic project config and compression flags only
Telemetry CSP-report injection (/report/)Stage 4 (exploit — ingestion)204 accepted; dashboard viewer rendering unverifiedNone (5 canary reports stored)
OAuth code-replay ATO (/token + 12 routes)Stage 2 (weaponize — refuted)Static cached SPA shell; PKCE + 400 at provider; Referrer-Policy; 0 XSSNone
WAF HTML-entity bypass (?q=)Stage 3 (delivery)No SQL or HTML reflection sink on static SPANone
Storage & legacy subdomain pivotStage 1 (recon)403 AccessDenied on object storage; NXDOMAIN on 15+ legacy hostsNone

5. What the shape of this engagement teaches

A static SPA returning `200 OK` is never proof of an OAuth bypass. Modern front-end routers serve the same cached index.html for every route and query string. Reading 200 OK with forged state as "state not validated" confuses static asset delivery with token exchange; always trace the real exchange endpoint (auth-provider.example) and verify whether a session is minted.

Check the headers you already captured before claiming a capture vector. The proposed OAuth code-capture path assumed outbound links leak query parameters in Referer, yet Referrer-Policy: strict-origin-when-cross-origin sat in the first curl -i capture. Auditing headers early kills broken exploit chains before they reach a report.

Separate ingestion acceptance from viewer-side execution. Receiving 204 No Content on an unauthenticated collector proves telemetry poisoning and unsanitized storage — not stored XSS. Without observing downstream rendering, calling it "dashboard takeover" overstates the evidence.

Third-party proxies on first-party subdomains inherit first-party trust. Mounting analytics under telemetry.socialtrade.example brings permissive CORS defaults (Origin reflection with credentials) inside your domain tree, creating a standing hazard whenever user-scoped flags or shared cookies expand.

A mobile-first product with a thin web shell still maps its internal estate through manifests and CSPs. Without touching a mobile binary, public apple-app-site-association, robots.txt, and CSP headers disclosed pre-production bundle IDs (dev, staging, internal), deep-link routes, internal edge patterns, and staging storage bucket names. Separating production and pre-production metadata cuts off reconnaissance before mobile testing begins.

PriorityActionWhy firstEffort
1Restrict CORS on telemetry.socialtrade.example (/decide/, /flags/, /report/) to explicit production origins and drop Access-Control-Allow-Credentials: true where unusedEliminates arbitrary-origin (including null) credentialed reads before user-scoped flags or shared cookies existVery low (1–2 hrs)
1Add input validation, field stripping, body-size caps, and per-IP rate limiting to /report/, and verify HTML escaping in the analytics viewer UICloses unthrottled telemetry poisoning and eliminates potential viewer-side XSSLow (2–4 hrs)
2Enable zone-wide HSTS (max-age=31536000; includeSubDomains; preload after subdomain audit) and add full security headers to campaign.socialtrade.exampleCloses first-visit downgrade window on apex and zero-header gap on campaign hostVery low (30 min)
2Audit legitimate mail senders, publish DKIM, and tighten SPF (-all) and DMARC (p=reject)Reduces brand-spoofing and phishing risk against retail crypto usersLow
3Remove dev, staging, and internal bundle IDs from production AASA and drop staging bucket / internal edge patterns from production CSPEliminates unnecessary pre-production target disclosureLow
3Evaluate removing script-src 'unsafe-inline' on apex or shifting OAuth exchange to a server-side callback with HttpOnly cookiesHardens defense-in-depth around localStorage refresh tokens and sessionStorage PKCE verifiersMedium
4Scope a follow-up mobile binary assessment (iOS IPA + Android APK) and authenticated wallet/SIWE flow reviewPublic web surface is thin; actual trading and signing logic lives in the mobile apps and private edge APIsFollow-up scope

Notices

Authorization

This was an authorized external security assessment under a written agreement in unauthenticated url-only mode with cross-subdomain correlation permitted and host exploitation out of scope (host_scope: false). Passive and canary discipline applied throughout — no user accounts or wallets were accessed; the only target-side state created was five benign canary CSP reports accepted (204) by /report/ (deletion optional).

Redaction

Every hostname, IP address, ASN, token, app/team identifier, hash, ETag, vendor name, and timestamp has been replaced with a placeholder or generalised.

What was removed:

  • All client domain names, subdomains, brand names, and corporate entity names
  • All third-party vendor names (embedded-wallet identity provider, analytics platform, CDN/WAF vendor, charting library vendor, exchange/bridge/wallet-relay providers, and HR/recruiting hosts)
  • All IP addresses, CIDR ranges, ASNs, CDN POP codes, and Ray IDs
  • All project tokens, client bootstrap tokens, app IDs, Apple Team IDs, App Store IDs, bundle IDs, and analytics measurement IDs
  • All certificate SHA-256 fingerprints, HTML body hashes, ETags, and cookie values
  • Specific internal edge hostnames, staging/production object-storage bucket names, and CI hostnames
  • Exact calendar dates and clock timestamps

What was kept, deliberately: vulnerability classes and CWE identifiers, exact HTTP status codes and response mechanics, probe counts and WAF block ratios, the full refutation sequence for the OAuth SPA-fallback false positive (cached 200 OK shell, PKCE code_verifier, provider 400, Referrer-Policy: strict-origin-when-cross-origin, zero XSS), and the boundary between proven telemetry ingestion (204) and unproven viewer-side rendering. These details are transferable and identify nobody.

Placeholders used throughout:

PlaceholderMeaning
socialtrade.exampleClient apex web domain (static SPA)
telemetry.socialtrade.exampleFirst-party product-analytics and CSP-report reverse proxy
campaign.socialtrade.exampleStandalone year-end campaign edge host
auth-tenant.socialtrade.exampleBranded embedded-wallet identity tenant subdomain
auth-provider.exampleThird-party embedded-wallet identity provider API host
analytics-upstream.exampleUpstream hosted product-analytics cloud collector
attacker.example / evil.exampleUntrusted third-party test origins used in CORS probes
<provider>-session / <provider>:refresh_tokenClient-side identity session cookie and storage key names
<redacted>Any project token, app identifier, hash, or host-specific value

Data handling

No user data, wallet addresses, balances, emails, session tokens, or live secrets were accessed or are reproduced. All proof requests used synthetic canary strings and unauthenticated endpoints.

Disclaimer

Findings reflect the state of the tested systems during the engagement window. Security posture changes; a finding here does not imply the condition persists today.

The embedded-wallet OAuth "Critical" is reported as refuted, not as a confirmed takeover. Forensic review of the live captures, manifest, SDK bundle, and headers preserved the full sequence so readers can recognise SPA-fallback amplification before acting on a false positive. Analytics dashboard stored XSS is unverified at the viewer layer — ingestion (204) was proven, but rendering could not be tested without a viewer account.


Methodology and tooling by BlackBit. An overstated critical refuted by tracing a static SPA fallback back to PKCE and `Referrer-Policy`; cross-origin telemetry risks proven and honestly bounded at the ingestion and anonymous-config layers. Published with the client's permission.

More in Web3

← All case studies