Skip to content

Case study · Web3

On-Chain Automated Liquidity, Borrowing, and Leverage Protocol

A managed Solana JSON-RPC proxy with a client-embedded API key permitted unauthenticated enumeration of 597,426 lending accounts and transaction simulation alongside client-side staging switches, while a five-track audit refuted a wallet-drain critical.

Findings · 5
2 High2 Medium1 Low
FindingVulnerabilitySeverity
3.1Unauthenticated Solana JSON-RPC proxy with path-embedded key, wildcard CORS, and simulateTransactionAn unauthenticated caller using the client-visible URL path could execute getHealth, getVersion, getSlot, getEpochInfo, getAccountInfo, getProgramAccounts, getBalance, getLatestBlockhash, and simulateTransaction.High
3.2URL query-parameter feature-flag overrides exposing live mainnet staging programs and safety togglesThe production web application reads feature flags from a client-side store that checks window.location.search before falling back to build-time defaults.High
3.3Embedded third-party credentials in client JS and localStorage wallet-encryption keypair (CWE-798)CWE-798Multiple third-party keys ship inside the static JavaScript bundles, and the embedded browser-wallet SDK persists its session-encryption keypair and shared secret in plaintext inside localStorage.Medium
Missing edge WAF and root transport-security headers0/23 canonical payloads (SQLi, XSS, traversal, command injection across 5 encodings) blocked — all reached the static object-storage origin unfiltered…Medium
Full REST and unsigned-transaction builder catalog exposed via public machine-readable docs/docs/llms.txt and /docs/skill.md expose complete definitions for ~60 REST endpoints, unauthenticated portfolio reads (GET /portfolio/{pubkey}), and unsigned-transaction builder routes — accelerating reconnaissance of the secondary API estate.Low

Executive summary

What we were asked to do

An on-chain DeFi protocol operating lending markets, institutional vaults, automated concentrated-liquidity strategies, and token rewards on Solana asked us to assess its public estate. The surface spans a static single-page web application, a managed Solana JSON-RPC proxy, a hosted feature-flag service, and eleven on-chain programs deployed on Solana mainnet.

The engagement uncovered an unauthenticated RPC proxy with a path-embedded API key and client-side URL overrides that switch production browsers onto live staging contracts — and just as importantly, it systematically refuted an apparent critical wallet-drain finding that turned out to be an encryption session keypair with zero on-chain footprint.

Principal findings

A managed Solana JSON-RPC proxy answered unauthenticated requests using an API key embedded in the client JavaScript URL path, with wildcard cross-origin access, no rate limiting, and `simulateTransaction` enabled. That single credential allowed full enumeration of 597,426 lending program accounts and multi-kilobyte institutional vault states, though the proxy strictly blocked sendRawTransaction, keeping it read-and-simulate only. Separately, the production single-page application parsed URL query parameters before build-time defaults, allowing any unauthenticated visitor to switch the live UI onto executable mainnet staging programs or toggle sensitive client-side safety and admin flags. The headline refutation: a plaintext keypair discovered in browser `localStorage` initially looked like a critical hot-wallet compromise, but cryptographic derivation and a server-side memcmp sweep across all eleven mainnet programs proved it was a Curve25519 transport-encryption session key — not an Ed25519 transaction signer — with zero balance and zero protocol authority.

What this means in plain terms

Three things leadership should take from this.

  • Your paid RPC proxy was open to the entire internet for bulk state reads and transaction simulation. Because the API key sat in the client URL path with wildcard CORS and no rate limiting, any third-party site or automated actor could enumerate every lending obligation, reserve, and vault state or run free simulations on your infrastructure. The saving grace is that transaction broadcast was disabled at the proxy edge.
  • Any user could flip the production interface onto live staging contracts via the URL bar. Query parameters overrode build-time defaults, switching the app to executable mainnet staging programs and exposing client-side admin and wallet-assertion bypass toggles. On-chain signer checks still protect funds, but shipping staging switches in production creates unnecessary operational and phishing risk.
  • The scariest-looking discovery — a "leaked hot-wallet keypair" in `localStorage` — was not a fund-drain path, and proving that took five dedicated audit tracks. Confusing an ephemeral session-encryption key for an on-chain signing key is a classic Web3 triage trap. Verifying key derivation and running a full account-authority sweep saved engineering from an emergency key-rotation panic while still identifying a clean client-side secret-hygiene fix.

