Skip to content

Case study · Web3

Decentralised Stablecoin and Institutional Yield Protocol

Two waves proved blind signing of arbitrary EVM swap calldata with unlimited approvals on a mainnet fork, unauthenticated BOLA leaking airdrop Merkle proofs and signatures, a world-listable audit bucket, and a 261× proof-of-reserves contradiction.

Findings · 10
2 Critical4 High2 Medium2 Low
FindingVulnerabilitySeverity
3.1Blind-signing of EVM swap calldata, MaxUint256 approval inflation, and recipient substitutionCWE-345, CWE-20The protocol's cross-chain swap page asks a third-party routing API for a swap quote and hands the returned contract address, raw calldata, and token-approval spender straight to the user's wallet to sign…Critical
3.2Unauthenticated BOLA exposing airdrop allocations, Merkle proofs, and claim signaturesCWE-639Wave 1's airdrop probes stalled because the claim front end returned HTTP 500 behind a passcode gate.Critical
3.3World-listable production cloud storage bucket leaking unreleased audit PDFsCWE-200, CWE-284GET https://assets.protocol.example/ returned HTTP 200 with an anonymous XML ListBucketResult enumerating every object in the production bucket (CWE-200, CWE-284).High
3.4Direct-to-origin CDN bypass on solvency attestation APICWE-284, CWE-200The solvency attestation API sat behind a CDN, but its cloud origin IP was reachable directly on port 443.High
3.5Persistent 261× Proof-of-Reserves contradiction hidden from the UICWE-636GET https://app.protocol.example/api/protocol/por persistently returned {"porReport": {"healthy": false, "totalBacking": ~2000007.63, "custodiansVerified": []}} across every cache state (MISS, HIT, EXPIRED…Medium
WALLET-DRAIN-01: Unlimited MaxUint256 approval to unchecked API spenderDistinct exploitable approval-inflation facet of 3.1; proven live on mainnet fork (allowance = 2^256 - 1, followed by transferFrom drain)High
WALLET-DRAIN-02: Unchecked swap recipient substitutionDistinct recipient-mismatch facet of 3.1; live quote A/B confirmed toAddress mutates signed bridge calldata (first diff byte 101) with zero UI/client verificationHigh
Governance divergence: single-key upgrade authorities vs public claimsLive on-chain reads across the ~$666M estate showed single-key program upgrade authorities (including a never-funded yield-vault upgrade keypair) contradicting public "non-upgradeable" / disclosed-signer marketing (trust-model/governance finding…Medium
Permissive Access-Control-Allow-Origin: * on attestation APIPublic solvency data served with wildcard CORS (read-only public data; low standalone impact)Low
X-Forwarded-For geo-check trust & CDN TTL overrun (age: 715s vs 60s)Geo-restriction header trust on API gateway and stale CDN caching delaying reserve-status updatesLow

Executive summary

What we were asked to do

A decentralised stablecoin and institutional yield protocol — with roughly $666M in live on-chain token supply across its dollar-pegged stablecoin (<stablecoin>), yield-bearing receipt token (<yield-token>), and fixed-supply governance token (<gov-token>) — was assessed across two combined waves totalling 108 agent sessions. Wave 1 (79 sessions) combined deep web/cloud recon, on-chain binary reverse-engineering, EVM swap-widget replay, and a formal QA audit pass. Wave 2 (29 sessions, including a dedicated financial-impact fork) re-verified the EVM wallet-drain call-sites, cracked the airdrop allocation surface that had stalled in Wave 1, proved a direct-to-origin CDN bypass, and measured actual on-chain standing exposure instead of letting synthetic test-fork numbers speak for real user funds.

Principal findings

Four independent impact classes were proven across the two waves, led by two Criticals. First, the dApp's cross-chain swap widget blind-signed raw EVM `transactionRequest` payloads and unchecked `approvalAddress` spenders returned by its third-party routing API, requesting unlimited MaxUint256 approvals where bounded amounts sufficed and never verifying the signed calldata recipient against user intent. Replaying real production quotes through a local MITM proxy onto an isolated mainnet fork drained test victims from 1,000,000 → 0 (Wave 1) and 1e9 → 4.99e8 (Wave 2), while a patched-consumer control rejected both tampered responses — proving the flaw is the dApp's missing validation. Second, Wave 2 uncovered an unauthenticated BOLA on the third-party allocation-claim SaaS `/allocations` endpoint, returning exact Season-1 airdrop amounts, full 14-entry Merkle proofs, and per-recipient claim signatures for 10 of 10 sampled real on-chain recipients (20 allocation rows) with zero auth and an ignored signature field. Third, a world-listable production cloud storage bucket served an anonymous XML object listing and allowed unauthenticated download of two full third-party smart-contract audit PDFs (28.6 MB and 13.1 MB), persisting unchanged on re-test. Fourth, direct connection to a cloud origin IP bypassed CDN WAF and rate limits to serve ~$509M solvency and hardware-enclave attestation data unauthenticated, while the dApp's own proof-of-reserves API persistently returned `healthy: false` with `~$2.0M` backing and empty verified custodians — a 261× contradiction against ~$523M–$525M live supply/reserves that the UI fetched but never rendered. Equally vital: every L1 on-chain drain track held — live binary disassembly refuted an apparent unsigned authority-transfer vulnerability, and a live on-chain check in Wave 2 honestly established that synthetic fork balances are not stolen value and that sampled wallets currently held $0.00 in standing allowances.

What this means in plain terms

Four things a board should take from this.

  • Your core L1 smart contracts held — the real exposures live in the web client, cloud bucket, and third-party integrations. Reversing the deployed on-chain binaries proved authority transfers use a safe two-step propose-and-accept handshake, the institutional staking vault passed all five drain classes, and the governance token supply is immutable. The vulnerabilities that matter sit around the contracts, not inside them.
  • Any compromise or interception of the cross-chain quote path can drain a connecting EVM user's full approved stablecoin balance in one signature. The swap widget forwards API-supplied contract addresses, calldata, and MaxUint256 spenders straight to the user's wallet with zero allowlist, selector check, or simulation. Wave 2 verified that sampled wallets currently hold $0.00 in standing approvals, making this an unbounded conditional hazard per connecting user rather than an active ongoing drain — fixable purely in client validation logic.
  • Every airdrop recipient's exact allocation, Merkle proof, and claim signature was anonymously queryable, and two unreleased audit PDFs sat in a public bucket. Neither directly moves funds on its own (airdrop claims still require the recipient's private key on-chain), but both leak sensitive pre-disclosure and recipient-level data.
  • Your own proof-of-reserves API was quietly reporting `healthy: false` (`0.38%` backed) while your homepage advertised continuous verified solvency. Evidence pointed to a broken custodian connector falling back to a stale $2.0M figure rather than insolvency, yet because the front end never rendered the health flag and the CDN served stale responses 715s past a 60s TTL, the alarm went unseen.

