Executive summary
What we were asked to do
A crypto brokerage offering tokenised equities and borrowing against crypto collateral asked us to assess its public estate. The platform holds user positions through a custody provider, so the estate includes a third-party wallet infrastructure integration and a hosted database-backed data layer.
The engagement produced two independent zero-authentication tenant-isolation breaks on a live platform — and one of the most instructive refutations in our published work.
Principal findings
An internal risk-monitoring console required no authentication at all. It exposed 9,895 collateral positions, 124 active borrowers with live debt and collateral, 354 liquidations, 49,939 redemption records, and eight vault valuations. Separately, a hosted-database row-level-security gap made 97,416 rows of wallet addresses and ECDSA signatures anonymously readable through the platform's publishable key. The refutation: a third-party custody provider's published API specification suggested a header-only authentication bypass that looked like a critical. It was not — invalid app identifiers died at a registry gate before reaching the handler, which made the bypass appear real. Testing with a registered app identifier returned 401 Missing auth token, proving the gate required two credentials all along.
What this means in plain terms
Three things a board should take from this.
- An internal monitoring console was on the public internet with no login. Every active borrower's debt and collateral, every liquidation, every redemption. The console was built for operators and never considered a public surface, which is precisely why it had no authentication.
- Ninety-seven thousand rows of signature data were readable through a public database key. Row-level security exists to prevent exactly this. The policy was too broad on one table. The same key correctly refused writes, which is the partial credit.
- A plausible critical turned out to be a false positive, and finding that out was the most valuable work in the engagement. The specification said one credential; the gate required two. Probes using invalid identifiers never reached the handler, so the gate looked absent. This is a false-positive class caused by early-gate short-circuiting, and it is worth understanding before you report a bypass.
The five things that need a decision, not a patch
| # | What is wrong | Business impact | Who decides |
|---|---|---|---|
| 1 | An internal risk console has no authentication and no content-security policy | It exposes live borrower debt, collateral, and liquidation state across the whole platform. Whether the console should exist publicly at all is an architecture decision. | Platform engineering |
| 2 | 97,416 rows of wallet addresses and signatures are anonymously readable | Row-level security was too broad on one table. The data is signature material bound to terms-of-service acceptance — the exposure is legal as much as technical. | Data governance + legal |
| 3 | A price oracle reverts for all callers with a 24-day stale snapshot | Three lending markets cannot be priced. There is no error handling in the adapters, so a caller gets a revert rather than a fallback. | Protocol engineering |
| 4 | The custody provider's API reflects arbitrary origins with credentials on eight routes | Client-side custody integration with permissive cross-origin policy. The provider's side needs a conversation. | Vendor management + security |
| 5 | A Kubernetes API server is publicly reachable, leaking VPC ranges and account identifiers | Reachability only, no compromise. But an internet-facing control plane for a financial platform deserves an explicit decision. | Infrastructure |
What we did not get
No compromise of the custody provider's secret store. No session takeover. No cross-tenant write. No funds moved.
The custody-provider crown jewel was hard-blocked: an application-secret authentication check fires before any signature verification, and empty or placeholder secrets are rejected byte-identically. That is the control working.
Engagement outcome
An authorized security assessment of a crypto brokerage platform identified two independent tenant-isolation weaknesses, including an internal risk console reachable without authentication and a database access-policy gap affecting approximately 97,000 signature records. No funds were moved, no session was taken over, and both the custody provider's secret store and the database write path were verified to enforce access control correctly. All findings were disclosed under a confidentiality agreement with prioritised remediation guidance.
1. The engagement in numbers
| Metric | Value |
|---|---|
| Root workstreams | 2 |
| Total Swarm Size | 117 |
| Hosts in scope | 11 |
| Findings described in section 3 | 5 (2 high, 3 medium) |
| Collateral positions exposed | 9,895 |
| Active borrowers exposed | 124 |
| Liquidation records exposed | 354 |
| Redemption records exposed | 49,939 |
| Signature rows exposed | 97,416 |
| Rows downloaded | 0 (count + head + tail proofs used) |
The last row is a deliberate choice and belongs in the summary. Rather than dumping 97,416 rows to prove they were readable, the assessment used a row count plus head-and-tail range proofs. That is enough to establish the exposure and avoids becoming the data breach it is reporting.
Agent topology
| Role | Sessions | Responsibility |
|---|---|---|
| Recon | 62 | Estate mapping, API specification recovery |
| Exploit | 38 | Console access, RLS boundary testing, oracle simulation |
| Scout | 10 | Surface promotion |
| Orchestrator | 3 | Cycle design, merge |
| Advisor | 4 | Independent review, refutation adjudication |
2. What held
The refutation is the headline of this section, but three other controls also held.
- The custody provider's secret store is gated on two credentials. An application-secret check fires before signature verification, and empty or placeholder secrets are rejected byte-identically. The crown jewel was not reachable.
- The database write path enforced row-level security. Anonymous inserts against the same table that permitted anonymous reads were denied with a policy error. Read too broad, write correctly closed.
- The deployment platform's access wall held. Twenty-five or more probes against the front-end host produced zero bypasses.
- Cross-site scripting was refused on JSON sinks. A strict nonce-based content-security policy held.
The refutation: a critical that was not one
This deserves its own subsection, because it is the most transferable lesson in the report.
The custody provider's published API specification declared no security requirement on a set of secret management routes. That is the exact shape of an authentication bypass, and it looked like a critical.
The probes behaved accordingly: requests with invalid application identifiers died at a registry gate with 400 Invalid App ID, which is before the handler runs. So the handler was never reached, and the absence of an authentication error at the handler looked like the absence of authentication.
The fix was to find a genuinely registered application identifier — obtained from the client bundle, a public artefact the platform serves — and re-test. That returned 401 Missing auth token. The gate had required two credentials all along; the specification was simply incomplete.
The class is worth naming: early-gate short-circuiting produces false-positive authentication bypasses. When a probe dies before reaching the handler, the handler's silence is not evidence. Any test for missing authentication must reach the code path it is testing, which means supplying every credential the outer gates require.
3. The findings that mattered
How the estate was mapped
3.1 An internal risk console with no authenticationHigh
In plain terms. The platform runs a monitoring console for its own operators — the place staff look at borrower health, collateral ratios, and liquidation state. It was on the public internet with no login and no content-security policy.
The numbers: 9,895 collateral positions, 124 active borrowers with live debt and collateral, 354 liquidation records, 49,939 redemptions, and eight vault valuations.
What. An internal monitoring interface answered anonymously with complete operational data. The write surface returned method-not-allowed, so the exposure is read-only.
How we found it. By enumerating hosts and treating a console-shaped hostname as a candidate rather than assuming it was protected. The interface rendered its full data set to an unauthenticated request.
The write test is the discipline point: the assessment probed whether the console accepted mutations and found 405. That bounds the finding to disclosure.
Root cause. The console was built for internal operators and never considered a public surface, so it was deployed without authentication.
Impact. Complete operational visibility into the platform's lending book. Every active borrower's debt and collateral, every liquidation, every redemption. For a competitor or an attacker timing a position, that is the whole picture.
Fix. Put authentication in front of the console, and ideally move it off the public internet entirely. An internal monitoring surface belongs behind the same boundary as the systems it monitors.
3.2 Ninety-seven thousand signature rows readable through a public database keyHigh
In plain terms. The platform's data layer is a hosted database with a publishable key that ships in the client. That is normal — the key identifies the application, and row-level security is supposed to constrain what it can read.
On one table it did not. A terms-of-service signature table returned 97,416 rows anonymously: wallet addresses paired with 65-byte ECDSA signatures.
The same key correctly refused inserts. So the policy existed; it was too broad on one table.
What. An anonymous read against a signature table returned 97,416 rows through the platform's publishable key. An anonymous insert against the same table was denied with a policy error.
How we found it. By testing the read and write boundaries separately rather than treating row-level security as a binary.
The restraint is the substance: rather than downloading 97,416 rows, the assessment captured a row count, a head range, and a tail range. That proves the exposure without becoming it.
Root cause. A row-level-security policy permitting anonymous read on a table that should require an authenticated context — while correctly denying write.
Impact. Wallet addresses and signature material readable anonymously. Signature material bound to terms-of-service acceptance has legal weight, so the exposure is a data-protection matter as much as a technical one.
Fix. Require an authenticated context on the signature table. Audit every table's anonymous read scope, not just the one found.
3.3 A price oracle reverting for all callers with a 24-day stale snapshotMedium
In plain terms. A price feed the platform depends on reverts for every caller, regardless of who asks. The last successful snapshot is 24 days old. Three lending markets depend on that feed and have no error handling, so they cannot be priced at all.
What. An oracle call reverted caller-independently with a custom error. The most recent data was 24 days stale. Three markets that consume the feed lack try/catch handling.
How we found it. By simulating the call against live state rather than reading the contract's documentation. The revert reproduced for every caller.
Root cause. A stale feed plus adapters without fallback handling.
Impact. Three lending markets are unpriceable. Whether that is a denial of service or a safety stop depends on how the protocol handles the revert — which is the finding.
Fix. Add fallback handling to the adapters so a stale feed degrades rather than halts.
Also confirmed
| Finding | Severity | Content |
|---|---|---|
| Custody provider API reflects arbitrary origins with credentials | Medium | Eight routes echo any origin, including null, with credentials permitted |
| Kubernetes API server publicly reachable | Medium | Health endpoints answer; certificate leaks VPC ranges, a pod IP, and the cloud account identifier; data plane returns 401 |
4. Kill chain summary
| Chain | Reached | Terminated at | Data obtained |
|---|---|---|---|
| Risk console | Stage 5 (collection) | Read-only, 405 on write | Full operational data |
| Signature rows | Stage 5 (collection) | Count + range proofs only | No bulk download |
| Oracle revert | Stage 4 (exploit) | Simulation only | None |
| CORS reflection | Stage 4 (exploit) | No credentialed read | None |
| Custody secret store | Stage 2 (weaponize) | Two-credential gate | None |
5. What the shape of this engagement teaches
Internal tooling is the most reliable source of unauthenticated exposure. Risk consoles, dashboards, and operator interfaces are built for people who already have access, so authentication gets skipped. The console in this engagement exposed live borrower debt across the whole platform. Any estate assessment should be looking specifically for console-shaped hostnames.
Read and write boundaries of a database policy must be tested separately. The same table permitted anonymous read and denied anonymous write. A test that checks one tells you nothing about the other, and a finding that says "RLS is broken" would be wrong in one direction.
Count plus head-and-tail proofs are enough, and they keep you out of the breach. Ninety-seven thousand rows were provably readable without downloading them. That is the professional way to report an exposure you are not authorised to harvest.
Early-gate short-circuiting is a false-positive class worth memorising. A probe that dies before the handler runs cannot observe the handler's authentication check. The custody-provider bypass looked real purely because invalid identifiers were rejected at a registry gate. Supplying a valid outer credential revealed the inner one. Before reporting an authentication bypass, confirm the request reached the code you are testing.
A refutation costs more than a finding and is worth more. This engagement's most valuable output was establishing that an apparent critical was not one. It required obtaining a registered app identifier and re-testing, and it saved the client from a remediation cycle on a non-problem.
Recommended sequence
| Priority | Action | Why first | Effort |
|---|---|---|---|
| 1 | Authenticate the risk console, or move it off the public internet | Live borrower debt and collateral fully exposed | Low |
| 1 | Restrict the signature table's anonymous read scope | 97,416 rows of wallet and signature data | Very low |
| 2 | Audit every table's anonymous read scope | One broad policy implies others | Medium |
| 2 | Add fallback handling to the three oracle-dependent markets | Markets unpriceable when the feed goes stale | Low |
| 2 | Raise the CORS policy with the custody provider | Eight routes reflect any origin with credentials | Vendor |
| 3 | Decide whether the Kubernetes API needs to be internet-facing | Control plane reachable; topology leaked | Decision |
| 3 | Rotate the publishable key after the policy fix | The key is public by design; the policies are the control | Low |
| 4 | Add a content-security policy to the console | No client-side protection either | Low |
Notices
Authorization
This was an authorized security assessment conducted under a written engagement agreement. All testing was confined to in-scope properties.
Read-only discipline was applied throughout, and it is central to this report's standing: the 97,416-row exposure was proven with a count plus head-and-tail range proofs, not by downloading the data. The risk console's write surface was probed and found to return 405, which bounded the finding to disclosure. The custody secret store was tested and found gated; no attempt was made to defeat a two-credential control with a guessed secret. Oracle findings were established by simulation, not by forcing a state change.
Redaction
Every hostname, IP address, credential, address, and identifier in this document has been replaced with a placeholder or generalised.
What was removed:
- All hostnames, subdomains, and domain names
- All IP addresses, network ranges, cloud account identifiers, and VPC ranges
- All API keys, publishable keys, app identifiers, and secret values
- All wallet addresses and signature values
- Organisation and brand identifiers, including the brokerage and its products
- Third-party vendor names, including the custody provider and the database platform
- The specific tokenised assets and blockchain involved
- Endpoint paths, route names, and table names
- Individual borrower positions, debt figures, and collateral values
- The exact trove, liquidation, and redemption counts by type
- The deployment platform identity
- Exact calendar dates and clock times
What was kept, deliberately: vulnerability classes and CWE identifiers, the refutation sequence in full (registry gate, invalid identifier, valid identifier, two-credential conclusion), the row and record counts as magnitudes, and the read-versus-write policy distinction. These are transferable and identify nobody.
Placeholders used throughout:
| Placeholder | Meaning |
|---|---|
broker.example | Brokerage domain and estate |
risk.broker.example | Internal risk-monitoring console |
data.broker.example | Database-backed data layer |
custody.broker.example | Third-party custody integration host |
oracle-feed | The stale price feed |
<redacted> | Any address, key, identifier, table, or value |
Data handling
No borrower data is reproduced. Exposure is described by aggregate counts by record class, never by individual position, debt figure, collateral value, or wallet address. The 97,416-row exposure is described by count only — no row content, no address, no signature. No key or app identifier appears.
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 custody-provider "critical" is reported as refuted, not as a finding. That determination is the product of re-testing with a registered application identifier. The report preserves the full sequence so a reader can see why the false positive appeared.
The 97,416-row exposure was proven without downloading the rows. Count plus head-and-tail range proofs establish readability; the assessment did not harvest the data.
Methodology and tooling by BlackBit. An apparent critical refuted by identifying an early-gate short-circuit; a bulk exposure proven by count and range proofs rather than collection. Published with the client's permission.