The five things that need a decision, not a patch

#What is wrongBusiness impactWho decides
1Managed Solana JSON-RPC proxy exposes a path-embedded key with wildcard CORS, simulateTransaction, and no rate limitingAny external caller can enumerate 597,426 lending accounts and run transaction simulations against your quota. Restricting origins, moving keys server-side, or introducing session-bound RPC access affects frontend architecture and provider billing.Platform + protocol engineering
2Production SPA lets URL query parameters switch to live mainnet staging programs and toggle admin/guard flagsStaging contracts are deployed and executable on mainnet. Whether staging deployments should remain live on mainnet and whether debug flags belong in production bundles is a release-governance call.Release + protocol engineering
3Third-party API keys ship in client JS bundles and an embedded-wallet SDK persists its session keypair in localStorageExposes an IP-geofencing API key and custody-adapter identifier to any visitor, and leaves wallet-connect encryption state in durable browser storage. Removing or proxying client keys requires vendor and UX tradeoffs.Frontend + security
4Root web application has no WAF and omits HSTS and Permissions-Policy headersAll 23 probe payloads reached the static object-storage origin unfiltered. Static hosting limits server-side impact, so deciding whether to pay for edge WAF and bot protection is a risk-appetite decision.Infrastructure + security
5Institutional vaults holding multi-billion-dollar AUM use a single EOA vault manager behind a multisig governance proxyNot a vulnerability — the action is co-gated by an operations controller signer — but concentrating institutional vault management on one EOA warrants formal confirmation of hardware/MPC custody and co-signature invariants.Protocol governance + risk

What we did not get

No funds moved. No user obligation, vault share, or reward pool was drained. No transaction was broadcast to Solana mainnet. No feature-flag control plane was breached.

Every wallet-drain hypothesis across the lending, vault, rewards, keypair-reuse, and client transaction-builder tracks was either refuted by on-chain and bundle evidence or held cleanly behind three independent write-side gates (read-only RPC proxy, absent broadcast authorization, and missing Solana broadcast executor).

Engagement outcome

An authorized external security assessment of a Solana DeFi protocol identified an unauthenticated read-only JSON-RPC proxy with a client-exposed key, URL-driven client feature flags capable of targeting live staging contracts, and embedded client-side third-party keys. Five independent on-chain and transaction-builder audits confirmed that no user funds were at risk, no wallet-drain path existed, and an initial browser-storage keypair alert was an unfunded session-encryption key with zero on-chain authority. All findings were disclosed privately with prioritised engineering and governance remediation guidance.


1. The engagement in numbers

MetricValue
Root workstreams1
Total Swarm Size15
Subdomains discovered (CT logs)48 (15 resolving in-scope; 0 takeover candidates)
Unique endpoints crawled129 (518 input vectors, 2,038 network requests)
Out-of-scope REST API endpoints observed~60 (denied at domain boundary)
On-chain Solana programs verified11 (6 core, 1 main, 2 live staging, 2 oracle feeds)
Lending accounts enumerated via RPC597,426
Confirmed findings5 (2 high, 2 medium, 1 low)
Refuted attack hypotheses6 (across 5 dedicated wallet-drain/audit tracks + edge/flag checks)
Blocked / unverified tracks3 (write-side drain, custom resource URL override, out-of-scope API)
On-chain state mutations / transactions sent0 (strictly read-only assessment)

The final row is deliberate. Every on-chain verification used read-only JSON-RPC queries (getProgramAccounts, getAccountInfo, getBalance, getTokenAccountsByOwner, getSignaturesForAddress) plus one malformed-payload capability probe on simulateTransaction. Zero transactions were signed or broadcast.

Agent topology