The five things that need a decision, not a patch

#What is wrongBusiness impactWho decides
1The cross-chain swap widget blind-signs API-supplied transactionRequest calldata and requests MaxUint256 approvalsThird-party routing widgets trade convenience for trust. Requiring strict diamond/Permit2 allowlists, selector checks, exact-amount approvals, and pre-sign simulation is a product-security standard.Front-end + Web3 security
2The third-party airdrop SaaS exposes any wallet's allocation, Merkle proof, and claim signature without authenticationDeciding whether allocations are intentionally public or must be wallet-signature gated requires coordinating a contract/configuration change with the claim vendor.Protocol + vendor management
3A production asset bucket is world-listable and hosts full third-party audit PDFsPublic marketing assets and internal/unreleased audit artefacts should never share a single anonymously listable storage bucket.Cloud infrastructure + security
4The dApp PoR API persistently returns healthy: false ($2.0M backing vs $523M supply) while the UI hides itPublishing contradictory solvency numbers across two first-party planes creates immediate market-confidence and legal risk during volatility.Treasury + product + comms
5Public messaging claims non-upgradeable / disclosed-signer governance while live program upgrade authorities are single keys (including an unfunded yield-vault upgrade keypair)Governance transparency and multisig migration for a ~$666M token estate is a board-level custody decision, not an engineering hotfix.Executive leadership + custody

What we did not get

No mainnet user funds moved, no real wallet drained, and no on-chain protocol contract compromised. No privileged API key (x-api-key), SSH key, distributor signer keypair, or program upgrade authority key was obtained.

All four remaining crown-jewel tracks were exhausted to documented walls: the protocol API gateway rejected 15 x-api-key bypass classes; all three cloud origin nodes ran patched OpenSSH with publickey-only auth; the public GitHub organisation held zero secrets across seven repos (with a leaked staging-docs repo returning 404 private/deleted); and L1 on-chain upgrade/distributor custody keys are not recoverable externally.

