Executive summary
What we were asked to do
An on-chain derivatives trading platform asked us to assess its external estate from an unauthenticated, internet-only starting position. No credentials, no source access. The estate spans a trading application, a production trading API, its own layer-2 blockchain infrastructure, and a third-party identity provider fronting the login flow.
The engagement did not set formal crown-jewel targets. It confirmed three high and two low findings, plus seven informational observations.
Principal findings
The platform's trading API exposes two public methods that between them disclose every customer's portfolio and every customer's withdrawal signing material. The portfolio method returns, for any subaccount identifier, the exact USD value, every open position, the full collateral composition, realised and unrealised profit-and-loss, and margin state. Across a 200-account sweep at one request per second, roughly half of all probed accounts were live, and the aggregate disclosed value was $3.67–3.68 million — including a $2.18 million options portfolio and a $1.32 million multi-asset account. Several accounts were in margin deficit. The withdrawal method produces fully encoded, correctly formatted signing instructions for any account, with no signature verification — a forging primitive paired with an ownership disclosure. A third finding exposes the complete treasury governance state: 17 multisig wallets, their signing thresholds, 19 pending transactions, and the full executable transaction data for three already-approved transfers.
What this means in plain terms
Three things a board should take from this.
- Every trader's book is public. Not aggregated, not sampled — each account's exact positions, P&L, collateral, and liquidation proximity, identified by a sequential number. An attacker can build a ranked list of the wealthiest accounts, identify who is closest to liquidation, and target them directly. This is financial surveillance of your own customer base, served by your own API.
- The withdrawal oracle is not a bug in the normal sense — it is a debug method left on a public route. It returns everything a signer would need to approve a withdrawal: the encoded message, its hash, the domain separator, and the owner's address. It does not verify any signature. Execution of a withdrawal was blocked by three independent controls, which is good — but the intelligence value is already delivered, and it pairs with the portfolio disclosure to make targeted social engineering against named high-value account owners trivially easy.
- The treasury is transparent to the point of operational disclosure. Seventeen multisig wallets, three configured with a single signer, nineteen pending transactions with full calldata — including three that have already met their signing threshold. Write access to those queues was tested and correctly enforced, which is the positive finding. But the read plane is completely open, and reading a pending executable transaction tells you what is about to happen on-chain before it happens.
The five things that need a decision, not a patch
| # | What is wrong | Business impact | Who decides |
|---|---|---|---|
| 1 | Every customer's portfolio value, positions, and liquidation state are readable without authentication | This is financial surveillance of your customer base. Beyond the fix, someone must assess whether the data has already been collected and whether regulatory disclosure applies. | Compliance + security leadership |
| 2 | A public debug method returns withdrawal signing material for any account | Three controls block execution today. But the intelligence value is real, and the three controls are independent — which means they can fail independently too. | Engineering leadership |
| 3 | The identity provider's vanity host reflects any origin with credential allowance on 15 of 22 routes | Today this is bounded. If any cookie-authenticated surface ever appears on that host — a dashboard, an embed, a staff tool — it becomes a zero-click cross-origin read primitive. The configuration is a standing risk, not a current one. | Application security + vendor |
| 4 | The treasury's complete governance state is publicly readable, including executable pending transactions | On-chain data is public by design. But the service that exposes it does so without authentication, which means an attacker can monitor treasury operations in real time without touching the blockchain. | Governance + operations |
| 5 | Anonymous token minting is unthrottled — 31 tokens minted in a burst, no rate limit | The token is used for authenticated API access. An attacker can mint tokens at will and use them against whatever surface accepts them. | Identity platform |
What we did not get
No fund movement. No on-chain withdrawal execution — three independent controls blocked the path. No administrative access. No session hijacking. No cross-account write. No persistence, no command-and-control, no exfiltration stage observed anywhere.
A genuine write-path negative is worth naming: the governance multisig queue rejected a validly signed transaction from an attacker-controlled burner key — the server recovered the signer, enforced membership, and left the queue unchanged. That is a stronger refusal than the usual malformed-payload test, and it is recorded rather than assumed.
Engagement outcome
An authorized external security assessment of an on-chain derivatives platform identified four high-severity findings, the most significant exposing customer portfolio data valued at approximately $3.7 million without authentication. No funds were moved, no administrative access was obtained, and the platform's withdrawal-execution controls were confirmed to hold against a validly signed test transaction. All findings were disclosed under a confidentiality agreement with prioritised remediation guidance.
1. The engagement in numbers
| Metric | Value |
|---|---|
| Active days | 2 |
| Total Swarm Size | 236 |
| Root workstreams | 2 |
| Distinct agent roles | 1 (unified) |
| Hostnames enumerated and tested | 25 |
| Confirmed findings described in section 3 | 5 (3 high, 2 low) |
| Informational observations | 7 |
| Portfolio value disclosed | ~$3.67–3.68 million |
| Largest single account disclosed | $2.18 million options portfolio |
| Governance Safes enumerated | 17 |
| Pending executable transactions | 3 |
| Write-path refusals | 3 (signature, API key, deployment state) |
The engagement identified three high-severity findings in two days against 25 hosts, with an inference spend of roughly $20.
Agent topology
| Role | Sessions | Responsibility |
|---|---|---|
| Orchestrator | 2 | Cycle design, merge, evidence reconciliation |
| Workers | 234 | Host-depth nesting, probing, proof capture |
2. What held
Three controls held, and each is worth naming because they blocked the paths that would have turned disclosure into compromise.
- The governance multisig queue enforces signature verification — proven with a valid attacker signature. Rather than sending malformed payloads, the assessment constructed a cryptographically valid EIP-712 signature from a burner key over the exact server-derived transaction hash. The server recovered the burner address, determined it was not an owner or delegate, rejected with 422, and left the queue unchanged — pre/post hash identical, nonce unmodified. That is a stronger refusal than most, and it is proven rather than assumed.
- The private withdrawal path enforces signature verification. A malformed signature on the private method returns an explicit signature-failure code — the control the public debug method lacks. The contrast between the two paths is what isolates the public method as the unaudited one.
- The chain-submission endpoint requires an API key. Even with a valid signature, submitting the withdrawal on-chain requires an authenticated call to the submission endpoint. That is the second independent control.
- The on-chain action manager is not deployed to the state that would accept the encoded action. That is the third control — and it is a deployment-state control, which means it can change independently of the application.
- Middleware authorisation on the admin surface held across 15 request-shape variants, despite the build sitting inside the affected version range of a known framework bypass. The report records the negative honestly and attributes the hold to platform-level auto-protection rather than application code.
The third control deserves specific attention. The on-chain action manager is a deployment-state control, not an application control. If the manager is deployed or upgraded independently of the API fix, the third barrier disappears without anyone touching the application. That is why the finding is rated High despite the three-blocked path — the blocks are real but not all the same kind.
3. The findings that mattered
How the estate was mapped
3.1 Unauthenticated cross-account portfolio disclosure at scaleHigh, CVSS 7.5
In plain terms. Every customer's trading account has a numeric identifier. The API exposes a method that takes that identifier and returns the complete account state — exact dollar valuation, every open position with direction and greeks, full collateral breakdown, realised and unrealised P&L, margin type, maintenance margin, and liquidation status.
No login. No token. No signature. The identifier is the only input.
We swept 200 sequential identifiers at one request per second. Roughly half were live. The aggregate disclosed portfolio value across those live accounts was between $3.67 and $3.68 million. The largest single account disclosed was a $2.18 million options portfolio. Several accounts were in margin deficit — exactly the accounts an attacker prioritising liquidation would target.
What. A POST to a public API method with a subaccount identifier in the body returns the complete portfolio record. Two independent sweeps confirmed the scale: 101 and 110 live accounts respectively from 200 identifiers, with a 4.5-percentage-point disagreement between the two runs attributed to live-estate churn rather than reconciled to a point estimate.
How we found it. By reading the API specification the platform serves publicly. The method was documented, reachable, and accepted sequential integers. The sweep was paced at one request per second per the engagement's rules of engagement.
The server's own response header advertises a rate limit of 500 requests per minute — substantial headroom above the assessment's discipline.
Root cause. The method performs no authentication and no entitlement check on the caller-supplied subaccount key. The authorisation layer treats the identifier as a public lookup.
Impact. Bulk financial surveillance of the customer base. An attacker builds a ranked target list, monitors any trader in real time, identifies accounts near liquidation, and times market actions or social-engineering approaches against named high-value individuals. The server's own rate-limit header confirms the sweep could have been much larger.
Fix. Require authentication on the method and enforce entitlement checks on the subaccount key. Apply object-level authorisation to every method taking an account identifier. Add an automated regression test that unauthenticated cross-account reads fail on every such method.
Kill chain. Reconnaissance and exploitation — the delivery and exploitation stages are the same two requests.
3.2 Withdrawal-action encoding oracle on the public APIHigh, CVSS 7.5
In plain terms. A debug method on the trading API produces fully encoded, correctly formatted withdrawal instructions for any subaccount, without any signature or identity verification. The response contains the encoded message a signer would approve, its hash, the domain separator, and the internal owner of the target subaccount.
The private method that shares the same encoding logic rejects malformed signatures with an explicit error code. The public debug method was built without that check.
What. A POST to a publicly routed debug method with no authentication headers and no signature field returns HTTP 200 with the complete encoded withdrawal instruction set. The response includes recovered_signer: null — confirming no signature was verified.
How we found it. By comparing the public and private paths rather than assuming they behaved the same. The contrast is the finding: the private path rejects a malformed signature with code 14014; the public path accepts an unsigned request and returns the full encoding.
Root cause. The public debug method's request schema omits the signature requirement entirely. This is consistent with a debug or diagnostic method exposed through the public routing table.
Impact. Disclosure of the owner of any subaccount identifier, plus a forging primitive — exact, correctly encoded withdrawal messages for any account. Three independent controls blocked execution: client-side signing, an API key gate on chain submission, and the deployment state of the on-chain manager. The demonstrated impact is an intelligence and forging primitive, not fund movement.
Combined with the portfolio disclosure, an attacker can identify high-value accounts, obtain their owner addresses and signing material, and construct targeted social-engineering approaches against the specific humans who control those accounts.
Fix. Remove the public debug method from the routing table or gate it behind the same signature verification as the private path. Then prevent recurrence structurally: a build check that debug or diagnostic methods cannot be exposed on public routes.
Kill chain. Exploitation observed. Weaponization, installation, command-and-control, and actions-on-objectives were not observed; the final on-chain execution step was tested and blocked.
3.3 Permissive CORS on the identity-provider vanity hostHigh, CVSS 7.5
In plain terms. The platform fronts its login with a third-party wallet provider. The vanity host for that provider reflects any origin header in its cross-origin response on most routes, with the credential-permitting flag set.
Today this is bounded: the provider authenticates by explicit header rather than ambient cookies, so a browser cannot carry credentials cross-origin. The demonstrated impact is reading the full 1.15 MB service specification.
But the configuration is a standing risk: the moment any cookie-authenticated surface appears on that host — an internal dashboard, a staff tool, a session endpoint — the same policy becomes a zero-click cross-origin read primitive against it for any visitor.
What. Fifteen of twenty-two tested routes on the in-scope host echo any attacker-supplied origin with the credentials-permitted flag, spanning both 200 and 400 response classes. The identical configuration was observed on the provider's own upstream domain.
How we found it. By reading the specification the host serves, selecting routes from it, and testing each with a controlled origin. Three capture sets: an origin-echo matrix, a bounding sweep across the route sample, and an error-path discrimination set confirming the policy is set per-route rather than by response class.
Root cause. The provider's platform middleware reflects the request origin without an allowlist, configured per-route rather than centrally. The defect originates in the third-party provider and manifests on the client's vanity host.
Impact. Today: complete API map of the identity infrastructure, cross-origin. Forward-looking: a zero-click cross-origin read primitive the moment a cookie-authenticated surface appears.
Fix. Set an explicit allowlist on the vanity host. Drive the platform-level fix upstream at the provider. Add Vary: Origin to all CORS-varying responses including preflights.
3.4 Treasury governance exposed at breach scalereported under F-03's host family
In plain terms. The multisig transaction service backing the platform's on-chain governance exposes, without authentication, the complete registry of 17 governance multisig wallets: owner address lists, signing thresholds — including three single-signer wallets — 19 pending transactions, and the full executable transaction data for three that have already met their signing threshold.
On-chain data is public by design. The finding is that the service exposing it requires no authentication, which means an attacker monitors treasury operations in real time through the service rather than the blockchain — with the service's own indexing and query capability.
What. Seventeen governance Safes enumerated with owner lists and thresholds. Nineteen pending multisig transactions, of which three have met their signing threshold — including one signed, unexecuted transaction on a single-signer wallet. Historical transaction calldata retrievable in full.
How we found it. A read-only GET sweep of the transaction service. No authentication, no mutation.
The write path was separately proven enforced: three differently shaped transactions were submitted and rejected — the server recovered the signer, enforced membership, and left the queue unchanged.
Root cause. The transaction service does not require authentication for read operations. This is common for standard transaction-service deployments but is a governance-transparency decision the platform should make explicitly.
Impact. Real-time monitoring of treasury operations. Study of executable transaction calldata before it is executed. In a market where treasury movements move token prices, this is commercially relevant intelligence.
Fix. Require authentication for read operations on the transaction service, or accept the transparency as a deliberate governance choice and document it.
Also confirmed
| Finding | Severity | Content |
|---|---|---|
| Unhandled duration parameter on the fees endpoint | Low | 500 on an unhandled branch; control request returns 200 |
| Unthrottled anonymous token minting | Low | 31 tokens minted in a burst with no rate limit |
| Framework middleware bypass refuted across 15 variants | Informational | Negative result recorded honestly |
| Two catalogued framework vulnerabilities not applicable | Informational | Advisory preconditions unmet on live builds |
| Cache-poisoning negative on the identity host | Informational | Bounded test, no divergence |
4. Kill chain summary
| Chain | Reached | Terminated at | Data obtained |
|---|---|---|---|
| Portfolio disclosure | Stage 6 (exfiltration) | 200 identifiers | $3.67–3.68M portfolio data |
| Withdrawal oracle | Stage 4 (exploit) | Three independent controls | Encoding + owner address |
| CORS on identity host | Stage 5 (collection) | Spec only, no auth surface | 1.15 MB service specification |
| Treasury governance | Stage 5 (collection) | Read-only; write refused | 17 Safes, 19 pending transactions |
| Multisig write | Stage 4 (exploit) | Valid signature refused | None — queue unchanged |
5. What the shape of this engagement teaches
The portfolio disclosure and the withdrawal oracle are the same bug pattern in different shapes. Both are methods that accept a caller-supplied account identifier and return data about that account without checking whether the caller is entitled to it. One returns a portfolio; the other returns signing material. The fix is the same for both: object-level authorisation on every method that takes an account identifier. Reporting them separately is correct because the impact differs; fixing them separately is not.
A debug method on a public route is an entire vulnerability class. The withdrawal oracle was not an authentication bypass — it was a diagnostic method exposed through the public routing table with its signature check omitted. Auditing for debug and diagnostic methods on public routes is a check worth running on any API estate.
Proving a negative with a valid signature is stronger than proving it with a malformed one. The governance queue rejected three malformed payloads — and then rejected a cryptographically valid signature from a burner key. That second refusal proves the server is doing the cryptographic work, not just pattern-matching. It is the strongest single piece of evidence in the engagement and the hardest to produce.
Forward-looking CORS findings are real findings. The identity host's cross-origin policy is not currently exploitable because no cookie-authenticated surface exists there. But the configuration is standing, and the moment one appears the risk materialises without any code change. Reporting it as High with a demonstrated/possible split is the honest treatment.
Assessment scope. Three high-severity findings in two days across 25 hosts, with inference spending of roughly $20. The efficiency came from focus: one orchestrator, one wave, 25 hostnames, and a report that was assembled from recorded evidence without re-testing.
Recommended sequence
| Priority | Action | Why first | Effort |
|---|---|---|---|
| 1 | Require authentication on the portfolio and withdrawal-encoding methods | $3.7M of customer data readable anonymously | Low |
| 1 | Remove the public debug method from the routing table | The forging primitive is the more dangerous of the two public methods | Very low |
| 2 | Apply object-level authorisation to every method taking an account identifier | Prevents recurrence on untested methods | Medium |
| 2 | Set an explicit CORS allowlist on the identity vanity host | Removes the standing cross-origin risk | Low |
| 2 | Add an automated regression test for unauthenticated cross-account reads | Prevents the class from recurring | Low |
| 3 | Require authentication on the treasury transaction service read path | Governance transparency should be a documented choice | Low |
| 3 | Add Vary: Origin to all CORS-varying responses | Prevents cache poisoning of CORS state | Very low |
| 3 | Add rate limiting to the anonymous token mint | 31 tokens in a burst, no limit | Low |
| 4 | Handle the unhandled duration parameter on the fees endpoint | 500 on an unhandled branch | Trivial |
| 4 | Deploy the on-chain action manager only alongside the API fix | The deployment-state control can change independently | Coordination |
Notices
Authorization
This was an authorized security assessment conducted under a written engagement agreement covering the production estate. All testing was confined to the authorized domain.
Read-only discipline was applied throughout. The 200-identifier sweep was paced at one request per second. No withdrawal was executed on-chain. No transaction was submitted to the governance queue. Three transactions were submitted to the multisig write path as sanctioned probes and all were refused; the queue state was verified unchanged before and after. No bulk data was downloaded — the sweep captured per- account responses individually, and the aggregate value was computed from those captures rather than from a bulk export.
Redaction
Every hostname, IP address, credential, identifier, and service 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
- All IP addresses, network ranges, and hosting provider identities
- All wallet addresses, contract addresses, and cryptographic material
- Organisation and brand identifiers, including the platform and its identity provider
- Third-party vendor names, including the wallet-infrastructure provider and the framework vendor
- The framework vulnerability identifiers matched to the build
- Endpoint paths, method names, and parameter names
- Individual account identifiers, values, asset names, and position details
- Governance multisig addresses, owner addresses, and transaction hashes
- The specific dollar values of individual accounts
- Exact calendar dates and clock times — replaced with cycle and relative-day numbering
- The specific subaccount identifier range and per-account hit counts
What was kept, deliberately: vulnerability classes and CWE identifiers, MITRE technique identifiers, CVSS vectors with written rationale, the response-shape descriptions that make the findings actionable, the methodological sequence (especially the valid-signature refusal), and the aggregate portfolio value as a range rather than a point estimate. These are transferable and identify nobody.
Placeholders used throughout:
| Placeholder | Meaning |
|---|---|
platform.example | Derivatives platform domain and subdomain fleet |
api.platform.example | Trading API host |
app.platform.example | Trading application host |
identity.platform.example | Identity-provider vanity host |
treasury.platform.example | Multisig transaction service |
chain.platform.example | L2 blockchain infrastructure |
<redacted> | Any address, key, hash, identifier, or value |
Data handling
No customer data is reproduced. Portfolio values are reported as an aggregate range across the sweep — never by account, identifier, or position. The two largest individual accounts are described by portfolio class (options, multi-asset) and approximate value, not by identifier or content. No wallet address, multisig address, or transaction hash appears. The sanitized proof excerpt shows the response structure with all values truncated.
Disclaimer
Findings reflect the state of the tested systems during the two-day engagement window. Security posture changes; a finding here does not imply the condition persists today, and remediation status is not asserted.
The withdrawal execution was blocked by three independent controls, and one of them is a deployment- state control that can change independently of the application. The finding is rated High because the oracle and the portfolio disclosure together create a real social-engineering surface — not because funds were moved.
Coverage is bounded. 200 sequential identifiers were tested; the full identifier space was not enumerated, and the feasibility of doing so follows from the observed hit rate and documented rate header rather than from execution. The identity host's bounding sweep covered 10 read-only routes selected from the recovered specification; untested routes may behave either way.
Methodology and tooling by BlackBit. Findings evidence-backed with sanitized proof excerpts; the valid-signature refusal documented as a stronger negative than malformed-payload testing. Published with the client's permission.