RoleSessionsResponsibility
Orchestrator (blackbit)1Engagement plan, wave coordination, cycle-2 re-verification, final reporting
Recon (blackbit-recon)8Passive OSINT, DNS/takeover, live SPA crawl, WAF/CDN profiling, Web3 mapping, tooling gate check
Exploit / Audit (blackbit-hunter)5Lending authority sweep, vault state audit, farm withdrawal audit, keypair reuse sweep, tx-builder tamper analysis
Synthesis (general)1Cross-wave wallet-drain merge and proof-bar adjudication
Fig 01 · Agent topology
Fig 01 · Agent topology

2. What held

Five independent defensive boundaries held under active testing.

  • On-chain program authority and signer invariants held across all eleven programs. Lending obligations enforce the obligation owner signer at offset 8 across all 597,426 accounts; institutional vault share mints are program PDAs with no external mint authority; vault config mutations route through a multisig governance proxy requiring two distinct trusted signers; reward emissions and unstakes bind strictly to the stake owner and farm-side emission authority.
  • The RPC proxy's read-only broadcast boundary held. Although the leaked API key allowed full state enumeration and transaction simulation, sendRawTransaction, getLargestAccounts, and getStakeActivation were blocked at the proxy (Method not found / restricted).
  • The client transaction builder and wallet-adapter signing boundary held. No client-side Solana signing keypair exists in the application bundles. Withdraw and borrow builders bind owner as a required signer, derive destination Associated Token Accounts (ATAs) from the connected wallet, lock the fee payer to the connected wallet, omit client-supplied LTV fields from signed payloads, and delegate signing exclusively to external wallet adapters.
  • The hosted feature-flag control plane enforced authentication and RBAC. Cross-origin probes against the flag backend at flags.soldefi.example returned 401 Unauthorized on initialization and 403 RBAC: access denied on project gate routes; replaying embedded client API keys as server secrets was rejected.
  • DNS hygiene and CDN cache isolation held. All 48 discovered subdomains resolved cleanly or returned NXDOMAIN with zero dangling CNAME takeover candidates. Fourteen of fifteen cacheable CDN paths showed zero unkeyed-header reflections (X-Forwarded-Host, X-Original-URL).
Fig 02 · 2. What held
Fig 02 · 2. What held

The refutation: a "leaked hot-wallet keypair" that could not sign a single transaction

This is the centerpiece lesson of the engagement. Early reconnaissance found a plaintext base58 secret key and public key persisted in browser localStorage under an embedded wallet adapter key. On a DeFi protocol managing multi-billion-dollar vaults and nearly 600,000 lending accounts, a leaked browser-side keypair immediately raises a Critical wallet-drain hypothesis.

Rather than reporting it at face value, five parallel hunter tracks tested every path by which that keypair — or any client-side tamper — could move funds. Three layers of evidence decisively refuted it:

  1. Cryptographic type mismatch. Deriving an Ed25519 public key from the stored 32-byte secret produced a completely different address than the declared public key in localStorage. Static bundle analysis explained why: the embedded wallet SDK generates a nacl.box (Curve25519 crypto_box) ephemeral keypair to encrypt deep-link wallet-connect payloads. It is a transport-encryption key, not an Ed25519 Solana transaction signer.
  2. Zero on-chain presence for both keys. Both the declared public key and the Ed25519-derived address were queried on Solana mainnet: getAccountInfo returned null, getBalance returned 0, getSignaturesForAddress returned [], and getTokenAccountsByOwner across both SPL Token and Token-2022 returned [].
  3. Exhaustive server-side authority sweep with positive-control validation. An initial hex-encoded memcmp sweep silently failed with an RPC Base58DecodeError and was discarded. Re-running with base58-encoded memcmp filters — first calibrated against a known live pubkey that returned 22,706 matching accounts — swept offsets 0 through 384 (including the verified offset-8 Obligation owner field) for both candidate keys across all eleven production and staging programs. Every single query returned [].
Fig 03 · The refutation: a "leaked hot-wallet keypair" that could not sign a single transaction
Fig 03 · The refutation: a "leaked hot-wallet keypair" that could not sign a single transaction

Parallel audits of the institutional vault accounts (62,552-byte state structs), reward farm states (920-byte structs), and client-side transaction builders confirmed the same result: the leaked keypair appears nowhere in vault or farm authority cells, and client-built withdraw/borrow instructions cannot be retargeted without the real wallet adapter's signature.


3. The findings that mattered