Engagement outcome

A two-wave authorized security assessment of a decentralised stablecoin and institutional yield protocol identified missing client-side transaction validation and unlimited approval requests in its cross-chain swap widget, unauthenticated allocation-metadata disclosure on a third-party claim backend, a world-listable cloud asset bucket, a direct-origin CDN bypass, and a broken proof-of-reserves status feed. No real user funds were moved, live on-chain checks found zero standing approvals across sampled wallets, and core L1 smart contracts, authority-transfer controls, API-key gates, and origin SSH access were verified to hold. All findings were disclosed under a confidentiality agreement with prioritised remediation guidance.


1. The engagement in numbers

MetricValue
Assessment waves / root workstreams2 waves · 3 root workstreams (Wave 1 Prod + Wave 2 Dev + Impact Fork)
Total Swarm Size108 (79 Wave 1 + 29 Wave 2)
Mapped assets across web, cloud & on-chain22 (15 deeply tested; 7 secondary hosts explicitly flagged untouched in QA)
Confirmed findings11 (2 critical, 4 high, 3 medium, 2 low)
Refuted / clean-negative on-chain tracks3 (authority transfer, institutional vault, 25-instruction stablecoin IDL)
Airdrop allocation sample verified10 real recipients (20 allocation rows, read-only)
Live token estate valued (custody context)~$666.0M ($506.96M stablecoin, $81.20M yield, $77.87M governance)
Live EVM standing allowance measured$0.00 across 11-wallet sample (aggregate archive-RPC gated, not fabricated)
Real user funds moved$0 (all drain proofs run on isolated local mainnet forks)

Agent topology

RoleSessionsResponsibility
Recon54Two-wave estate discovery, JS bundle mining, synthesis, and Wave-1 QA audits (findings, proof, report, coverage)
Exploit42Mainnet-fork wallet-drain proofs, ELF binary disassembly, vault audit, PoR forensics, origin bypass, airdrop BOLA, live RPC valuation
Reporter3Wave-1 report authoring and QA discrepancy reconciliation
Explore3Targeted client-bundle and contract-surface extraction in Wave 2
General3Cross-wave support and triage
Orchestrator3Wave 1 orchestration, Wave 2 full-compromise wave, and Wave 2 financial-impact fork
Fig 01 · Agent topology
Fig 01 · Agent topology

2. What held

Across 108 sessions, the protocol's on-chain core and primary infrastructure authentication walls held firmly under sustained analysis.

  • Core L1 stablecoin, yield-vault, and institutional staking contracts held. The 25-instruction stablecoin program passed a 7-class drain battery; the institutional staking vault (~130 instructions recovered from client bundles and verified against the live 1.5 MB deployed binary, with 79 live queue entries) passed all five drain classes (share inflation designed out via NAV pricing, async settlement queue preventing flash deposit/withdraw, bytecode timelock and oracle-staleness guards confirmed). Live mint inspection confirmed the governance token is immutable (mintAuthority: null, freezeAuthority: null) and core protocol mints are program/PDA-owned.
  • API gateway authentication and wallet-auth session controls held. Fifteen x-api-key bypass classes failed against the protocol API gateway; 100+ BOLA probes on the dApp's own routes were strictly session-scoped; Sign-In-With-Wallet forgery, replay, and fixation were rejected; and anonymous SQLi, SSTI, SSRF, and command-injection probes on the gateway returned clean rejections.
  • Origin infrastructure SSH and public source repositories held. All three cloud origin nodes ran patched OpenSSH enforcing publickey-only authentication with no database, container, or metrics ports exposed. Seven public organisation repositories contained only clean token metadata and standard OSS mirrors (zero secrets), and a leaked staging-documentation repository URL returned 404 to authenticated non-collaborators.
  • Public solvency verification keys were properly downgraded from an early "Critical" claim. Keys appearing in the proof-of-solvency API response were confirmed to be public cryptographic verification keys by design, not leaked secrets.
Fig 02 · 2. What held
Fig 02 · 2. What held

The refutation: an apparent unsigned on-chain authority takeover disproved by ELF disassembly

Early in Wave 1, static guesses around the stablecoin and yield-vault programs suggested an unauthenticated or unsigned authority handover — a catastrophic protocol-takeover candidate. Because no program IDL was published on-chain or in over 206 client JavaScript chunks, the ambiguity could not be resolved from source or web artefacts.

