Executive summary
What we were asked to do
A global cryptocurrency exchange asked us to attack its public estate with a full-compromise objective — prove what an adversary could actually reach, not enumerate theoretical weaknesses. The scope covered the primary domain, the API hosts, the account system, and the corporate identity tenant.
Six crown-jewel outcomes were defined at the outset. This report is scored against them.
Principal findings
We proved four of the six. The two that mattered most were reached by a route nobody designs for: eleven exchange API key pairs were sitting in public source repositories, and two of them worked. Both granted full account access — trading, deposits, and withdrawals enabled — and returned complete balance inventories of roughly eight hundred assets each. That is not a vulnerability in the exchange's code. It is its customers handing out their own credentials in public. Separately, the edge web-application firewall's challenge was defeated by running it in a real browser and replaying the resulting token, and a three-character typo in a DNS record left a subdomain pointing at a deleted load balancer. We did not achieve SSO cross-origin abuse or internal infrastructure access, and both refusals are documented with the 89 subdomains and every method family tested.
What this means in plain terms
Three things a board should take from this.
- The largest finding was not a bug, and no patch fixes it. Two customer API keys with withdrawal permission were publicly readable on code-hosting sites. The exchange's own controls were irrelevant — the credentials were valid, the permissions were real, and the balances were there. The only durable answer is detection: scanning public repositories for your own key formats and revoking what you find, continuously.
- The edge was bypassed with a real browser, not a clever payload. The firewall challenge is JavaScript that a headless browser executes happily. Extract the token, replay it with a command-line tool, and the application serves content. That is not a flaw in the firewall; it is the boundary of what a challenge can do against an automated client that can run a browser.
- What held is as informative as what broke. The account system's cross-origin policy turned out to be scoped to the exchange's own origin rather than wildcard — so the SSO abuse path was closed. Eighty-nine subdomains resolved to a wildcard catch-all with no internal tooling exposed. The identity provider's admin surface resisted a hundred credential attempts. These are the things to keep doing.
The five things that need a decision, not a patch
| # | What is wrong | Business impact | Who decides |
|---|---|---|---|
| 1 | Two customer API keys with withdrawal permission were publicly readable and still active | This is a customer-safety problem and a reputational one. Beyond revoking the keys, someone must decide whether to notify the affected account holders, and must fund continuous public-repository scanning for the exchange's own key format. | Security leadership + customer trust |
| 2 | A DNS record points at a deleted load balancer | Anyone who can create a load balancer with that name inherits a trusted subdomain. We could not complete the claim because we hold no cloud credentials — that constraint protects the exchange today, not a control. | DNS and platform operations |
| 3 | The firewall challenge can be solved by running it in a browser | This bounds what the edge can do. The answer is not a stronger challenge but application-layer authentication and rate limits behind it, because the edge will always lose to a client that can run a browser. | Architecture + security |
| 4 | Credential material ships in client-side configuration on the account system | A full production runtime configuration was readable from a public page, including service credentials and integration keys. Some of it is public by design; the specific values need individual review. | Application security |
| 5 | Three brand-adjacent domains are controlled by third parties | One expires soon and could be captured at drop. These are not the exchange's domains to secure, which makes this a brand-protection and legal question rather than an engineering one. | Brand + legal |
What we did not get
We did not obtain administrative control of any system, did not reach internal infrastructure, did not achieve cross-origin SSO abuse, and did not establish a host foothold. Two of six crown jewels remained unachieved: internal infrastructure exposure, after probing 89 subdomains and every method family we could construct, and SSO cross-origin abuse, because the account system's cross-origin policy is correctly scoped.
One qualification on the credential finding, which is the most consequential item in this report: we authenticated to those two accounts and read their balances. We did not trade, did not withdraw, and did not transfer anything. The evidence is a balance read, and it was taken once per account.
Engagement outcome
An authorized security assessment of a global exchange's public estate proved four of six targeted outcomes, the most significant being that two customer API keys with trading and withdrawal permissions were publicly readable in open source repositories and remained valid. The exchange's own account-system cross-origin controls and identity-provider defenses held against every attempt, and no customer funds were moved. All findings were disclosed under a confidentiality agreement with immediate revocation guidance for the affected credentials.
1. The engagement in numbers
| Metric | Value |
|---|---|
| Active machine time | ~21 hours |
| Total Swarm Size | 100 |
| Root workstreams | 3 |
| Distinct agent roles | 7 |
| Tool calls executed | 3,821 |
| Shell commands | 2,231 |
| Platform operations | 669 |
| Background job waits | 124 |
| Messages exchanged | 2,977 |
| Artifacts produced | 331 files |
| Hypotheses tested | 40 |
| Confirmed / rejected / unverified | 11 / 17 / 11 (plus 1 reviewed-not-vulnerable) |
| Subdomains probed | 89 |
| Crown jewels proven | 4 of 6 |
| Customer funds moved | None |
The hypothesis ledger is the number that matters here. Forty hypotheses with explicit status, priority, confidence, and a defer reason for any that were parked. Seventeen rejections are as much a result as the eleven confirmations — they are what makes the four proven crown jewels credible rather than lucky.
Agent topology
| Role | Sessions | Responsibility |
|---|---|---|
| Recon | 33 | Passive DNS, live mapping, content and JS analysis, auth surface |
| General | 32 | Long-tail enumeration, BAPI probing, data extraction |
| Exploit | 23 | Credential replay, WAF bypass, takeover verification, PoC construction |
| Vulnerability analyst | 4 | Hypothesis testing and confirmation |
| Advisor | 3 | Independent strategy review |
| Orchestrator | 3 | Wave design, scope, merge |
| Reporter | 2 | Report assembly |
Wave timeline
| Wave | Focus | Outcome |
|---|---|---|
| 1 | Passive recon: certificate transparency, OSINT, live mapping | Subdomains enumerated; WAF and takeover candidates identified |
| 2 | WAF challenge bypass and application content access | Challenge solved in-browser, token replayed |
| 3 | Credential hunting across public repositories | 11 key pairs recovered from 11 repositories |
| 4 | Credential replay and API access | 2 of 11 valid with full permissions; balances read |
| 5 | BAPI enumeration and internal infrastructure probing | 23+ endpoints mapped; 89 subdomains probed, nothing internal reached |
| 6 | Identity tenant analysis | Device-code flow live, federation chain mapped |
| 7 | Verification, hypothesis adjudication, report assembly | 40 hypotheses finalised with status and confidence |
2. What held
Two crown jewels were not achieved, and both refusals are documented with the work that went into them.
- The account system's cross-origin policy is correctly scoped. The initial read looked like a wildcard policy, but testing showed a foreign origin receives the credential allowance without the origin allowance, while the exchange's own origin receives its own origin echoed back. That is an allowlist working. There is no arbitrary-origin credentialed read.
- Eighty-nine subdomains produced no internal exposure. Every one resolved to a wildcard catch-all across three origin addresses, returning the same redirect. No code hosting, no dashboard, no secrets manager, no registry, no orchestration console. Debug and management endpoints returned forbidden on the demo hosts. Host-header injection produced no differential routing. Port scanning found only the two web ports.
- The identity provider resisted a hundred credential attempts. No valid credential, no applicable vulnerability to the running release, and the administrative console and master realm blocked at the edge.
- Cross-origin abuse via the login page was closed. We looked for a script injection or an open redirect on the sign-in surface that would let a same-origin-scoped cross-origin policy be leveraged. Neither existed.
- No host foothold. No shell, no interactive session, no host authentication token.
The internal-infrastructure refusal is the more thorough of the two. Eighty-nine named subdomains, four method families, host-header manipulation, and port scanning — all negative. That volume of negative work is what lets the client stop worrying about a category rather than asking for a retest.
3. The findings that mattered
How the estate was mapped
3.1 Eleven API key pairs in public repositories, two still valid with withdrawal permissionCritical
In plain terms. Customers of the exchange publish code. Some of them commit their API keys. We found eleven key-and-secret pairs across eleven public repositories, tested all eleven, and two worked completely — trading enabled, deposits enabled, withdrawals enabled. We read both accounts' full balance inventories — several hundred assets each, including earn and loan positions.
This is the single most consequential finding in the engagement, and the exchange cannot patch it. The credentials were valid because the customers left them valid.
What. Eleven exchange API key/secret pairs recovered from public repositories. Each key was format- validated, then a signed request was issued against the account endpoint. Two returned HTTP 200 with full account data and permission flags reading true for trade, withdraw, and deposit. The remaining nine returned the exchange's IP-or-permission-restricted error, which means the keys are real but bound to an allowlisted address.
Both valid keys also authenticated against the direct-origin API hosts, which are not firewall-fronted.
How we found it. By searching public code for the exchange's key format rather than attacking the exchange.
The method is worth stating because it is not exotic: code-hosting platforms are searchable, developers commit configuration files, and .env files are the most commonly committed secret in existence. We located eleven, recovered the pairs, and then did the one thing that distinguishes a disclosure from a finding — we tested them.
The validation sequence matters. An unsigned request returns "signature not sent" before the key is even evaluated, so a key's validity cannot be assessed without a correctly signed request. Nine keys returned a restriction error once signed, which establishes them as genuine but address-bound. Two returned account data.
Then we stopped. We read balances, recorded permissions and account status, and did not trade, withdraw, or transfer. The evidence is a read.
Root cause. Customer-side credential mismanagement, not an exchange defect. The exchange's controls were irrelevant because the authentication was legitimate.
Impact. An attacker who reads public code can authenticate to two customer accounts with full permissions including withdrawal, and read their complete holdings. The nine restricted keys are still exposed credentials — the restriction is an address allowlist, not a revocation.
What was not done and is not claimed: no trade executed, no withdrawal initiated, no transfer to any address, no third account reached.
Fix. Revoke the two valid keys immediately and notify the affected account holders. For the nine restricted keys, revocation is still the correct answer — an address allowlist can be defeated by a routing change. And fund continuous scanning of public repositories for the exchange's own key format, because this class cannot be closed by a code change.
Kill chain. Reconnaissance through collection, halted before any financial action.
3.2 A DNS record pointing at a deleted load balancerCritical
In plain terms. One subdomain's DNS record still points at a cloud load balancer that no longer exists. The record is live; the destination is not. Anyone who can create a load balancer with that exact name inherits the subdomain, with the exchange's own certificate and its own domain.
We confirmed the dangling reference across four resolvers, confirmed the load balancer name is globally unique, and confirmed there is no certificate-authority restriction blocking a claim. What stopped us is that we hold no cloud credentials. That is a limitation of the assessment, not a control protecting the exchange.
What. A CNAME on an exchange-controlled subdomain resolved to a load balancer name that returns no records. The parent zone still holds the record. The name is deterministic and unique in its region. No certificate-authority restriction exists on the parent domain.
How we found it. Standard subdomain enumeration — the interesting part is the verification depth, not the discovery.
Discovery took one DNS query. Verification took four independent resolvers to rule out a resolver-local anomaly, a query against the authoritative nameservers to confirm the record is genuinely published rather than cached, a check on the target's global uniqueness to establish the claim is possible, and a check on the parent zone for a certificate-authority restriction to establish that a certificate could be issued for a claimed subdomain.
Four checks, each eliminating a way the finding could be wrong. That is what separates a reported dangling record from a proven takeover primitive.
Root cause. A record left in place when the backend was deprovisioned.
Impact. An attacker with cloud access can claim the name and serve content on a trusted subdomain, using a certificate issued without restriction. Bounded only by needing cloud credentials, which most adversaries have.
Fix. Remove the record from the zone. Audit every CNAME monthly for dangling targets — this class recurs whenever infrastructure is deprovisioned without DNS cleanup.
3.3 The edge challenge defeated by running it in a browserHigh
In plain terms. The exchange's web application firewall presents a JavaScript challenge at the edge. A headless browser executes it, a token cookie falls out, and replaying that cookie with a command-line tool gets you through.
This is not a flaw in the firewall. It is the boundary of what a challenge can do against an automated client capable of running a real browser. The finding matters because the client should plan on the assumption that the edge will be traversed.
What. The challenge was solved in a headless browser, the token cookie extracted, and replayed against the application and its API layer with success. The token grants access to application content, account interface routes, and the internal API layer.
Notably, the internal API layer required more than the token: browser-faithful request headers — content negotiation, fetch metadata, and a same-origin referrer — were also necessary. Without them the edge returns forbidden. With them the backend serves data to unauthenticated callers.
How we found it. By treating the challenge as a component to be executed rather than a barrier to be defeated. A headless browser is not a bypass tool; it is a real client. Once the token existed, the work became identifying what additional headers the backend expected — which we established by comparing responses from a bare request against one shaped like a browser.
Root cause. Not a defect. The edge is functioning as designed, and the design has a known ceiling.
Impact. Application content, account interface routes, and API endpoints reachable without credentials. Public and friendly API endpoints served data; private endpoints returned a login-required error, which confirms authentication is enforced one layer deeper.
Fix. Treat the edge as a speed bump rather than a boundary. Enforce authentication and rate limits at the application layer, because the edge will be traversed by any adversary willing to run a browser.
3.4 Production runtime configuration readable from a public pageHigh
In plain terms. The account system's sign-in page ships its complete production runtime configuration to every visitor. It includes service credentials, integration keys, and internal endpoint names.
Some of those values are public by design — client identifiers usually are. Others are not: a service authentication header, a KYC integration key, and a secret. We probed the leaked credentials against in-scope endpoints and they did not authenticate, which is the difference between a leak and a compromise — the credentials are real but scoped to a system outside the engagement boundary.
What. The sign-in page returned 69 KB of single-page application content including a full runtime configuration object. It contained a base64-encoded service credential pair, a KYC integration key and secret, a Telegram bot identifier, an internal git commit reference, internal API endpoints, and an object-storage URL.
The service credentials were tested against in-scope endpoints and produced identical responses with and without them, establishing they do not authenticate against the exchange's own API. The system they are scoped to sits outside the authorized scope, so testing stopped there.
How we found it. By reading the delivered page source rather than the rendered page. Runtime configuration embedded in server-side rendering arrives in the initial HTML, before any script runs.
Root cause. Build-time injection of a configuration object containing values that should never reach a client.
Impact. Production credentials and internal infrastructure detail readable by any visitor to the sign-in page. The specific credentials did not authenticate against in-scope systems; whether they work against the out-of-scope target they are scoped to was not tested and is the open question this finding leaves with the client.
Fix. Never embed production credentials in client configuration. Inject public-only values at build time, and rotate everything that appeared.
3.5 Three brand-adjacent domains controlled by third partiesHigh
In plain terms. Three domains that look like the exchange's — using a double-hyphen pattern — are registered by third parties, delegated to parking nameservers, and serving content over valid certificates. One of them expires within weeks and could be captured at drop.
The real domain is registered through a corporate registrar with registry lock status and cloud DNS. These three are not. That difference is the whole finding: they are not the exchange's domains, so the exchange cannot secure them, and they carry its brand.
What. Three domains differing from the primary by hyphen placement, each registered through a consumer registrar, delegated to parking nameservers, and serving hosted content over a valid certificate. One had 82 certificate-transparency entries dating back years with a wildcard certificate covering hundreds of security-sounding subdomain names. Another was registered days before the assessment. One expires within weeks.
How we found it. By comparing registration and delegation against the authentic domain rather than assuming that a similar name belongs to the same owner. The comparison — registrar, nameservers, certificate issuer, content served — is what establishes third-party control.
Root cause. Not a vulnerability. Brand-adjacent domains registered by others, which is a legal and brand-protection matter.
Impact. Third parties serve content on domains that resemble the exchange's. One expiring soon could be captured by anyone, including an adversary. This is a phishing and brand-integrity exposure the exchange cannot fix unilaterally.
Fix. Pursue the domains through brand-protection channels, monitor expiry dates, and treat drop-capture as a scheduled risk rather than a surprise.
Findings that were tested and refused
Seventeen hypotheses were rejected with recorded evidence. They are listed because the rejections define the estate's posture as much as the confirmations do.
| Hypothesis | Outcome |
|---|---|
| Edge framework bypass by request header | Identical responses with and without — patched or ungated |
| SQL and NoSQL injection | No differential across payload families |
| Template, XML, directory, and command injection | No surface |
| Cross-site scripting, reflected, stored, and DOM | None found |
| Server-side request forgery to cloud metadata | Not achievable |
| Path traversal and local file inclusion | Blocked |
| Token forgery family | No valid forgery |
| Forced browsing to privileged routes | No differential |
| Limit manipulation in business logic | No effect |
| Default credentials | None valid |
| Username enumeration | Uniform responses |
| Multi-factor bypass | No path |
| GraphQL introspection | Blocked |
| Request smuggling, all variants | Closed |
| Subdomain takeover beyond the one dangling record | None claimable |
| Cache poisoning, unkeyed headers | No effect |
4. Kill chain summary
| Chain | Reached | Terminated at | Funds at risk |
|---|---|---|---|
| Credential replay | Stage 6 (exfiltration) | Bounded read, no action | Present but untouched |
| Edge bypass | Stage 4 (exploit) | Public endpoints only | None |
| Dangling DNS | Stage 2 (weaponize) | No cloud credentials held | None |
| Data exposure | Stage 5 (collection) | Public API data | None |
| Internal infra | Stage 1 (recon) | Nothing exposed | None |
| SSO cross-origin | Stage 2 (weaponize) | Allowlist correct | None |
5. What the shape of this engagement teaches
The biggest hole was the customers', and that changes the remediation entirely. Two API keys with withdrawal permission were valid because customers published them. No exchange control failed. The only durable response is continuous detection — scan public code for your own key format, revoke what you find, notify the account holders — because the vulnerability is regenerated every time a developer commits a configuration file.
Credential validation requires more care than credential discovery. An unsigned API request returns "signature not sent" before the key is evaluated, so a naive test reports every key as uninteresting. Nine of eleven keys were real but address-bound; two were fully open. Reporting eleven or two without distinguishing restriction from invalidity would have been wrong in opposite directions.
A challenge is a speed bump, not a boundary. The edge challenge was solved by a headless browser in minutes. That is not a defect — it is the design ceiling. Plan on the edge being traversed and put authentication and rate limiting behind it, because any adversary willing to run a browser gets through.
Verification depth is what makes a dangling record a finding. Discovery was one DNS query. Confirming it took four resolvers, an authoritative query, a global-uniqueness check, and a certificate-authority check. Each check eliminated a way the finding could be false. Reporting the first result would have been gambling.
A refused crown jewel with evidence is worth as much as a proven one. Eighty-nine subdomains, four method families, host-header manipulation, and port scanning produced nothing internal. That volume of negative work lets the client retire a category instead of asking for a retest — and it is what makes the four proven outcomes credible rather than lucky.
Correct scoping deserves to be named as a control. The account system's cross-origin policy looked like a wildcard at first read. Careful testing showed a foreign origin receives the credential allowance without the origin allowance — an allowlist enforcing correctly. That is the estate doing something right, and saying so is part of an honest report.
Recommended sequence
| Priority | Action | Why first | Effort |
|---|---|---|---|
| 1 | Revoke the two valid API keys and notify the affected account holders | Full withdrawal permission in public hands | Immediate |
| 1 | Revoke the nine restricted keys as well | An address allowlist is not a revocation | Very low |
| 1 | Remove the dangling DNS record | A claimable trusted subdomain | Very low |
| 2 | Fund continuous public-repository scanning for the exchange's key format | This class regenerates; it cannot be patched | Programme |
| 2 | Rotate every credential in the sign-in page configuration and review each for scope | Production values readable by any visitor | Low |
| 2 | Enforce authentication and rate limits at the application layer behind the edge | The edge challenge is traversable | Medium |
| 3 | Audit all CNAME records monthly for dangling targets | This class recurs on every deprovision | Low |
| 3 | Pursue the brand-adjacent domains; monitor the soon-expiring one | Third-party brand exposure the exchange cannot fix alone | Legal |
| 4 | Enable certificate-authority restrictions on the parent zone | Prevents certificate issuance for claimed subdomains | Low |
| 4 | Review the BAPI layer's authentication boundary on public endpoints | Public data served unauthenticated may be intended, but should be a decision | Medium |
Notices
Authorization
This was an authorized security assessment conducted under a written engagement agreement with a full-compromise objective. All testing was confined to in-scope properties.
Financial restraint was absolute. Where two customer API keys authenticated with full permissions including withdrawal, the assessment read account balances and permission flags once per account and performed no trade, no withdrawal, and no transfer. No customer funds were moved at any point.
No host foothold was obtained. No administrative control was achieved. Where a path required material outside scope — cloud credentials for the DNS claim, a credential for the out-of-scope KYC system — the assessment recorded the blocker and stopped. One finding was deferred explicitly because the target system it concerns sits outside the authorized boundary.
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 both domain names — including the brand-adjacent domains
- All IP addresses, network ranges, cloud resource names, and origin addresses
- All API key prefixes, credential values, integration keys, and the encoded credential pair
- Organisation and brand identifiers
- The identity tenant identifier and federation provider names
- Cloud resource names including load balancer, distribution, and token host names
- Internal service names, endpoint paths, and feature-flag key names
- Account identifiers and the specific balance inventories
- Personal names, email addresses, and repository identities of the affected account holders
- Exact calendar dates and clock times — replaced with wave and relative-day numbering
- The specific subdomain counts by phase and the exact hypothesis counts per status
What was kept, deliberately: vulnerability classes and MITRE technique identifiers, the crown-jewel scoring framework, the hypothesis-ledger methodology with its confirmed/rejected/unverified split, the credential-validation sequence (unsigned probe to establish the key was not yet evaluated, then a signed request to establish restriction versus validity), and the verification depth behind the DNS finding. These are transferable and identify nobody.
Placeholders used throughout:
| Placeholder | Meaning |
|---|---|
exchange.example | Primary exchange domain and subdomain fleet |
api.exchange.example | Direct-origin API hosts |
accounts.exchange.example | Account and sign-in system |
dangling.exchange.example | Subdomain with the deleted load balancer record |
tenant.example | Corporate identity tenant |
brand-adjacent domains | The three third-party-registered lookalikes |
<redacted> | Any credential, key, token, address, balance, or identifier |
Data handling
No customer data is reproduced. The two authenticated accounts are described by asset count and permission class only — never by balance, asset symbol, account identifier, or holder. No key prefix appears. The specific balance inventories are not reproduced in any form. The brand-adjacent domains are described generically rather than quoted.
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, and remediation status is not asserted.
Two crown jewels were not achieved and are recorded as refusals, not omissions. Internal infrastructure exposure was tested across 89 subdomains and four method families with nothing reached. Cross-origin SSO abuse was blocked by a correctly scoped policy. Neither is a clean bill for those categories — they are the result of the methods applied, and the methods are documented so a reader can judge the coverage.
The credential finding is a disclosure consequence, not an exchange defect. The exchange's authentication worked exactly as designed; the credentials presented were legitimate. The remediation is revocation and detection, and the underlying exposure will recur as long as developers commit configuration files.
One finding was deferred rather than resolved. The credentials leaked in the sign-in page configuration did not authenticate against in-scope endpoints. Whether they work against the out-of-scope system they are scoped to was not tested, and that question is the client's to answer.
Methodology and tooling by BlackBit. Forty hypotheses adjudicated with recorded status and confidence; refused crown jewels documented with the work behind them. Published with the client's permission.