How the estate was mapped

Fig 04 · How the estate was mapped
Fig 04 · How the estate was mapped

3.1 Unauthenticated Solana JSON-RPC proxy with path-embedded key, wildcard CORS, and simulateTransactionHigh

In plain terms. The web application connects to a dedicated Solana JSON-RPC proxy whose paid API key is baked straight into the client-side URL path. The proxy allows cross-origin requests from any website (Access-Control-Allow-Origin: *), enforces no per-IP rate limiting, and permits simulateTransaction in addition to full program-account enumeration.

Initially triaged as critical during reconnaissance, the finding is honestly calibrated as High because the proxy is read-only: sendRawTransaction returns Method not found, preventing direct transaction broadcast through the leaked key.

What. An unauthenticated caller using the client-visible URL path could execute getHealth, getVersion, getSlot, getEpochInfo, getAccountInfo, getProgramAccounts, getBalance, getLatestBlockhash, and simulateTransaction. Five rapid getSlot calls succeeded with no throttling. getProgramAccounts against the lending program enumerated 597,426 live accounts (reserves, markets, and user obligations), and getAccountInfo retrieved full 62,552-byte and 85,145-byte institutional vault state accounts. Re-verification in Cycle 2 confirmed the credential remained active with identical wildcard CORS behavior.

How we found it. By extracting the RPC URL from the 5.6 MB client JavaScript bundles served by soldefi.example and systematically probing both read methods and write/privileged methods (sendRawTransaction, getLargestAccounts, getStakeActivation) to establish the exact capability boundary.

Root cause. Placing a paid provider API key in a public frontend URL path without origin enforcement, session binding, method allowlisting (specifically restricting expensive getProgramAccounts scans and simulateTransaction), or rate limiting.

Fig 05 · 3.1 Unauthenticated Solana JSON-RPC proxy with path-embedded key, wildcard CORS, and `simulateTransaction`
Fig 05 · 3.1 Unauthenticated Solana JSON-RPC proxy with path-embedded key, wildcard CORS, and `simulateTransaction`

Impact. Quota exhaustion and billing abuse on the protocol's managed RPC infrastructure; zero-cost cross-origin state scraping from malicious websites; and free mainnet simulateTransaction access usable for MEV extraction or off-chain exploit prototyping against live lending and vault state.

Fix. Rotate the exposed RPC key immediately. Proxy browser RPC traffic through a backend or edge worker that enforces strict origin allowlisting (never *), per-IP/per-session rate limits, and a minimal JSON-RPC method allowlist tailored to frontend needs — blocking unrestricted getProgramAccounts sweeps and unauthenticated simulateTransaction calls.


3.2 URL query-parameter feature-flag overrides exposing live mainnet staging programs and safety togglesHigh

In plain terms. The production web application reads feature flags from a client-side store that checks window.location.search before falling back to build-time defaults. Any visitor can append query parameters to the production URL to redirect the interface onto live staging smart contracts deployed on mainnet, enable client-side admin UI surfaces, or disable frontend safety assertions.

What. Static analysis of the production bundle revealed two linked mechanisms:

  1. Staging environment switching. The client selects staging program IDs whenever the hostname matches staging.soldefi.example or the URL query string contains a staging-program flag (?STAGING_PROGRAM=1). Mainnet RPC verification confirmed that both the staging lending program and staging vault program are currently deployed and executable BPF programs on Solana mainnet (a devnet vault target was uninitialized).
  2. Arbitrary boolean flag overrides. A helper function checks URLSearchParams.has(flag) before reading build-time environment values, coercing true or an empty value to true. Exposed flags include a global-admin management UI toggle, an obligation wallet-assertion bypass flag, an account-setup skip flag, deposit-disable overrides, and a flash-liquidity control toggle.
  3. Unverified config-redirection candidate. The same URL parameter parser also reads a custom static-resource URL override parameter (CUSTOM_RESOURCES_URL pattern) designed to redirect CDN config loading. Because its runtime validation and payload execution were not proven dynamically, that sub-vector is reported honestly as unverified / pending.

How we found it. By inspecting the feature-flag store and URLSearchParams call sites in the production bundle, then querying the extracted staging program IDs directly against Solana mainnet to confirm they were live executable deployments rather than dead placeholders.