To settle it definitively, the team pulled the deployed mainnet program binaries for both the stablecoin and yield-vault programs and reversed the instruction handlers and read-only string tables directly:

  • Only one authority-typed account exists in either binary, and it is a required Signer (the current authority).
  • The proposed new authority is not an account at all — it is a Pubkey passed as instruction data (which never signs), stored into state as update_authority = Some(new_pubkey).
  • A second instruction, confirm_authority_transfer, requires the pending new authority to sign and match the stored key (Invalid authority transfer request otherwise) before the transfer finalises.

The early hypothesis had conflated the non-signing proposed key (normal in two-step handover) with the current authority. The finding was cleanly closed as reviewed_not_vulnerability.

Fig 03 · The refutation: an apparent unsigned on-chain authority takeover disproved by ELF disassembly
Fig 03 · The refutation: an apparent unsigned on-chain authority takeover disproved by ELF disassembly

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 Blind-signing of EVM swap calldata, MaxUint256 approval inflation, and recipient substitutionCritical

In plain terms. The protocol's cross-chain swap page asks a third-party routing API for a swap quote and hands the returned contract address, raw calldata, and token-approval spender straight to the user's wallet to sign — without checking whether the target is the real router, whether the calldata is actually a swap, or whether the destination address still matches what the user typed. It also requests unlimited (2^256 - 1) token approvals when an exact swap amount would suffice.

What. Three tightly coupled defects in the swap widget's client bundle (CWE-345, CWE-20), proven across both waves:

  • `WALLET-DRAIN-03` (Critical — blind calldata injection): The widget passes API-returned transactionRequest {to, data, value} directly into wallet sendTransaction with zero target-contract allowlist, zero function-selector allowlist, and zero pre-sign simulation.
  • `WALLET-DRAIN-01` (High — `MaxUint256` approval inflation & unchecked spender): The widget reads estimate.approvalAddress from the API without allowlisting it and requests an unlimited MaxUint256 ERC-20/Permit2 allowance even for a small bounded swap.
  • `WALLET-DRAIN-02` (High — recipient substitution): Live A/B captures against the production routing API confirmed caller-supplied toAddress mutates the signed bridge calldata (first byte diff at offset 101), yet the widget never verifies that the signed calldata recipient equals the user-confirmed destination. Cosmetic UI warnings (lowAddressActivity, highValueLoss) perform no enforcement.

How we found it. Wave 1 captured a live production /v1/quote response through a local MITM proxy and replayed the dApp's exact signing flow on an isolated Anvil mainnet fork against real stablecoin contracts. Tampering approvalAddress and transactionRequest to call transfer(attacker, fullBalance) drained test victims from 1,000,000 → 0 across all three scenarios — while a patched-consumer control fed the identical tampered payloads rejected both (approvalTamperRejected: true, txRequestTamperRejected: true). Wave 2 cleared a 403 blocker on four vendor JS chunks, pinpointed the exact SDK approval/sendTransaction call-sites, and reproduced MaxUint256 standing approval plus transferFrom drain (1e9 → 4.99e8 synthetic fork balance).

Crucially, Wave 2's financial-impact fork refused to conflate fork numbers with real dollar loss: live eth_call checks across an 11-wallet sample against both the router diamond and Permit2 measured `$0.00` in live standing allowances, while honestly noting that full ecosystem-wide approver enumeration via eth_getLogs was archive-gated on free RPCs and therefore left unquantified rather than fabricated.

Root cause. Treating an untrusted remote quote API response as pre-validated wallet execution instructions, omitting contract allowlists, calldata decoding/simulation, and bounded approvals.

Fig 05 · 3.1 Blind-signing of EVM swap calldata, `MaxUint256` approval inflation, and recipient substitution
Fig 05 · 3.1 Blind-signing of EVM swap calldata, `MaxUint256` approval inflation, and recipient substitution

Impact. Conditional but unbounded per victim: if the quote path is compromised or intercepted while a user connects, a single signature drains their entire stablecoin balance, and any standing MaxUint256 approval remains a persistent liability until revoked. Measured exposure in sampled live wallets was $0.00; real-world impact is the unbounded per-victim exposure ceiling.

Fix. Hardcode an allowlist of known router diamond and Permit2 contract addresses; verify transactionRequest.to, approvalAddress, function selector, and decoded recipient against user intent before prompting the wallet; default approvals to exact swap amounts; and simulate transactions before signing.


