Skip to content

Case study · Web3

Cryptocurrency Market Data Aggregator and Price-Tracking Platform

An unauthenticated community profile API leaked sequential user records with no rate limiting, alongside open MCP OAuth client registration and an internal payment oracle, while origin handlers held even past an encoding-unaware WAF.

Findings · 9
2 High3 Medium4 Low
FindingVulnerabilitySeverity
3.1Unauthenticated horizontal IDOR enumerating community profilesCWE-639POST /<community>/v3/<community>/profile/query on api.aggregator.example resolves any arbitrary numeric guid using only anonymous edge cookies (a WAF challenge cookie and a public CSRF/locale cookie).High
3.2Open RFC 7591 OAuth dynamic client registration with no rate limitCWE-284POST /register on mcp.aggregator.example implements RFC 7591 dynamic client registration with no authentication, no approval workflow, and no rate limiting (CWE-284).High
3.3Unauthenticated /system/** payment-flow oracle and hardcoded test credentialsCWE-306, CWE-798Internal health, test, and billing-statistics endpoints on the MCP authorization server were reachable directly from the public internet without authentication.Medium
3.4Non-production CDN Host-header override and Kubernetes topology leaksCWE-284, CWE-200Three staging and beta CDN distributions returned 403 when requested normally, but changing a single HTTP Host header routed requests straight through to the production web and API origins…Medium
3.5Location-scoped Basic-auth bypass and encoding-unaware WAFCWE-284, CWE-693Two password-protected hosts exempted /.well-known/* and /robots.txt from Basic authentication, accidentally serving full application 404 pages with build metadata and a hardcoded telemetry token.Medium
Keyless full-catalogue route on paid APIpro-api.aggregator.example/v1/cryptocurrency/map?limit=5000 returns 5,000 active rows (credit_count: 0) with no API key, while all sibling pro-api endpoints enforce API-key authenticationLow
Default tutorial SAML sample app at /adminA generic framework tutorial SAML application is exposed at /admin on the primary api origin (pro-api returns 404)Low
Third-party publisher key & telemetry token in client buildsSelf-serve ad portal config.js exposes a third-party publisher CORE_KEY, and the web3 client embeds a fire-and-forget telemetry beacon token (verified non-privileged against all first-party APIs)Low
Orphaned / dangling CNAME records (4 hosts)Two decommissioned ELB CNAMEs, one dead CDN distribution CNAME, and one decommissioned email-tracking subaccount CNAME resolve to NXDOMAIN / no answer (non-claimable by outside tenants; DNS cleanup required)Low

Executive summary

What we were asked to do

A major cryptocurrency market-data aggregator asked us to assess its external estate from an unauthenticated vantage. The estate spans 123 enumerated subdomains (64 live), all served exclusively on ports 80 and 443 behind a content delivery network, a web application firewall, and a shared Kubernetes backend cluster.

The engagement tested whether an external actor could breach non-public user records, mint privileged OAuth tokens on the platform's Model Context Protocol (MCP) authorization server, or pivot into the internal Kubernetes backend. One objective succeeded; two were blocked by working controls — and a subsequent WAF-bypass pass produced one of the clearest demonstrations in our work of why defeating a perimeter filter does not automatically compromise an origin.

Principal findings

An unauthenticated community profile API accepted sequential integer user identifiers and returned full profile records with no authentication and no rate limiting. Forty consecutive probes (1000 through 1039) returned 40 of 40 records — including six deleted accounts whose profiles still resolved — exposing encrypted profile blobs, account-creation timestamps, linked third-party social UIDs, and internal influence-analytics scores. Separately, the platform's MCP OAuth authorization server left dynamic client registration completely open with no rate limit (six registrations minted in one second with arbitrary redirect URIs) and exposed unauthenticated `/system/ endpoints** containing a live payment-flow query oracle and hardcoded test credentials. Three non-production CDN distributions also accepted Host-header overrides that routed directly to the production origin, and backend Envoy headers leaked internal Kubernetes service FQDNs and ports. What held was equally instructive: token minting on the OAuth server enforced PKCE S256` and paid API-key validation, the anti-fraud login gate returned uniform responses without user enumeration, all ten static storage buckets were sealed, and even after unicode, double-URL, and HTML-entity encodings bypassed the edge WAF, all ten injection and authorization probes were cleanly rejected by the backend handlers.

What this means in plain terms

Four things a board should take from this.

  • Anyone can walk the entire community user directory by counting upwards. No login, no session cookie, no throttle. Even deleted accounts still answer. While email addresses and passwords were not present in the payload, the endpoint turns an internal numeric key into a scrapeable directory of handles, linked social identifiers, and internal engagement scores.
  • The new AI-agent (MCP) gateway shipped with open client registration and exposed internal system routes. An unauthenticated caller can mint unlimited OAuth clients bound to attacker redirect URIs, query live payment-flow call counts, and read hardcoded test credentials from a diagnostic route. The reason this did not become an immediate account takeover is that the final token-exchange step enforced PKCE and required a real paid API key.
  • Non-production CDN distributions were not isolated from production, and internal cluster names leaked in HTTP headers. Overriding a single Host header turned a blocked staging distribution into an alternate ingress to production, while proxy headers disclosed internal Kubernetes service names and ports.
  • Bypassing the WAF did not break the application, and several "takeover" alerts were actually stale DNS hygiene. Encoding tricks slipped past the WAF ruleset across four attack classes, yet the origin rejected every payload. Likewise, four dangling CNAMEs pointed at decommissioned cloud load balancers and vendor subaccounts that outside parties cannot simply re-claim — real cleanup work, not immediate subdomain hijacks.

The five things that need a decision, not a patch

#What is wrongBusiness impactWho decides
1The community profile endpoint enumerates any account by sequential numeric guid without auth or throttlingDeciding whether internal numeric IDs and deleted-account records should remain publicly queryable is a product and privacy decision, not only a rate-limit change.Product + privacy
2Dynamic OAuth client registration (POST /register) is open without auth, approval, or rate limitsOpen RFC 7591 registration is convenient for AI-agent ecosystems, but unthrottled anonymous client minting creates a standing phishing and abuse primitive.API platform + security
3Unauthenticated /system/** routes expose a payment-flow count oracle, hardcoded test creds, and a documented shutdown routeDiagnostic and test scaffolding belongs on an internal management plane, never on a public authorization server.Platform engineering
4Non-production CDN distributions route Host-header overrides directly to productionAlternate ingress paths to production can diverge in WAF policy, bot scoring, or rate-limit posture over time.Infrastructure + SRE
5The edge WAF is bypassed by unicode, double-URL, and HTML-entity encodings while backend Envoy headers leak K8s service FQDNsPerimeter normalization and response-header stripping are estate-wide edge policy standards rather than per-service fixes.Security engineering

What we did not get

No user credentials, emails, phone numbers, or session tokens. No OAuth access tokens minted for any user or paid API subscriber. No internal Kubernetes pod access, no SSRF into the backend cluster, and no injection or cross-site scripting on any origin.

Two of the three primary assessment objectives were hard-stopped at the perimeter: OAuth token minting required a valid paid API key and satisfied PKCE S256 checks, and no privileged first-party secret or SSRF sink existed to pivot into the Kubernetes namespace whose names leaked in response headers.

Engagement outcome

An authorized external security assessment of a cryptocurrency market-data aggregator identified an unauthenticated sequential-identifier enumeration issue on its community profile API, open dynamic OAuth client registration and exposed diagnostic routes on its agent-gateway service, and edge configuration gaps involving non-production CDN routing and internal service-name headers. No passwords, email addresses, session tokens, or paid API keys were compromised, and authentication controls on the user login flow, OAuth token exchange, static asset buckets, and backend injection handlers were verified to hold. All findings were disclosed under a confidentiality agreement with prioritised remediation guidance.


1. The engagement in numbers

MetricValue
Root workstreams1
Total Swarm Size27
Subdomains enumerated123
Live hosts resolved and triaged64
Distinct surfaces actively probed32
Exposed TCP ports estate-wide2 (80, 443 only)
Confirmed findings10 (2 high, 4 medium, 4 low)
Sequential profile sample40/40 hits (6 deleted accounts included)
WAF cookbook baseline blocked61/115 raw payloads (18/19 unicode-bypassed; 0/10 origin exploits)
Rejected / clean-negative vectors19+

The sequential enumeration proof stopped at a bounded 40-record window (1000–1039) plus two spot checks at higher ranges (100000 and a nine-digit active ID) and two boundary misses (1 and 200000000) to prove sequential walkability without harvesting the user base.

Agent topology

RoleSessionsResponsibility
Scout14Per-surface probing across API cluster, MCP OAuth, dev edge, buckets, mirrors, auth, and tracking
Synthesis (General)5Cross-wave deduplication, calibration, and reporting
Recon4Passive OSINT, DNS resolution, port scanning, and surface clustering
Hunter3WAF-bypass cookbook execution, deep auth-flow mapping, and telemetry/phishing triage
Orchestrator1Cycle design, objective tracking, and closeout
Fig 01 · Agent topology
Fig 01 · Agent topology

2. What held

The estate is tightly edge-proxied — every one of the 64 resolved hosts exposed only ports 80 and 443, with no SSH, management, or database ports reachable. Beyond the network perimeter, six application controls held under active testing.

  • OAuth token minting enforced PKCE `S256` and paid API-key validation. Despite open client registration on mcp.aggregator.example, POST /token rejected client_credentials (400 Unsupported grant type), rejected forged authorization codes and refresh tokens (400), and POST /authorize rejected empty code_challenge (500 code_challenge cannot be empty), failed closed on malformed encrypted API keys (AES-GCM decrypt failed), and refused invalid paid keys.
  • Origin handlers rejected all ten post-WAF-bypass probes. Although unicode, double-URL, and HTML-entity encodings slipped past the edge WAF ruleset, every SQLi, SSTI, XSS, path-traversal, SSRF, and authorization bypass probe (10/10) was rejected cleanly at the backend.
  • The user authentication backend enforced a uniform anti-fraud gate. Every POST to /auth/v4/* (signup, login, email-status, password reset, security settings, wallet login) returned an identical application-level rejection (error_code 40110) even after solving the CDN JavaScript WAF challenge, preventing email enumeration and unthrottled credential stuffing.
  • All ten static asset and CDN buckets were sealed. Root listings returned 403 AccessDenied, production .map source maps were blocked, and 240 probes across eight buckets for .env, .git, and configuration files returned zero hits.
  • All fourteen web mirror subdomains and three email click-trackers rejected open redirects and injection. Mirror hosts and click-tracking subdomains issued hard-coded 301 or 404 responses, ignoring ?url=, ?next=, ?redirect=, and X-Forwarded-Host, while the CDN blocked // and encoded path-prefix redirects with 403.
  • Paid API walls held on sibling gateways. mobile-api.aggregator.example (error 1002/1001) and portal-api.aggregator.example (401 Authentication failed) enforced authentication consistently, and CORS on data-api echoed only the strict apex allowlist.
Fig 02 · 2. What held
Fig 02 · 2. What held

Three refutations and downgrades that sharpened the report

Three candidate findings looked severe on first sight and were deliberately downgraded or refuted once tested to ground truth:

  1. Dangling CNAMEs are DNS hygiene, not immediately claimable takeovers. Four subdomains pointed to dead targets — two decommissioned cloud load balancers (api-community.staging and api-community.beta), one dead CDN distribution (beta2), and one decommissioned email-provider subaccount (e), plus a staging alias pointing to a client-owned DNS zone with no A record. Because generated load-balancer hostnames, CDN distribution IDs, and provider-assigned subaccount namespaces cannot be generically claimed by an outside tenant, reporting them as "High subdomain takeovers" would overstate risk. They are recorded honestly as stale DNS records to prune.
  2. A hardcoded client token was a third-party telemetry beacon, not a platform credential. A token recovered from the bypassed web3 404 page was tested against pro-api, api, and portal-api and rejected everywhere. Probing its actual sink confirmed a fire-and-forget third-party performance telemetry endpoint returning empty 200 responses regardless of payload or token validity.
  3. WAF encoding bypasses did not yield an origin vulnerability. Building a WAF bypass cookbook proved that unicode escapes slipped 18/19 raw-blocked payloads past the perimeter filter — a genuine defense-in-depth finding — yet none of the ten backend hypotheses triggered once the payloads reached the origin.
Fig 03 · Three refutations and downgrades that sharpened the report
Fig 03 · Three refutations and downgrades that sharpened the report

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 Unauthenticated horizontal IDOR enumerating community profilesHigh

In plain terms. The platform's community profile lookup endpoint accepts an internal sequential integer (guid) and returns the full account object to any anonymous caller. There is no login check, no ownership check, and no rate limit. Even accounts flagged as deleted still return records.

What. POST /<community>/v3/<community>/profile/query on api.aggregator.example resolves any arbitrary numeric guid using only anonymous edge cookies (a WAF challenge cookie and a public CSRF/locale cookie). Non-existent IDs return error_code: 45042 ("Account not found"), while valid IDs return 200 with a complete account object (CWE-639).

In a bounded sample of 40 consecutive IDs (1000–1039), 40 of 40 resolved:

  • 40/40 returned nickname, avatar, profileId (encrypted identifier blob), followers/followings, vip, authType, and status
  • 34/40 returned handle, createdTime, userCreationTime, and verification flags
  • 31/40 returned lastUpdateNickname timestamps
  • 6/40 returned userDeleted: true — confirming deleted accounts remain queryable by numeric ID
  • Larger active-account spot checks additionally returned thirdPartyUid (linked external social-network UID), external follower counts, and internal socialInfoList analytics (mindshare, socialInfluence, analyticDepth)

How we found it. By testing which scalar keys the profile query schema accepted. Public handle lookups are intentional, and userId/profileId returned schema errors (500 param error), but guid walked the internal numeric primary key directly. A second-wave re-probe confirmed the POST passes straight through the edge WAF without needing any encoding bypass.

Root cause. Exposing an internal, sequential integer key on an unauthenticated read endpoint without filtering deleted records or non-public metadata, paired with no rate limiting or sequential-access anomaly detection.

Fig 05 · 3.1 Unauthenticated horizontal IDOR enumerating community profiles
Fig 05 · 3.1 Unauthenticated horizontal IDOR enumerating community profiles

Impact. Complete enumeration of the community user base, correlation of platform handles to external social-network UIDs, exposure of deleted-account metadata, and extraction of internal analytics scores. Honest bound: the payload contained no email addresses, phone numbers, password hashes, or session tokens, which is why the internal ledger calibrated it below an authentication-credential breach.

Fix. Remove anonymous guid lookups (keep only public handle lookups for explicitly public, non-deleted profiles), strip deleted accounts and internal analytics fields from unauthenticated responses, and enforce per-IP rate limiting plus sequential-ID anomaly alerts.


3.2 Open RFC 7591 OAuth dynamic client registration with no rate limitHigh

In plain terms. The platform operates an OAuth 2.0 authorization server for its MCP agent gateway. Anyone on the internet can register unlimited OAuth client applications with arbitrary callback URLs and receive live client credentials in milliseconds.

What. POST /register on mcp.aggregator.example implements RFC 7591 dynamic client registration with no authentication, no approval workflow, and no rate limiting (CWE-284). Six consecutive registration requests executed inside one second all returned 200 with fresh client_id and client_secret pairs bound to attacker-supplied redirect_uris (https://attacker.example/cb). Omitting token_endpoint_auth_method still issued a client_secret (violating RFC 7591 public-client semantics), while the advertised registration_client_uri management endpoints returned 404.

On the same host, POST /x402/mcp answered JSON-RPC initialize and tools/list with no Authorization header, enumerating all 13 MCP tools and returning a decodable 402 Payment Required manifest containing seven payment-rail configuration identifiers and the shared treasury payTo address (whereas the non-x402 /mcp endpoint correctly required a bearer token and returned 401).

How we found it. By fetching /.well-known/oauth-authorization-server (RFC 8414) and /.well-known/oauth-protected-resource (RFC 9728) metadata, then testing burst client registration and unauthenticated JSON-RPC method calls.

Root cause. Enabling open dynamic registration on a production OAuth server without registration access tokens, redirect-URI domain restrictions, or throttling.

Fig 06 · 3.2 Open RFC 7591 OAuth dynamic client registration with no rate limit
Fig 06 · 3.2 Open RFC 7591 OAuth dynamic client registration with no rate limit

Impact. Unlimited database growth / client-registry exhaustion and an attacker-controlled OAuth client standing ready for authorization-code phishing against paid API subscribers. Because /authorize and /token enforced PKCE S256 and required a valid paid API key, unauthenticated token minting was not achievable.

Fix. Require an initial access token or operator approval for /register, restrict redirect_uris to validated HTTPS origins or an allowlist, enforce strict rate limits, and disable client_secret issuance for public clients.


3.3 Unauthenticated /system/** payment-flow oracle and hardcoded test credentialsMedium

In plain terms. Internal health, test, and billing-statistics endpoints on the MCP authorization server were reachable directly from the public internet without authentication.

What. Four /system/** routes on mcp.aggregator.example were exposed (CWE-306, CWE-798):

  • POST /system/v3/x402/tool-call-count returned 200 with no authentication, accepting caller-supplied flowIds and toolNames and querying live credit-record counts (callCount) — a live payment-flow statistics oracle (GET returned 405, leaking the internal DTO class path in validation behaviour).
  • GET /system/api/tests returned 200 with an internal test-case registry containing hardcoded test credentials (user1 and a static password) for a sample endpoint (the referenced /v3/sample/* route returned 404, leaving no active login sink).
  • GET /system/health returned 200 (I am OK!) and GET /system/error returned an empty status envelope.
  • GET /system/shutdown was documented in the service's OpenAPI specification — it was not invoked under read-only rules of engagement, but its presence on a public host warrants immediate verification.

How we found it. By enumerating Spring Boot management paths alongside the MCP OpenAPI descriptor.

Root cause. Routing /system/** through the public ingress controller instead of binding management endpoints to an internal-only port or requiring service-to-service authentication.

Fig 07 · 3.3 Unauthenticated `/system/**` payment-flow oracle and hardcoded test credentials
Fig 07 · 3.3 Unauthenticated `/system/**` payment-flow oracle and hardcoded test credentials

Impact. Unauthorized callers can probe payment-flow IDs and usage metrics against the credit ledger, inspect internal test fixtures and hardcoded credentials, and potentially reach destructive lifecycle endpoints if /system/shutdown is not separately gated at the edge.

Fix. Block /system/** completely at the CDN and ingress controller, remove hardcoded test credentials and test-registry controllers from production builds, and disable any shutdown actuator.


3.4 Non-production CDN Host-header override and Kubernetes topology leaksMedium

In plain terms. Three staging and beta CDN distributions returned 403 when requested normally, but changing a single HTTP Host header routed requests straight through to the production web and API origins — where Envoy proxy headers exposed internal Kubernetes service names and ports.

What. Two related edge-hygiene gaps (CWE-284, CWE-200):

  • CDN `Host`-header override: beta.aggregator.example, staging.aggregator.example, and api.beta.aggregator.example each returned 403 Request blocked for their own hostnames. Sending -H "Host: aggregator.example" returned 200 with byte-identical production HTML (Tengine origin), and -H "Host: pro-api.aggregator.example" reached the production API origin (404 on /, live API routing with Envoy headers). A quick SQLi probe returned 403 on both prod and beta edges, so WAF disparity was not proven — the confirmed defect is missing Host-header allowlisting on non-prod CDN distributions.
  • Internal Kubernetes topology and unauthenticated `-test` gateway: Responses from pro-api.aggregator.example (including via the beta edge) and test-gateway.aggregator.example emitted x-envoy-decorator-operation headers naming exact internal Kubernetes services, namespaces, and ports (<pro-service>.<namespace>.svc.cluster.local:9700/* and <gateway-service>.<namespace>.svc.cluster.local:9999/*). Tengine 401 error bodies further leaked internal dispatch hostnames (<dispatch-host>), and test-gateway.aggregator.example served the full production data-api/v3 listing (8,039 assets) and detail routes unauthenticated with no edge WAF.

How we found it. By testing Host-header routing matrices across every 403-blocked non-production CDN host and inspecting proxy headers across the five-host API cluster.

Root cause. Non-production CDN distributions sharing the production origin pool without Host-header validation, combined with default Envoy decorator headers and unstripped Tengine error banners.

Fig 08 · 3.4 Non-production CDN `Host`-header override and Kubernetes topology leaks
Fig 08 · 3.4 Non-production CDN `Host`-header override and Kubernetes topology leaks

Impact. Alternate ingress to production via non-production distributions (risking policy drift if WAF or rate-limit rules diverge) plus an exact map of internal Kubernetes services and ports ready for any future SSRF pivot.

Fix. Enforce strict Host-header allowlists on every non-production CDN distribution, strip x-envoy-decorator-operation and x-traefik-route at the edge, suppress internal hostnames in Tengine error pages, and restrict or decommission the unauthenticated -test gateway.


3.5 Location-scoped Basic-auth bypass and encoding-unaware WAFMedium

In plain terms. Two password-protected hosts exempted /.well-known/* and /robots.txt from Basic authentication, accidentally serving full application 404 pages with build metadata and a hardcoded telemetry token. Separately, the edge WAF ruleset did not normalise unicode, double-URL, or HTML-entity encodings, allowing encoded payloads straight through to the origin.

What.

  • Location-scoped Basic-auth bypass (`CWE-284`): On web3.aggregator.example and cn-test.aggregator.example, nginx/Tengine enforced 401 Authorization Required on / and /_next/static/, yet GET /.well-known/security.txt returned 404 with the full application HTML shell (not 401), leaking the deploy commit hash (data-commit), an env-local wrapper flag, and a hardcoded client telemetry beacon token. Path traversal (/.well-known/../_next/static/, %2e%2e, ..%2f) was tested and cleanly blocked (401/403).
  • Encoding-unaware WAF (`CWE-693`): Across 115 baseline attack payloads on api.aggregator.example, the edge WAF blocked 61/115 raw requests. Applying unicode escapes bypassed 18/19 raw-blocked payloads across SQLi, path traversal, command injection, and XSS, with double-URL and HTML-entity encodings bypassing narrower subsets. Crucially, all ten origin-level hypotheses tested through the bypass cookbook (WAFBYPASS-VULN-03 through 12) were rejected by backend handlers — the origin held, leaving a perimeter-normalisation gap rather than an exploitable injection.

How we found it. By checking standard exempt locations (/.well-known/*, /robots.txt) against every Basic-auth wall and running an automated encoding-matrix profile against the WAF.

Root cause. Placing auth_basic inside path-specific nginx blocks rather than at the server block, and configuring WAF managed rules without full recursive decoding/normalisation transforms.

Fig 09 · 3.5 Location-scoped Basic-auth bypass and encoding-unaware WAF
Fig 09 · 3.5 Location-scoped Basic-auth bypass and encoding-unaware WAF

Impact. Information disclosure of build metadata and telemetry tokens from auth-gated environments, and reduced defense-in-depth if any future origin route ships without parameterisation.

Fix. Apply auth_basic at the server block with explicit static-file-only exemptions that never fall through to the application 404 handler, and enable URL/unicode/HTML-entity text transformations in the WAF ruleset.


Also confirmed

FindingSeverityContent
Keyless full-catalogue route on paid APILowpro-api.aggregator.example/v1/cryptocurrency/map?limit=5000 returns 5,000 active rows (credit_count: 0) with no API key, while all sibling pro-api endpoints enforce API-key authentication
Default tutorial SAML sample app at /adminLowA generic framework tutorial SAML application is exposed at /admin on the primary api origin (pro-api returns 404)
Third-party publisher key & telemetry token in client buildsLowSelf-serve ad portal config.js exposes a third-party publisher CORE_KEY, and the web3 client embeds a fire-and-forget telemetry beacon token (verified non-privileged against all first-party APIs)
Orphaned / dangling CNAME records (4 hosts)LowTwo decommissioned ELB CNAMEs, one dead CDN distribution CNAME, and one decommissioned email-tracking subaccount CNAME resolve to NXDOMAIN / no answer (non-claimable by outside tenants; DNS cleanup required)

4. Kill chain summary

Fig 10 · 4. Kill chain summary
Fig 10 · 4. Kill chain summary
ChainReachedTerminated atData obtained
Community profile enumerationStage 5 (collection)Bounded 40-ID proof sampleProfile fields, deleted flags, social UIDs (no emails/creds)
MCP OAuth takeoverStage 2 (weaponize)PKCE S256 + paid API-key gate on /authorizeRegistered test OAuth clients only; zero user tokens
MCP /system/** & x402Stage 5 (collection)Read-only queries (/system/shutdown not called)Payment-flow oracle, 13-tool manifest, hardcoded test creds
Internal K8s backend pivotStage 1 (recon)No SSRF sink; ports 80/443 onlyInternal K8s FQDNs, ports, dispatch hostnames
WAF bypass to injectionStage 3 (delivery)Origin handlers rejected 10/10 probesNone (WAF encoding gap only)
Dev-edge Host overrideStage 4 (exploit)Same WAF blocked probe on prod & beta edgesProduction origin reachability via non-prod CDN

5. What the shape of this engagement teaches

Sequential internal IDs on public read endpoints outlive the authentication assumptions around them. The community profile endpoint was designed to serve public profiles by handle, but leaving the numeric guid parameter open without filtering deleted accounts turned it into a full-directory enumeration oracle that passed straight through the WAF. Public endpoints should never resolve raw sequential primary keys.

New AI-agent gateways inherit classic OAuth and management-plane mistakes. The core market-data APIs and user login flow were heavily hardened, yet the newer MCP OAuth server shipped with unauthenticated, unthrottled RFC 7591 client registration and public /system/** routes. Emerging integration surfaces deserve the same ingress and threat-modelling gates as legacy login systems.

A WAF bypass is a perimeter defect, not automatically an application compromise. Unicode escapes bypassed 18 of 19 raw-blocked payloads at the edge, yet all ten backend injection hypotheses failed. Separating WAF-normalisation gaps from confirmed origin vulnerabilities keeps engineering teams focused on real data exposure instead of chasing ghost injections.

Non-claimable dangling CNAMEs should be separated from true subdomain takeovers. Four subdomains pointed at decommissioned load balancers, CDN distributions, and vendor subaccounts. Cleaning them up matters for hygiene and broken links, but distinguishing them from immediately claimable takeovers keeps incident priority honest.

Defense in depth paid off twice. Open OAuth registration did not turn into account takeover because /authorize enforced PKCE S256 and paid API-key validation. WAF encoding bypasses did not turn into SQLi or XSS because backend handlers parameterised input.

PriorityActionWhy firstEffort
1Remove anonymous guid resolution on the community profile endpoint, hide deleted accounts, and add rate limitingStops unauthenticated full-directory enumeration immediatelyLow
1Block /system/** at the CDN/ingress on mcp.aggregator.example and verify /system/shutdown is disabledCloses payment-flow oracle, hardcoded test creds, and potential lifecycle exposureVery low
2Gate POST /register on mcp.aggregator.example with registration tokens, redirect-URI restrictions, and throttlingEliminates unlimited anonymous OAuth client mintingLow
2Add Host-header allowlists to beta, staging, and api.beta CDN distributionsCloses alternate ingress paths to the production originLow
2Strip x-envoy-decorator-operation, x-traefik-route, and internal Tengine hostnames at the edge; restrict -test gatewayRemoves internal Kubernetes topology disclosureLow
3Add unicode, double-URL, and HTML-entity text transforms to the WAF rulesetRestores perimeter defense-in-depth ahead of origin handlersLow
3Fix auth_basic scope on web3/cn-test so /.well-known/* cannot fall through to app HTML; remove tutorial /admin SAML appCloses build-metadata leaks and cleans stray sample codeVery low
4Prune the four orphaned CNAMEs, review keyless pro-api /map intent, and rotate exposed third-party ad/telemetry keysCompletes DNS and third-party configuration hygieneLow

Notices

Authorization

This was an authorized security assessment conducted under a written engagement agreement. All testing was confined to in-scope first-party properties.

Read-only discipline was maintained throughout: the community profile IDOR was verified with a bounded 40-record sequential sample plus two boundary checks rather than harvesting the user base; the documented /system/shutdown route was explicitly not invoked; no user accounts were created or modified; and third-party SaaS platforms fronted by client subdomains were fingerprinted passively for first-party configuration leaks without attacking vendor infrastructure.

Redaction

Every hostname, IP address, credential, token, internal service name, and user identifier in this document has been replaced with a placeholder or generalised.

What was removed:

  • All real domain names, subdomains, CDN distribution IDs, and load-balancer hostnames
  • All IP addresses, trace IDs, and egress addresses
  • All Kubernetes namespace names, service names, pod/dispatch hostnames, and deploy commit hashes
  • All OAuth client credentials, payment-config IDs, telemetry tokens, and third-party publisher keys
  • All real user handles, nicknames, encrypted profile IDs, and third-party social UIDs
  • Organisation, product, exchange, and third-party SaaS vendor names
  • Exact calendar dates and clock times

What was kept, deliberately: vulnerability classes and CWE identifiers, exact HTTP status codes and response patterns, bounded proof counts (40/40 sequential sample, 6/6 burst registrations, 61/115 WAF baseline, 18/19 unicode bypasses, 0/10 origin exploits), and the three refutation/downgrade chains. These lessons are transferable and identify nobody.

Placeholders used throughout:

PlaceholderMeaning
aggregator.examplePrimary market-data aggregator domain
api.aggregator.examplePrimary community and market-data API host
pro-api.aggregator.examplePaid-tier API host
mcp.aggregator.exampleMCP OAuth authorization server and x402 host
staging.aggregator.exampleNon-production CDN edge host (representative of beta/staging/api.beta)
test-gateway.aggregator.exampleRegional test API gateway
web3.aggregator.exampleBasic-auth-gated application host
<community>Community API path namespace
<redacted>Any internal hostname, key, token, or identifier

Data handling

No individual user profile, handle, nickname, social UID, or encrypted profile blob is reproduced. Exposure is described strictly by field presence counts across the 40-record sample. No live OAuth client secret, telemetry token, or third-party key appears in this document.

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.

Dangling CNAMEs are classified as Low DNS hygiene rather than High subdomain takeovers because their decommissioned cloud and vendor targets cannot be generically re-claimed by third parties. The edge WAF encoding bypass is distinguished from origin compromise because all ten post-bypass origin hypotheses were cleanly rejected.


Methodology and tooling by BlackBit. Sequential-ID enumeration proven with a bounded 40-record sample; WAF bypasses cleanly separated from origin resilience; non-claimable DNS hygiene separated from takeover claims. Published with the client's permission.

More in Web3

← All case studies