Root cause. Shipping development and QA URL-override hooks inside the production frontend build, paired with leaving staging contracts executable on mainnet without isolating staging UIs behind authentication.

Fig 06 · 3.2 URL query-parameter feature-flag overrides exposing live mainnet staging programs and safety toggles
Fig 06 · 3.2 URL query-parameter feature-flag overrides exposing live mainnet staging programs and safety toggles

Impact. Client-side flags cannot bypass on-chain Solana program signer checks, so they do not yield a direct server-side or contract-level takeover on their own. However, they allow crafted phishing links to steer users into signing transactions against less-hardened live staging contracts on mainnet, bypass client-side obligation safety checks, or expose internal management workflows.

Fix. Strip URL query-parameter feature-flag overrides from production builds at compile time. Restrict staging.soldefi.example behind authentication or VPN access, deprecate or close unused executable staging programs on mainnet, and remove arbitrary resource-URL overrides from production bundles.


3.3 Embedded third-party credentials in client JS and localStorage wallet-encryption keypair (CWE-798)Medium

In plain terms. Multiple third-party keys ship inside the static JavaScript bundles, and the embedded browser-wallet SDK persists its session-encryption keypair and shared secret in plaintext inside localStorage.

What. Two distinct client-side secret-hygiene issues were verified:

  1. Third-party keys in production bundles. Static analysis recovered an IP geolocation/geofencing API key (VITE_APP_* build variable), an institutional custody-adapter API key, error-tracking DSNs, and both production and staging feature-flag client SDK keys. While client SDK keys and telemetry DSNs are public by design, exposing the IP-geofencing API key allows quota abuse or direct interrogation of geofencing behavior.
  2. Plaintext `localStorage` persistence of embedded-wallet encryption material (`CWE-798`). The client's state store explicitly serializes {session, keypair} for the embedded wallet adapter into localStorage. As proven in Section 2, this is a Curve25519 nacl.box keypair with zero on-chain signing authority — not a fund-drain primitive — but persisting it in durable browser storage means any same-origin XSS or local browser compromise could decrypt a captured deep-link connect payload and recover the user's wallet session identifier and shared secret.

How we found it. By extracting live browser storage during the SPA crawl, auditing the Zustand store's partialize persistence configuration in the JavaScript bundles, and verifying key behavior against both the feature-flag backend and Solana mainnet.

Root cause. Using client-exposed build environment variables (VITE_APP_*) for non-public third-party API keys, and persisting ephemeral wallet-connect encryption keys to durable localStorage instead of non-extractable in-memory session state.

Fig 07 · 3.3 Embedded third-party credentials in client JS and `localStorage` wallet-encryption keypair (`CWE-798`)
Fig 07 · 3.3 Embedded third-party credentials in client JS and `localStorage` wallet-encryption keypair (`CWE-798`)

Impact. Third-party API quota abuse, geofencing logic exposure, and unnecessary persistence of wallet-connect session encryption secrets at rest in browser storage. No direct on-chain financial loss.

Fix. Move IP geolocation and geofencing checks behind a server-side endpoint so the API key never ships to browsers. Audit and restrict the custody-adapter key to public-safe scopes. Remove localStorage persistence for embedded-wallet encryption keypairs; keep ephemeral nacl.box keys strictly in memory and expire sessions on tab close.


Also confirmed

FindingSeverityContent
Missing edge WAF and root transport-security headersMedium0/23 canonical payloads (SQLi, XSS, traversal, command injection across 5 encodings) blocked — all reached the static object-storage origin unfiltered; root SPA omits HSTS and Permissions-Policy (though the docs host sets HSTS). Static origin limits immediate exploitability.
Full REST and unsigned-transaction builder catalog exposed via public machine-readable docsLow/docs/llms.txt and /docs/skill.md expose complete definitions for ~60 REST endpoints, unauthenticated portfolio reads (GET /portfolio/{pubkey}), and unsigned-transaction builder routes — accelerating reconnaissance of the secondary API estate.

Blocked and unverified hypotheses

For forensic completeness, three hypotheses were not proven and are not counted as confirmed findings:

HypothesisStatusReason
Write-side wallet drain / approval abuse / oracle-triggered liquidationHard-blocked (unverified)Three combined gates: (1) Solana drain executor tools absent from the assessment toolbox, (2) no signed live-broadcast authorization artifact (integration-tier-approved.json absent; fail-closed), and (3) sendRawTransaction disabled on the read-only RPC proxy.
Custom static-resource URL override (CUSTOM_RESOURCES_URL) supply-chain redirectionUnverified / pendingParameter read confirmed in static JS analysis, but validation logic and dynamic cross-origin config injection were not executed end-to-end.
Secondary REST API estate (~60 endpoints on api.soldefi.example / sibling domain)Out of scopeDenied at the engagement domain boundary; observed passively in client JS bundles and documentation only.

4. Kill chain summary

Fig 08 · 4. Kill chain summary
Fig 08 · 4. Kill chain summary
ChainReachedTerminated atData / impact obtained
Managed RPC proxy abuseStage 5 (collection / simulation)Read-only proxy (sendRawTransaction blocked)597,426 lending accounts enumerated; vault state read; simulateTransaction confirmed
URL feature-flag & staging switchStage 4 (exploit / client control)On-chain signer invariantsLive mainnet staging programs verified executable; admin/guard UI toggles confirmed
Embedded JS keys & localStorage secretStage 5 (credential access)Non-signing key / 401-403 flag RBACThird-party client keys + Curve25519 session keypair; zero on-chain authority
Wallet-drain across lending / vaults / farms / tx builderStage 3 (verification)Refuted by derivation, base58 memcmp, and bundle analysisNone (0 SOL, 0 token accounts, 0 authority matches)
Write-side on-chain drain / broadcastStage 2 (weaponize)Hard-blocked (toolbox + signed auth + read-only RPC)None (unverified)

5. What the shape of this engagement teaches

In Web3 assessments, a "leaked keypair" in browser storage is a hypothesis, not a finding. Embedded wallet SDKs routinely use Curve25519 (nacl.box) keypairs to encrypt deep-link transport payloads. Always check Ed25519 key derivation against the declared public key and run a positive-control-validated on-chain authority sweep before escalating a browser secret into a fund-loss critical.

Silent RPC filter failures create false negatives and false positives alike. An initial hex-encoded memcmp sweep returned empty results due to a silent Base58DecodeError rather than genuine absence. Calibrating the exact getProgramAccounts filter against a known live public key (22,706 hits) turned an unreliable check into an authoritative proof across 597,426 accounts.

Read-only RPC proxies still leak operational and economic advantage when left unauthenticated. Blocking sendRawTransaction stops direct broadcast, which is essential — but leaving a path-embedded API key open with wildcard CORS, zero rate limiting, and simulateTransaction still hands external actors full protocol visibility and free simulation capacity on the operator's bill.

Development query-parameter switches do not belong in production DeFi bundles. Even when on-chain programs enforce strict signer checks, URL-driven switches that point production browsers at live mainnet staging contracts or disable client-side safety assertions create an avoidable phishing and user-confusion surface.

Hard-blocked tracks must stay unverified, never padded into findings or false assurances. Because write-side Solana broadcast was blocked by tooling, authorization, and the read-only RPC proxy, this report draws a crisp line between what was refuted (five read/static wallet-drain vectors) and what was untested (live write-side broadcast and the out-of-scope secondary API).

PriorityActionWhy firstEffort
1Rotate the exposed RPC API key, restrict CORS away from *, add rate limiting, and disable unauthenticated simulateTransaction / bulk getProgramAccountsStops immediate quota abuse, third-party origin scraping, and free exploit/MEV simulationLow
1Strip URL query-parameter feature-flag overrides (STAGING_PROGRAM, admin/guard toggles, custom resource URL) from production buildsEliminates phishing links targeting live mainnet staging contracts and client guard bypassesLow
2Restrict staging.soldefi.example behind auth/VPN and audit whether mainnet staging programs need to remain live and executableShrinks staging attack surface on mainnetMedium
2Move IP geolocation/geofencing checks server-side and stop persisting embedded-wallet nacl.box keypairs in localStorageRemoves third-party API key exposure and closes CWE-798 session-secret persistenceLow
3Verify hardware/MPC custody and co-signature invariants for the single-EOA institutional vault manager behind the multisig governance proxyStrengthens governance assurance for multi-billion-dollar vault AUMGovernance
3Add HSTS and Permissions-Policy on the root SPA CDN distribution and evaluate edge WAF/bot rulesBrings root SPA header posture in line with the docs host and adds edge telemetryLow
4Authorize a follow-up engagement scoped to the secondary REST API (api.soldefi.example) and an authenticated Solana write-side test harnessCloses the two coverage boundaries intentionally excluded in this engagementScoped