3.2 Unauthenticated BOLA exposing airdrop allocations, Merkle proofs, and claim signaturesCritical

In plain terms. Wave 1's airdrop probes stalled because the claim front end returned HTTP 500 behind a passcode gate. In Wave 2, mapping the claim flow uncovered the third-party allocation SaaS behind it — and its /allocations endpoint returned any wallet's exact airdrop amount, Merkle proof, and claim signature to anyone who asked, ignoring authentication and signatures completely.

What. POST /allocations on claim-saas.example (backing claim.protocol.example) returned full Season-1 <gov-token> allocation records for any arbitrary recipient address with no authentication header, no session cookie, and no signature verification (the sig field was ignored) (CWE-639).

Verified read-only against 10 real recipient addresses observed on-chain (20 allocation rows returned), exposing:

  • Exact token allocation amounts (including unclaimed allocations up to 3.2B micro-units)
  • Batch identifiers and claimAt timestamps
  • Complete 14-entry Merkle proofs
  • Per-recipient claim authorization signatures issued by the distributor signer

How we found it. By tracing the claim.protocol.example JavaScript chunks to the third-party allocation API, harvesting the public deployment identifier, and testing POST /allocations against 10 real on-chain claimant addresses without any wallet signature.

Root cause. Relying on client-side UI gates (claim.protocol.example) while leaving the underlying allocation API unauthenticated and failing to verify the caller's wallet signature server-side.

Fig 06 · 3.2 Unauthenticated BOLA exposing airdrop allocations, Merkle proofs, and claim signatures
Fig 06 · 3.2 Unauthenticated BOLA exposing airdrop allocations, Merkle proofs, and claim signatures

Impact. Complete enumeration of every Season-1 airdrop recipient's exact allocation, unclaimed balance size (creating a targeted phishing list of high-value unclaimed wallets), Merkle proof, and distributor signature. Honest bound: executing the on-chain claim transaction still requires the recipient's private key, so no tokens were stolen or moved.

Fix. Require a fresh, domain-bound wallet signature (signed nonce) on POST /allocations so only the wallet owner can retrieve their allocation, proof, and claim signature, and rate-limit lookups.


3.3 World-listable production cloud storage bucket leaking unreleased audit PDFsHigh

In plain terms. The protocol's public asset hostname pointed at a cloud storage bucket with anonymous directory listing enabled, exposing the complete file tree and allowing anyone to download two full third-party smart-contract audit reports (28.6 MB and 13.1 MB) without authentication.

What. GET https://assets.protocol.example/ returned HTTP 200 with an anonymous XML ListBucketResult enumerating every object in the production bucket (CWE-200, CWE-284). Among the listed keys were two full smart-contract security audit PDFs (28,601,996 bytes and 13,064,248 bytes), both anonymously downloadable (200 OK, valid PDFs). When Wave 1's proof-regeneration worker re-tested the bucket days later, it remained publicly listable and readable with no 403.

How we found it. By probing bucket root URLs across all discovered static/asset subdomains and verifying object readability directly.

Root cause. Granting public storage.objects.list (bucket listing) alongside public read permissions on a bucket that mixed public front-end assets with non-public security audit artefacts.

Fig 07 · 3.3 World-listable production cloud storage bucket leaking unreleased audit PDFs
Fig 07 · 3.3 World-listable production cloud storage bucket leaking unreleased audit PDFs

Impact. Uncontrolled disclosure of detailed smart-contract architecture, audit findings, and remediation history — plus any other non-public object uploaded to the same bucket — to unauthenticated external actors.

Fix. Disable public bucket listing immediately (serve only specific public prefixes through a CDN origin access control), move audit reports and internal artefacts to a private authenticated bucket, and audit all existing bucket keys for sensitive uploads.


3.4 Direct-to-origin CDN bypass on solvency attestation APIHigh

In plain terms. The solvency attestation API sat behind a CDN, but its cloud origin IP was reachable directly on port 443. Connecting straight to the origin stripped away all CDN WAF, bot-protection, and rate-limiting controls while serving the full ~$509M solvency and hardware-enclave attestation payload.

