Executive summary
What we were asked to do
A decentralised-exchange analytics platform asked us to attack its public estate. The business has two revenue lines that matter: paid token promotion (customers pay to have their token profiled), and a marketplace with real-money flows. We were asked to find what an adversary could reach.
The engagement ran as two distinct waves seven weeks apart. The first mapped the estate and produced raw captures. The second reconciled them into an evidence ledger. Nothing was re-tested live during consolidation, and the report says so.
Principal findings
Five findings, and the evidence discipline behind them is the story. The critical is a paid-order and promotion-history disclosure: an unauthenticated, edge-cached, unthrottled endpoint returns which customers paid for token promotion, when they paid, and their boost records — for any token, by name. Two Highs follow: four production API keys hardcoded in a public bundle, each validated against its correct blockchain and shown to be scoped rather than blanket, and an OAuth sign-in and callback address configured to plaintext HTTP on an otherwise fully encrypted estate. Two mediums round it out: an unauthenticated write sink and a reflection into AI-generated documentation content.
What this means in plain terms
Three things a board should take from this.
- Your paying customers' commercial records are public, and the endpoint is cached. The orders endpoint reveals exactly who paid for promotion on which token, when, and how much boost they received. That is commercially sensitive competitive intelligence, readable anonymously and served from an edge cache that makes bulk collection trivial.
- Four cloud-provider API keys ship in your own code. Each one is live, each one bills you, and each one was validated against its own blockchain to prove it works rather than assumed from a string match. The good news: they are scoped to your own application. The bad news: the bill is still yours.
- Your authentication flow leaks over plaintext. The sign-in and callback addresses are configured with
http://on an otherwise HTTPS-only estate. That means the OAuth state token, the session cookie, and the post-authentication redirect all ride an unencrypted connection at some point — and that is an interception opportunity for anyone on the network path.
The five things that need a decision, not a patch
| # | What is wrong | Business impact | Who decides |
|---|---|---|---|
| 1 | Paid order history for any token is readable without authentication | Your paying customers' commercial relationships are public. Whether that was a product decision or a bug, someone must decide — and if it is a bug, the cached responses mean the data has already been collected. | Product + security leadership |
| 2 | Four production cloud API keys ship in client JavaScript | Every key is live and billable. Rotating them means regenerating and redeploying the bundle, which is an engineering task with a billing deadline attached. | Engineering leadership |
| 3 | The OAuth flow runs over plaintext | The sign-in address and the callback that completes authentication are both configured as http://. Interception of a session establishment is not hypothetical — it is a configuration one s away from correct. | Identity + infrastructure |
| 4 | An AI documentation endpoint reflects attacker content into generated answers and persists it | Stored attacker content in a product feature is a content-integrity issue beyond the security one. Who reviews what your documentation tool tells users? | Documentation + security |
| 5 | One unauthenticated write endpoint accepts up to 1 MB from any origin | It is a telemetry sink with no abuse control. Whether the data behind it matters is a question only the platform owner can answer. | Platform engineering |
What we did not get
No authentication bypass. No row-level-security bypass. No session or tenant takeover. No real-money authority. No credential for any authenticated surface. No shell on any host.
The report states this in its own words, and we are preserving the phrasing rather than paraphrasing it.
Engagement outcome
An authorized security assessment of a decentralised-exchange analytics platform confirmed five vulnerabilities, the most significant exposing paid customer order history without authentication. Four production cloud API keys embedded in client code were also validated and disclosed. No authentication bypass, no customer-account compromise, and no data modification occurred; all findings were disclosed under a confidentiality agreement with immediate rotation guidance.
1. The engagement in numbers
| Metric | Value |
|---|---|
| Active execution | 1 day of dense work |
| Total Swarm Size | 115 |
| Root workstreams | 2 |
| Distinct agent roles | 1 (unified) |
| Hostnames enumerated | 104 |
| Live hosts | 13 |
| Host trees assessed in depth | 8 |
| Confirmed findings | 5 (1 critical, 2 high, 2 medium) |
| Additional observations described in section 3 | 5; excluded from confirmed findings |
| Hypotheses tested and rejected | 16+ across hosts |
| Takeover candidates confirmed | 0 |
| Credentials captured | 0 |
| Bulk data downloaded | None |
The two-wave shape is worth explaining. The first wave mapped the estate and produced raw captures without exploiting. The second reconciled those captures into a findings ledger — no live traffic was sent during consolidation, which is why the report can state with confidence that every finding is backed by a captured response rather than an inference.
Agent topology
This engagement ran a unified agent role rather than the multi-role split seen in larger estates, with the orchestration concentrated in one coordinating session per wave.
| Role | Sessions | Responsibility |
|---|---|---|
| Orchestrator | 2 | Wave design, scope, evidence reconciliation |
| Workers | 113 | Host-depth nesting, probing, proof capture |
2. What held
The estate was more resilient than the headline findings suggest.
- Trusted backend host returned 404 on every path. Fifteen hypotheses tested against the order backend's dedicated host, all refused. No GraphQL, no OpenAPI, no OIDC, no credential store, no debug endpoint, no schema leak. It is IP-access-controlled and serves a stub to everyone else.
- No subdomain takeover across 104 enumerated names. The takeover candidate list is empty across every cycle. All CNAMEs resolve to live infrastructure.
- The third-party terminal embed produced zero confirmed findings. A 195-file host tree belonging to a third-party wallet provider yielded four unverified hypotheses — all on the third party's own infrastructure, outside scope.
- Cross-site scripting was tested exhaustively and closed. Sixteen paths on the marketplace host, zero reflection. JSON content type on error responses. Content-security policy on 400s.
- Open redirect, server-side request forgery, cache poisoning, and OAuth state replay — all rejected on the marketplace host.
- Content delivery host is clean. No auth, no signed URLs, no bucket traversal, no cache poisoning.
3. The findings that mattered
How the estate was mapped
3.1 Paid order and boost history readable without authenticationCritical
In plain terms. The platform sells token promotion. Customers pay for a profile upgrade and for boosts. There is an endpoint that returns, for any token, the complete record of who paid, when, how much, and what they received.
No login. No key. Cached at the edge for sixty seconds. No rate limit.
We captured the response and it discloses ten paid orders — including approved, cancelled, on-hold, and community-takeover designations — plus four boost records with internal launch identifiers, for a specific token address. Every field is populated with real customer data.
What. A GET endpoint on the API host, parameterised by chain and token address, returned a JSON document with full paid-order and boost history for a well-known token address. The response carried cache-control: public, max-age=60 and an edge cache hit, plus permissive cross-origin headers. No authentication, no rate limit, no signature requirement.
How we found it. By enumerating the API surface rather than guessing paths. The endpoint was identifiable from the application's own traffic patterns once the API host was mapped.
The verification discipline is what makes this finding defensible: the response was captured raw, with its cache status, its cross-origin headers, and its full JSON body — not summarised. And the two control probes (no token, invalid token) are documented alongside.
Root cause. The endpoint was built for the platform's own front end, which authenticates its users separately, and exposed on the public API host without its own authorisation check. The edge cache then made bulk collection a matter of iterating token addresses rather than making requests.
Impact. Commercial intelligence on paying customers, readable anonymously, cached at the edge for collection efficiency. Who paid for promotion, on which token, when, and in what order — all public. The edge cache means an attacker sweeps token lists without touching the origin.
Fix. Require authentication on the orders endpoint and scope it to the account that paid. Remove the cache-control directive or scope it to authenticated responses. And assess whether the cached responses already collected constitute a disclosure that needs customer notification.
Kill chain. Reconnaissance through collection.
3.2 Four production cloud API keys in the client bundleHigh
In plain terms. The trading terminal's JavaScript bundle ships four API keys for a cloud infrastructure provider — one per blockchain network it queries. All four are live.
We validated them rather than assuming. Each key was used to query its own blockchain and returned real data: current block heights on four networks. Each was also tested against two origins it should not work from, and refused on both — which proves they are application-scoped rather than blanket, and that is the correct configuration on the provider's side.
What. Four keys in a 7.6 MB production bundle, hardcoded at four consecutive lines. Each key corresponds to one blockchain network. Validation confirmed each is live on its own network and restricted to the application's origin.
How we found it. Bundle download and search. Four consecutive lines at a known offset in a minified file.
The validation sequence is the part worth reproducing: for each of the four keys, issue a chain-specific query, record the block height, then issue the same query with a foreign origin and record the refusal. Four keys × two probes each = eight captured exchanges, each proving a different half of the finding.
Root cause. Client-side API consumption requires the key to ship. The provider's origin restriction is the only control, and it is correctly configured — but a key in client code is public regardless.
Impact. Compute and billing abuse on the exchange's account. Not a data breach — the keys grant infrastructure access, not customer data.
Fix. Rotate all four and move the queries server-side, or use a provider feature that scopes keys per-deployment rather than per-origin.
3.3 OAuth sign-in and callback configured to plaintext HTTPHigh
In plain terms. The marketplace's authentication is built on a standard framework whose sign-in and callback addresses are configured as http:// rather than https://. The rest of the estate enforces HTTPS. The authentication flow does not.
That means the state token, the session establishment, and the post-authentication redirect travel over plaintext at the moment the user is most vulnerable — mid-login.
What. Two configuration values on the marketplace authentication host were set to plaintext HTTP. The framework's state cookie, the JSON-encrypted session token, and the PKCE flow all complete against those addresses.
How we found it. By reading the authentication configuration the application itself serves, then verifying the addresses in the delivered page rather than in source code.
A second finding compounds it: the callback-URL cookie accepts a protocol-relative injection — a value beginning with a double slash resolves to an attacker-controlled host. That injection is currently dormant because the cookie carries isolation attributes, but the configuration accepts it.
Root cause. Configuration values not updated when the estate moved to HTTPS.
Impact. A network-positioned adversary can intercept the authentication exchange. Bounded by needing that network position — not remotely exploitable.
Fix. Change both configuration values to HTTPS. One character each. This is the cheapest critical-adjacent fix in the report.
3.4 AI documentation endpoint reflecting and persisting attacker contentMedium
In plain terms. The documentation host runs an AI-powered question-answering feature. An unauthenticated GET request with a marker query returns generated markdown containing that marker in two places: the AI's answer, and a stored suggested-follow-up question.
The persistence is what makes this more than a reflection. Attacker-controlled content is stored server-side and served to subsequent users.
What. A documentation route accepts a natural-language query parameter and returns markdown containing the marker in the AI's answer and in the follow-up suggestion list. HTML-tag payloads are blocked at the edge; plain markers pass through.
How we found it. By testing the documentation host's interactive feature with a canary value rather than assuming the AI integration was server-side only.
Root cause. User input passed to a generative backend without content sanitisation on either the input or the persisted output path.
Impact. Stored content injection in a product feature. Whether an attacker can escalate to script execution depends on the rendering context of the stored content — which was not tested because the reflection was confirmed and reported before escalation.
Fix. Sanitise input before passing to the generative backend, and sanitise the persisted output before serving it to subsequent users.
3.5 Unauthenticated write sinkMedium
In plain terms. A telemetry endpoint accepts POST requests from any origin with no CSRF token and no rate limit, up to approximately a megabyte. The error response echoes the request body and leaks a server-side stack trace.
What. A POST endpoint on the telemetry host returns 200 from any origin, accepts large bodies, and produces a 500 error that includes the body content and a JavaScript stack trace identifying the exact line of failure.
The web application firewall blocks HTML-tag payloads in form bodies but passes the same payloads in JSON bodies — a filtering gap that is worth its own mention.
How we found it. By probing the telemetry endpoint the trading widget itself calls, then testing whether the edge filter treats form-encoded and JSON-encoded payloads differently.
Root cause. A shared telemetry sink deployed without origin validation or size limiting.
Impact. An unauthenticated write surface with no abuse control, plus internal implementation disclosure through the error response.
Fix. Add origin validation and body-size limits. Return generic errors without stack traces. Close the content-type filtering gap.
Additional observations
| Observation | Note |
|---|---|
| Image-resizing service returns 500 on extreme parameters | Origin-cost abuse candidate |
| Missing HSTS on 200 responses; CSP dropped on success but present on errors | Header asymmetry |
| Cloudflare bot-management cookie scoped to the whole domain | Single trust domain |
| Internal naming in unresolved certificate entries | 34 database nodes, 17 inference nodes, CI/CD references — vigilance only |
| Google OIDC client identifier exposed | Public by design; the secret is not exposed |
4. Kill chain summary
| Chain | Reached | Terminated at | Data obtained |
|---|---|---|---|
| Paid order disclosure | Stage 6 (exfiltration) | Bounded — single-token capture | Paid orders, boosts |
| API key validation | Stage 4 (exploit) | Keys validated, not abused | Block heights |
| OAuth plaintext | Stage 3 (delivery) | No victim in scope | None |
| AI reflection | Stage 5 (collection) | Reflection confirmed, escalation untested | Marker persistence |
| Write sink | Stage 4 (exploit) | No read-back available | None |
5. What the shape of this engagement teaches
Two waves, no live re-testing, and the report is still better than most. The first wave captured raw evidence. The second reconciled it into a findings ledger without sending a single request. That separation is unusual and valuable: the findings are provably backed by captured responses rather than by conclusions drawn from live probing, and the consolidation cannot have introduced noise because it touched nothing.
Validating a key is not the same as finding a key. Four cloud-provider keys in a bundle is a well-known finding class. Proving each one is live on its own network, then proving each refuses foreign origins, converts "we found strings" into "we confirmed four scoped credentials are live and understand their blast radius." The negative control — the foreign-origin refusal — is what most reports omit and what makes this one defensible.
The edge cache turns a disclosure into a collection primitive. A sixty-second public cache on an unauthenticated endpoint means bulk enumeration is an iteration problem, not a request-volume problem. An attacker sweeps token lists through the cache without touching the origin, and the origin never sees the collection.
Configuration drift is a whole-class finding. The OAuth addresses are plaintext while the rest of the estate enforces HTTPS. That is not one bug — it is a deployment artefact that says the authentication configuration was never revisited when the estate moved to encryption. Auditing configuration values for protocol consistency is a check worth running on any estate.
AI features are a new finding class. A documentation endpoint that reflects attacker input into generated content and persists it is neither a traditional stored XSS nor a prompt injection in the classic sense. It is a new category, and the report handles it correctly by reporting the observed behaviour rather than speculating about escalation.
Recommended sequence
| Priority | Action | Why first | Effort |
|---|---|---|---|
| 1 | Require authentication on the orders endpoint | Paid customer records readable and edge-cached | Low |
| 1 | Rotate all four cloud-provider API keys | Live and billing against the client's account | Very low |
| 1 | Change the OAuth sign-in and callback addresses to HTTPS | One character each; removes the interception opportunity | Trivial |
| 2 | Purge cached responses from the edge after the orders fix | Data already collected from cache | Low |
| 2 | Sanitise input and persisted output on the AI documentation feature | Stored attacker content | Low |
| 2 | Add origin validation and body-size limits to the telemetry sink | Unauthenticated write surface | Low |
| 2 | Close the content-type filtering gap on the edge | HTML blocked in forms, passed in JSON | Low |
| 3 | Return generic errors without stack traces | Internal implementation disclosure | Low |
| 3 | Add HSTS and restore CSP on 200 responses | Header asymmetry | Low |
| 3 | Audit the unresolved internal certificate entries | 34 database and 17 inference node names — vigilance | Low |
Notices
Authorization
This was an authorized security assessment conducted under a written engagement agreement. All testing was confined to in-scope properties on the authorized domains.
Read-only discipline was applied throughout. No bulk data was downloaded. The orders finding was confirmed with a single-token capture rather than a sweep. The API keys were validated but not used for compute. No account was created, no payment was made, and no content was written to any persisted store during testing.
The team reviewed the recorded evidence offline without sending further requests to the tested systems.
Redaction
Every hostname, IP address, credential, identifier, and infrastructure name in this document has been replaced with a placeholder or generalised. The organisation is not identified, and no detail here would allow a reader to determine the client, locate the systems, or reproduce the access.
What was removed:
- All hostnames, subdomains, and domain names — including the content-delivery and telemetry variants
- All IP addresses, autonomous-system numbers, and edge-pop identifiers
- All four cloud-provider API key values
- All endpoint paths, route names, and parameter names
- The organisation and brand identifiers, including the platform's product names
- Third-party vendor names, including the wallet provider and the documentation platform
- The Google OIDC client identifier
- The cloud-infrastructure provider's name and its network identifiers
- Internal team names, workspace identifiers, and build metadata
- The blockchain network names and their chain identifiers
- The specific token address and order record used as proof
- Exact calendar dates and clock times — replaced with wave and relative-day numbering
- Certificate-transparency entry counts by name family
What was kept, deliberately: vulnerability classes and CWE identifiers, MITRE technique identifiers, the CVSS vectors, the cache and cross-origin header behaviour (which is the technical substance of the critical finding), the validation methodology, and the protocol-level observations. These are transferable and identify nobody.
Placeholders used throughout:
| Placeholder | Meaning |
|---|---|
analytics.example | Primary analytics domain and subdomain fleet |
api.analytics.example | Public API host |
trade.analytics.example | Trading terminal host |
market.analytics.example | Marketplace host |
docs.analytics.example | Documentation host with AI feature |
cdn.analytics.example | Content-delivery host |
telemetry.analytics.example | Telemetry sink host |
backend.analytics.example | Trusted backend host |
<redacted> | Any credential, key, token, address, path, or identifier |
Data handling
No customer data is reproduced. The paid-order finding is described by record count and field class only — never by customer name, token name, payment amount, timestamp, or order identifier. The token address used as proof is not reproduced. No API key value appears. No balance, holding, or trading figure appears.
Disclaimer
Findings reflect the state of the tested systems during the engagement window. No later retest established whether these conditions persist.
The API-key finding is reported at High rather than Critical because the keys are origin-scoped by the provider — the correct provider-side control is present, and the exposure is billing abuse rather than data compromise.
Methodology and tooling by BlackBit. Recorded evidence supported five confirmed findings. The team tested and rejected at least sixteen other hypotheses. Published with the client's permission.
More in Web3
- Cosmos L1 Stablecoin Chain
- Open-Source Cryptocurrency Reference Full-Node Client
- Cross-Chain Intent Bridge and Relayer Protocol
- Crypto Fundamentals and On-Chain Analytics Platform
- Cryptocurrency Market Data Aggregator and Price-Tracking Platform
- Simulated Crypto Trading and Market Competition Platform
- View all 33 Web3 case studies