Notices

Authorization

This was an authorized security assessment conducted under a written engagement agreement. All testing was confined strictly to soldefi.example, its resolving in-scope subdomains, and read-only queries against the protocol's mainnet programs via the in-scope RPC proxy.

Read-only discipline was maintained throughout: zero Solana transactions were signed or broadcast, zero on-chain state was modified, and no out-of-scope sibling API domains were probed. When write-side Solana broadcast requirements exceeded the authorized scope and toolbox, those tracks failed closed and were documented as hard-blocked rather than bypassed.

Redaction

Every hostname, program address, wallet address, API key, transaction signature, build hash, and vendor identifier in this document has been replaced with a placeholder or generalised.

What was removed:

  • All real domains, subdomains, regional edge aliases, and sibling API domain names
  • All Solana program IDs, vault/farm/obligation account addresses, and oracle feed addresses
  • All wallet public keys, base58 secret keys, and Ed25519-derived addresses
  • All third-party API keys, RPC tokens, SDK keys, project IDs, DSNs, ETags, and release hashes
  • All transaction signatures, slot numbers, genesis hashes, and exact institutional AUM figures
  • Organisation, protocol, token, and module brand names
  • Third-party infrastructure, RPC, wallet SDK, feature-flag, custody, CDN, and documentation vendor names
  • Exact calendar dates and clock times

What was kept, deliberately: vulnerability classes and CWE identifiers (CWE-798), JSON-RPC method names and HTTP status codes, Solana structural mechanics (offset-8 memcmp, PDA vs EOA, SPL/Token-2022, nacl.box Curve25519 vs Ed25519), the full refutation sequence including the positive-control validation (22,706 accounts), and aggregate estate counts (15 sessions, 48 subdomains, 129 endpoints, 597,426 lending accounts, 23 WAF probes). These are technically transferable and identify nobody.

Placeholders used throughout:

PlaceholderMeaning
soldefi.examplePrimary protocol web domain and static SPA
app.soldefi.exampleApplication frontend placeholder
rpc.soldefi.exampleManaged Solana JSON-RPC proxy endpoint
staging.soldefi.exampleStaging frontend hostname
flags.soldefi.exampleHosted feature-flag backend service
cdn.soldefi.exampleStatic configuration and asset CDN host
api.soldefi.exampleOut-of-scope secondary REST API surface
<redacted>Any key, address, program ID, signature, or vendor identifier

Data handling

No individual user position, borrower obligation, wallet address, transaction signature, or raw account payload is reproduced. On-chain exposure is reported strictly by aggregate account counts, byte sizes, and structural field offsets. No live secret or API token appears in this document.

Disclaimer

Findings reflect the state of the tested systems during the engagement window. Security posture changes; a finding here does not imply the condition persists today.

The browser `localStorage` keypair alert and five wallet-drain hypotheses are reported as refuted, not as vulnerabilities. That determination rests on Ed25519 key derivation, bundle static analysis, and positive-control-validated base58 memcmp sweeps across all eleven mainnet programs.

Write-side on-chain drain chains and the custom resource-URL override remain unverified. Neither is promoted to a confirmed finding, nor should their absence from confirmed findings be read as a negative proof for unexecuted write-side code paths.


Methodology and tooling by BlackBit. An apparent critical wallet-drain keypair refuted through key derivation and a positive-control-validated sweep of 597,426 accounts; read-only RPC exposure and staging feature-flag overrides documented with strict proof-bar discipline. Published with the client's permission.

More in Web3

← All case studies