What. In Wave 2, connecting directly to the cloud origin IP on port 443 with SNI attest-api.protocol.example completed TLS using a valid CDN origin certificate (valid to 2040) and served GET /dashboard identically to the proxied route (CWE-284, CWE-200): ~$509.09M collateral and liability figures, 1.004374 collateralization ratio, 31-point reserve/supply timeline, hardware TEE (SEV-SNP) attestation report, node DER certificate, container image digest, Merkle root, and ZKP proofs — all unauthenticated, with Access-Control-Allow-Origin: * and zero rate limiting on the direct path.

Honest bounds verified by Wave 2: exhausting 65+ candidate paths and alternate vhosts directly against the origin confirmed no CDN-hidden admin, debug, `.git`, `.env`, or actuator endpoints existed (only /dashboard was live), and POST returned 405.

How we found it. Wave 1's sandbox egress rules blocked raw IP probes; Wave 2's expanded network check tested direct TLS connectivity against all three discovered cloud origin IPs.

Root cause. Allowing port 443 ingress from 0.0.0.0/0 on the cloud origin firewall instead of restricting origin traffic strictly to CDN edge IP ranges and authenticated origin pulls (mTLS).

Fig 08 · 3.4 Direct-to-origin CDN bypass on solvency attestation API
Fig 08 · 3.4 Direct-to-origin CDN bypass on solvency attestation API

Impact. Complete bypass of CDN rate-limiting, DDoS shielding, and WAF protections on a critical solvency-reporting host, plus unthrottled exposure of enclave image digests and node metadata.

Fix. Restrict origin firewall rules on port 443 to CDN egress CIDR ranges only and enable Authenticated Origin Pulls (mTLS).


3.5 Persistent 261× Proof-of-Reserves contradiction hidden from the UIMedium

In plain terms. The protocol's own proof-of-reserves API continuously reported healthy: false, empty verified custodians, and only ~$2.0M backing against ~$523M in circulating stablecoin supply (0.38% backed) — contradicting both the 100.39% overcollateralised attestation API and the marketing homepage's claim of continuous verified reserves.

What. GET https://app.protocol.example/api/protocol/por persistently returned {"porReport": {"healthy": false, "totalBacking": ~2000007.63, "custodiansVerified": []}} across every cache state (MISS, HIT, EXPIRED, and cache-busted fresh origin fetches) and persisted identically when re-captured days later (CWE-636). Side-by-side comparison showed:

  • dApp PoR API & /api/protocol: ~$2.0M backing vs ~$523.09M supply (0.38%) — 261× divergence
  • Third-party solvency attestation API & on-chain mint: ~$525.04M reserves vs ~$522.99M–$523.09M supply (100.39%, overcollateralized: true)
  • Client JS bundles fetched porData yet contained zero UI consumers rendering the health flag — making a live integrity alarm machine-visible to integrators and bots while invisible to human visitors.
  • As a compounding defect, the CDN served responses 715s old despite a declared max-age=60 TTL.

How we found it. By comparing all four independent reserve/supply data planes (dApp PoR API, protocol stats API, solvency attestation API, and live on-chain mint reads) and exhaustively ruling out attacker-induced cache poisoning (host/proto/Vary headers, parameter pollution, method override, and middleware subrequest headers all produced byte-identical responses).

Root cause. A failed custodian-connector integration falling back to a near-constant ~$2.0M value with empty custodiansVerified, combined with missing server-side alerting and an unwired front-end UI consumer.

Fig 09 · 3.5 Persistent 261× Proof-of-Reserves contradiction hidden from the UI
Fig 09 · 3.5 Persistent 261× Proof-of-Reserves contradiction hidden from the UI

Impact. Automated monitoring systems, DeFi risk curators, and institutional integrators polling /api/protocol/por receive a persistent insolvency signal (healthy: false, 0.38% backing) that could trigger automated circuit breakers or market panic, while human users see only reassuring marketing copy. Honest calibration: evidence strongly favours a broken feed rather than insolvency, and no attacker manipulation was possible.

Fix. Repair or retire the broken custodian connector behind /api/protocol/por, fail visibly with an explicit degraded-feed status rather than a misleading $2.0M fallback, alert on-call engineers whenever healthy === false or custodiansVerified is empty, and enforce the declared 60s CDN TTL.


Also confirmed

FindingSeverityContent
WALLET-DRAIN-01: Unlimited MaxUint256 approval to unchecked API spenderHighDistinct exploitable approval-inflation facet of 3.1; proven live on mainnet fork (allowance = 2^256 - 1, followed by transferFrom drain)
WALLET-DRAIN-02: Unchecked swap recipient substitutionHighDistinct recipient-mismatch facet of 3.1; live quote A/B confirmed toAddress mutates signed bridge calldata (first diff byte 101) with zero UI/client verification
Governance divergence: single-key upgrade authorities vs public claimsMediumLive on-chain reads across the ~$666M estate showed single-key program upgrade authorities (including a never-funded yield-vault upgrade keypair) contradicting public "non-upgradeable" / disclosed-signer marketing (trust-model/governance finding, not an unprivileged exploit)
Permissive Access-Control-Allow-Origin: * on attestation APILowPublic solvency data served with wildcard CORS (read-only public data; low standalone impact)
X-Forwarded-For geo-check trust & CDN TTL overrun (age: 715s vs 60s)LowGeo-restriction header trust on API gateway and stale CDN caching delaying reserve-status updates

4. Kill chain summary

Fig 10 · 4. Kill chain summary
Fig 10 · 4. Kill chain summary
ChainReachedTerminated atData / impact obtained
EVM swap blind-sign + MaxUint256 drainStage 4 (exploit — fork-proven)Local mainnet fork + $0.00 live wallet sampleMechanism proven end-to-end; patched-consumer control verified
Airdrop allocation SaaS BOLAStage 5 (collection)On-chain claim requires victim keypair20 rows across 10 real recipients (amounts, Merkle proofs, sigs)
Cloud asset bucket listingStage 5 (collection)Read-only bucket listingFull object inventory + 2 audit PDFs (28.6 MB + 13.1 MB)
Direct-origin CDN bypassStage 4–5 (bypass + read)No hidden admin routes; SSH publickey-only~$509M solvency + TEE attestation direct from origin
PoR API divergenceStage 5 (forensic confirmation)Cache poisoning ruled out (origin defect)Persistent healthy: false / 261× backing contradiction
L1 on-chain authority / vault / custodyRefuted / Blocked-exhaustedSafe two-step ELF; immutable gov mint; keys unrecoverableNone (~$666M estate cited as custody context only)

5. What the shape of this engagement teaches

In hybrid Web3 protocols, the smart contracts often hold while the surrounding web glue breaks. Every L1 on-chain drain hypothesis — stablecoin program, yield vault, institutional staking vault, and authority transfer — passed binary-level inspection. Both Critical findings lived off-chain: blind signing of a third-party EVM quote API in the browser widget and an unauthenticated third-party airdrop SaaS.

Synthetic fork numbers must never be passed off as measured financial loss. Wave 1 and Wave 2 both proved full-balance wallet drain on isolated Anvil mainnet forks (1,000,000 → 0 and 1e9 → 4.99e8), and Wave 2's dedicated impact fork then explicitly measured live on-chain standing allowances ($0.00 in sampled wallets) and documented RPC archive limits rather than inventing an aggregate dollar figure. Distinguishing proof of mechanism from measured loss is what makes a security report trustworthy to a board.

Binary reverse-engineering beats guessing when an IDL is missing. Wave 1's scariest on-chain lead — an apparent unsigned authority handover — dissolved the moment the team pulled the deployed ELF binaries and checked the actual signer constraints. Never report an on-chain takeover from inferred schemas when the live bytecode is readable.

Second waves and QA audits catch what first waves miss. Wave 1's airdrop worker failed four times on a front-end 500, and its sandbox blocked direct origin IP connections. Wave 2 traced the JS bundles past the 500 to crack the Critical SaaS BOLA and connected directly to the origin IP to prove the CDN bypass. Meanwhile, Wave 1's four-track QA audit caught nine bookkeeping drifts and explicitly reported seven untouched secondary hosts rather than sweeping coverage gaps under the rug.

Silent health flags are worse than loud errors. A proof-of-reserves endpoint quietly emitting healthy: false (0.38% backed) to machines while the UI hides it creates an unmonitored landmine for institutional trust.

PriorityActionWhy firstEffort
1Add strict router/Permit2 allowlists, calldata selector checks, recipient matching, pre-sign simulation, and exact-amount approvals to the EVM swap widgetCloses the Critical unbounded-per-victim wallet-drain vector (WALLET-DRAIN-01/02/03)Medium
1Require wallet-signature authentication (signed nonce) and rate limiting on the third-party airdrop /allocations APIStops unauthenticated enumeration of recipient allocations, proofs, and claim signaturesLow
1Disable anonymous bucket listing on assets.protocol.example and move audit PDFs to a private bucketImmediately halts public exposure of internal/unreleased audit reportsVery low
2Restrict cloud origin port 443 firewalls to CDN IP ranges and enable Authenticated Origin Pulls (mTLS)Closes direct-origin WAF and rate-limit bypass on the solvency APILow
2Repair /api/protocol/por custodian connectors, fix the 60s CDN TTL overrun, and wire UI + on-call alerting for healthy: falseEliminates the 261× public solvency contradictionLow
3Migrate single-key program upgrade authorities (especially the unfunded yield-vault upgrade key) to hardware-backed multisigs and align public governance docsReduces single-key custody blast radius across the ~$666M token estateMedium
3Re-test the 7 secondary hosts flagged untouched in Wave 1's QA coverage audit (including nginx* ingress and dev-test API hosts)Closes the remaining documented external coverage gapsLow

Notices

Authorization

This was an authorized two-wave security assessment conducted under written engagement agreements. All testing was confined to in-scope web, cloud, integration, and read-only on-chain surfaces.

Non-destructive discipline was maintained across all 108 sessions: all EVM wallet-drain replays ran exclusively on isolated local mainnet forks with synthetic test accounts — zero mainnet transactions were broadcast; all L1 program and token-supply reads used read-only RPC (getAccountInfo, getTokenSupply); airdrop BOLA verification was limited to a read-only 10-recipient proof sample with no claims executed; and no brute-force or unauthorized authentication attempts were run against SSH or private code repositories.

Redaction

Every hostname, IP address, on-chain program/mint/wallet address, vendor name, token ticker, and identifier in this document has been replaced with a placeholder or generalised.

What was removed:

  • All real domain names, subdomains, cloud bucket names, and cloud origin IP addresses
  • All on-chain program IDs, token mint addresses, upgrade-authority pubkeys, distributor signers, and recipient wallet addresses
  • All EVM router diamond addresses, transaction hashes, and JavaScript chunk hashes
  • All token tickers, protocol product names, and organisation/personal repository handles
  • Third-party vendor names (cross-chain routing aggregator, allocation-claim SaaS, proof-of-solvency enclave, external audit firm, institutional vault framework, CDN, cloud, and RPC providers)
  • Exact calendar dates, block heights, slot numbers, and clock times

What was kept, deliberately: vulnerability classes and CWE identifiers, the two-wave topology (79 + 29 = 108 sessions), exact proof mechanics (patched-consumer control, 10-recipient / 20-row BOLA sample, 28.6 MB and 13.1 MB PDF sizes, 261× PoR contradiction, 715s vs 60s TTL), the ELF-disassembly refutation sequence, and the live $0.00 standing-allowance vs ~$666M custody-context distinction. These are transferable and identify nobody.

Placeholders used throughout:

PlaceholderMeaning
protocol.examplePrimary protocol domain
app.protocol.exampleMain dApp and cross-chain swap widget host
assets.protocol.exampleCloud storage asset bucket host
claim.protocol.exampleAirdrop claim front-end host
attest-api.protocol.exampleSolvency and TEE attestation API host
router-api.exampleThird-party cross-chain swap quote API
claim-saas.exampleThird-party allocation-claim SaaS backend
<stablecoin> / <yield-token> / <gov-token>Protocol's stablecoin, yield-bearing receipt token, and governance token
<redacted>Any address, key, hash, IP, or identifier

Data handling

No recipient wallet address, Merkle proof payload, distributor claim signature, or audit-report excerpt is reproduced. Exposure is reported strictly by record counts, file sizes, and protocol mechanics. Synthetic fork test values (1,000,000 → 0, 1e9 → 4.99e8) are explicitly labelled as proof-of-mechanism test fixtures, never as real user loss.

Disclaimer

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

The Wave-1 unsigned authority-transfer hypothesis is reported as refuted (`reviewed_not_vulnerability`) based on live mainnet binary disassembly. The Wave-2 EVM standing-approval aggregate is explicitly reported as unquantified due to free-RPC archive gating ($0.00 measured in the 11-wallet sample), and the ~$666M L1 token estate is cited strictly as custody context rather than a measured EVM drain pool.


Methodology and tooling by BlackBit. Two waves combined: blind-sign EVM drains proven on fork with a patched-consumer control and honest `$0.00` live-allowance calibration; an apparent on-chain takeover refuted in deployed bytecode; and a third-party claim BOLA uncovered where Wave 1 stalled. Published with the client's permission.

More in Web3

← All case studies