Executive summary
What we were asked to do
A Web3 token-operations platform managing vesting schedules, airdrops, cap tables, and customer claim portals across 30+ EVM networks asked for a full-surface external and on-chain assessment covering its shared Next.js web application, GraphQL API, and per-customer Merkle vester contracts.
The engagement produced three Foundry-verified vault-drain paths tied to single-key custody, a live cross-origin framing gap on the admin app, and three disciplined refutations on the web and bridge surfaces.
Principal findings
Every per-customer Merkle vester concentrates four high-privilege roles into a single admin account by default, while documentation treats multisig custody as optional. Against deployed bytecode on a local mainnet fork, a compromised customer admin key can sweep 100% of held vesting tokens in one transaction via revokeAll(), stealth-steal legitimate beneficiary claims through a whitelisted IPostClaimHandler before the callback executes, or sweep non-vesting ERC-20 balances via rescueTokens() — with no timelock and no on-chain multisig requirement. On the web surface, `app.vesting.example` permits an external third-party wallet origin to frame the entire authenticated application (including `/admin`) because CSP frame-ancestors overrides X-Frame-Options: SAMEORIGIN, and production JavaScript source maps (537 KB+) are publicly readable. Three major external paths were refuted: a Next.js middleware bypass across 24 routes, 11 forged JWT/JWE variants plus four sign-in callbacks, and any cross-chain bridge or unprivileged wallet-drain surface.
What this means in plain terms
Four things leadership should take from this.
- A single compromised customer admin key drains an entire vesting contract in one transaction. The factory accepts any externally owned account (EOA) and grants it all four administrative roles at deployment. Across 156 observed customer admin addresses, treating a multisig as optional turns routine key compromise into total loss of both unvested and vested-but-unclaimed tokens.
- Legitimate user claims can be stolen silently without failing the user's transaction. When a whitelisted post-claim handler is configured, the contract transfers tokens directly to the handler before invoking its hook. A hostile handler forwards the tokens to an attacker and returns cleanly — marking the beneficiary's grant as withdrawn while delivering zero tokens.
- An external origin can frame the entire admin console. Even though
app.vesting.examplesendsX-Frame-Options: SAMEORIGIN, its Content-Security-Policyframe-ancestorsdirective explicitly allows an external wallet partner origin, which supersedesX-Frame-Optionsin every modern browser. - The public web authentication boundary held. Neither Next.js middleware-header spoofing nor JWT algorithm confusion nor forged OAuth/wallet/TOTP callbacks produced a session, and the GraphQL API consistently rejected unauthenticated requests.
The five things that need a decision, not a patch
| # | What is wrong | Business impact | Who decides |
|---|---|---|---|
| 1 | Factory deploys per-customer vesters with four privileged roles assigned to a single EOA and no timelock | Treating multisig custody as optional shifts catastrophic blast radius onto every customer deployment. Enforcing contract-account admins or timelocks changes onboarding UX. | Protocol engineering + product |
| 2 | revokeAll() sweeps the entire held token balance in one transaction rather than only halting future vesting | The function name implies revocation of unvested accrual, yet it drains vested-but-unclaimed user funds too. Separating emergency sweep from revocation is a contract-design policy choice. | Protocol engineering + legal |
| 3 | Whitelisted IPostClaimHandler receives claimed tokens before handlePostClaim() executes | Removing a compromised handler stops future drains but cannot recover already-stolen claims. Allowing post-claim hooks without a timelock or beneficiary opt-in creates silent theft risk. | Protocol engineering + security |
| 4 | app.vesting.example allows an external wallet-partner origin in CSP frame-ancestors across /admin | Dropping the origin closes clickjacking immediately; keeping it requires scoping framing strictly to non-admin embedded routes and accepting vendor-origin risk. | Application security + product |
| 5 | Production JavaScript source maps are publicly downloadable on app.vesting.example | Source maps aid debugging only when restricted to internal error-tracking pipelines; serving them publicly hands every GraphQL operation and admin route to external attackers. | Platform engineering |
What we did not get
No unauthenticated fund drain. No live on-chain state change. No admin or customer private key obtained. No session takeover on app.vesting.example or api.vesting.example. No user or cap-table PII exfiltrated.
Every on-chain exploit proof ran inside isolated local Foundry forks against cloned bytecode or freshly compiled contract source using impersonated admin roles. No unprivileged external caller could trigger any of the three vault-drain paths.
Engagement outcome
An authorized external and on-chain security assessment of a Web3 token-distribution and vesting platform confirmed that its public web authentication boundary, GraphQL authorization layer, and reentrancy protections held against all unauthenticated bypass attempts. The assessment identified architectural blast-radius risks tied to single-key customer admin roles on deployed vesting contracts, a cross-origin framing policy gap on the web application, and publicly accessible front-end source maps, all verified without modifying live production systems or accessing customer data. Detailed remediation guidance — including multisig enforcement, timelocked role actions, and CSP tightening — was delivered under confidentiality.
1. The engagement in numbers
| Metric | Value |
|---|---|
| Root workstreams | 2 |
| Total Swarm Size | 22 |
| Confirmed findings | 6 (3 high, 2 medium, 1 low) |
| Refuted attack classes | 3 (middleware bypass, JWT/callback forgery, bridge / unprivileged drain) |
| Explicitly deferred / out-of-window areas | 3 |
| EVM networks with factory deployments | 30+ |
| Code-confirmed child vesters resolved (L1 + L2 sample) | 33 (19 L1, 14 L2) |
| Unique customer admin EOAs observed | 156 |
| Customer-branded claim portals discovered | 16+ |
| Web3 detector candidates triaged | 23 |
| Slither raw detector hits triaged | 78 |
| Routes tested for Next.js middleware bypass | 24 |
| Forged JWT/JWE variants tested | 11 |
| Guardrail integrity probes verified | 11 (11/11 passed) |
| Live on-chain transactions broadcast | 0 (local Foundry fork proofs only) |
The final two rows reflect the discipline governing the engagement. Every smart-contract claim was reproduced locally in Foundry without touching live customer vaults, and a dedicated guardrail pass verified that the analysis pipeline rejects fabricated replays, unexecuted proof scaffolds, and ungrounded claims before any finding is promoted.
Agent topology
| Role | Sessions | Responsibility |
|---|---|---|
| Recon | 12 | Passive OSINT, subdomain/edge mapping, Next.js & CSP inspection, contract provenance, Slither static analysis, deep Web3 recon |
| Exploit | 7 | Foundry mainnet-fork PoCs, CSP/clickjacking verification, JWT alg-confusion testing, middleware bypass testing, wallet-drain analysis |
| Orchestrator | 2 | Workstream coordination, crown-jewel verification, guardrail audit, synthesis |
| Vulnerability analyst | 1 | Web3 detector candidate generation (23 candidates with Foundry scaffolds) and trust-model triage |
2. What held
Before detailing the six confirmed findings, four defensive boundaries held cleanly under active testing.
- Server-side GraphQL authorization and introspection blocking held.
api.vesting.example/graphqlmounted only/graphql(returning404on root probes), blocked__schemaand__typeintrospection withGRAPHQL_VALIDATION_FAILED, and returnedUnauthorizedto every unauthenticated mutation and query — including wallet-verification nonce generation. - `next-auth` v4 session validation and provider callbacks held. Eleven forged JWT/JWE token variants (
alg: none, mixed-caseNone/NONE, empty-keyHS256,dir/none,dir/A256GCM,A256KW/A256GCM,RS256,PS256) returned{}and cleared the cookie. All four authentication callbacks (wallet,totp,google,email) rejected invalid proofs without setting__Secure-next-auth.session-token, backed by__Host-double-submit CSRF tokens. - Hardened `script-src` CSP prevented direct XSS.
app.vesting.exampleenforces per-request nonces withstrict-dynamic, nounsafe-inlineorunsafe-evalinscript-src,object-src 'none',base-uri 'self', andform-action 'self'. - Smart-contract external-caller protections held.
MerkleVesterinherits OpenZeppelin v5AccessControl,ReentrancyGuard, andSafeERC20; updateswithdrawnaccounting before external transfers; explicitly reverts on deflationary/fee-on-transfer tokens (DeflationaryTokensNotSupported); blocksrescueTokens()from sweeping the primary vesting token (InvalidToken()); exposes no unprivilegedapprove/permit/setApprovalForAllwallet-drain hooks; and operates with zero cross-chain bridge messaging state.
The refutations: plausible criticals that were not ones
Two web-layer hypotheses and one on-chain hypothesis looked severe on paper and had to be disproven with live evidence rather than dismissed by assumption.
- Next.js `x-middleware-subrequest` middleware bypass — REJECTED. Because
app.vesting.exampleruns Next.js Pages Router and serves/admin,/admin/users,/admin/transactions, and/admin/deployments/vesting, a naive probe sendingx-middleware-subrequestreceives200 OKon every admin route — which looks like an authentication bypass if judged by status code alone. Diffing all 24 routes and/_next/data/<buildId>/*.jsonpaths proved that responses with and without the header were byte-identical HTML shells (within ±24 bytes of per-request CSP nonce variance). Probing_middlewareManifest.jsreturned404and__SSG_MANIFESTwas empty (new Set()), confirming zero middleware auth gates and zerogetServerSideProps/getStaticPropshandlers. Real authorization lives onapi.vesting.example/graphql, which returnedUnauthorized. - JWT algorithm confusion and sign-in callback bypass — REJECTED. All 11 forged JWT/JWE payloads (submitted via cookie and
POST /api/auth/session) yielded{}and cookie clears, while dummy wallet signatures (CredentialsSignin),000000TOTP codes (Invalid TOTP request), forged OAuth codes (OAuthCallback), and unauthorized email addresses (AccessDenied) issued no session cookie. - Cross-chain bridge mint/withdraw abuse and unprivileged wallet drain — REJECTED. Although the platform operates across 30+ EVM networks, contract inspection confirmed each chain deploys an independent factory and isolated child vesters with no LayerZero, Axelar, CCTP, OP-stack bridge, or mailbox interfaces. Likewise, static and bytecode checks found no
approve(MAX),permit(), or ERC-721/1155 approval callbacks onMerkleVester.
3. The findings that mattered
How the estate was mapped
3.1 Single-EOA role concentration and one-transaction vault drain via revokeAll()High
In plain terms. Each customer project receives its own MerkleVester contract deployed from a chain-specific factory. The factory accepts any plain externally owned account (EOA) as _benefactor and grants that single address four administrative roles at construction (DEFAULT_ADMIN_ROLE, BENEFACTOR, POST_CLAIM_HANDLER_MANAGER, and admin management). Platform documentation lists multisig custody as optional rather than enforced. If that single EOA key is phished, leaked, or abused by an insider, one transaction to revokeAll() empties the entire token vault — including tokens already vested but not yet claimed by beneficiaries.
What. On-chain inspection of deployed MerkleVester (dist_v2.1.2, 3,753 LoC) contracts and factory deployments confirmed single-EOA role concentration across customer instances (156 unique customer admin EOAs observed across V1, V2.1, and airdrop contracts). In MerkleVester, unlike per-grant revoke() (which sets terminatedTimestamp = 1 on a single allocation), revokeAll() immediately sweeps the contract's full held vesting-token balance back to BENEFACTOR with no timelock, no secondary signer, and no carve-out for already-vested liabilities.
How we found it. By tracing factory deployment receipts to live child vesters, matching verified source against deployed runtime bytecode, and executing a local Foundry mainnet-fork PoC (test_revokeAllPlusDefundDrainsAllUnreleased) with the live vester's recorded BENEFACTOR impersonated. Funding the forked vester with 1,000,000 VEST tokens and invoking revokeAll() reduced the vester balance from 1,000,000 → 0 and credited BENEFACTOR +1,000,000 in a single transaction.
Root cause. Unconstrained single-EOA admin onboarding combined with a misleadingly named, un-timelocked full-balance sweep function (revokeAll()) and no on-chain separation between vested entitlements and unvested treasury reserves.
Impact. Total loss of all tokens held in a customer's vesting contract — both unvested reserves and vested-but-unclaimed beneficiary allocations — from a single compromised key. Separately, admin control over transferBeneficiaryAddress (when transferableByAdmin is enabled) and the external allocation-modification API provides an alternate redirection path under the same key boundary.
Fix. Require a multisig (or timelocked governance controller) in the factory or onboarding workflow for DEFAULT_ADMIN_ROLE and BENEFACTOR; separate revokeAll() into an accrual freeze versus a timelocked surplus-only defund() that preserves vested-but-unclaimed liabilities; and split POST_CLAIM_HANDLER_MANAGER from BENEFACTOR by default.
3.2 Stealth drain of legitimate user claims via whitelisted IPostClaimHandlerHigh
In plain terms. MerkleVester supports optional post-claim handlers (for example, auto-staking on claim). When a handler is selected, the contract updates the beneficiary's withdrawn balance and then sends the tokens straight to the handler contract before calling the handler's hook. If the POST_CLAIM_HANDLER_MANAGER role is compromised — which is held by the same default customer EOA — an attacker can whitelist a malicious handler that silently pockets every claim while returning a clean success receipt to the victim.
What. In _withdrawToBeneficiary(), MerkleVester first increments distributionState.withdrawn and totalWithdrawn. When postClaimHandler == address(0), tokens are transferred directly to the beneficiary. When a whitelisted postClaimHandler is non-zero, the contract executes safeTransfer(postClaimHandler, withdrawableAmount) before invoking handlePostClaim(...). Because handlePostClaim() receives custody of the tokens first and is not required to verify that the beneficiary received value, a malicious handler can forward the entire amount to an attacker EOA and return without reverting.
How we found it. By reviewing _withdrawToBeneficiary() and addPostClaimHandlerToWhitelist() in the verified contract source, then reproducing the full flow in two independent Foundry test suites (PostClaimStealth.t.sol and test_postClaimHandlerDrainsLegitClaim). Against a vester funded with 500,000 VEST tokens, a legitimate beneficiary called withdraw() with the whitelisted drainer handler: the vester dropped 500,000 → 400,000, the beneficiary's allocation was marked withdrawn with 0 tokens received, and the attacker EOA received +100,000. A companion test (test_removeHandlerStopsFutureDrains_butCannotRefund) confirmed that revoking the handler via removePostClaimHandlerToWhitelist() stops subsequent drains but cannot recover prior losses, while direct claims (address(0)) remain safe.
Root cause. Pre-callback token transfer directly to a mutable whitelist of external contracts controlled by the same un-timelocked single EOA that holds BENEFACTOR.
Impact. Silent, per-claim theft from legitimate beneficiaries during normal claim operations. Because transactions succeed on-chain and emit normal withdrawal state updates, detection is delayed compared to a single bulk revokeAll() sweep, and removing the handler cannot claw back already-diverted funds.
Fix. Place addPostClaimHandlerToWhitelist() behind a mandatory timelock and dedicated multisig role separate from BENEFACTOR; emit prominent monitoring alerts on whitelist mutations; and require explicit beneficiary-signed consent or immutable handler registries where post-claim routing is used.
3.3 Cross-origin clickjacking of the authenticated dApp and admin surfaceHigh
In plain terms. The main web application (app.vesting.example) sets X-Frame-Options: SAMEORIGIN to stop other sites from embedding it in an invisible iframe. However, its Content-Security-Policy also sends frame-ancestors 'self' https://vault.wallet-partner.example. Modern browsers ignore X-Frame-Options whenever CSP frame-ancestors is present — meaning any page served from that external wallet-partner origin can frame the entire authenticated application, including /admin, /admin/users, /admin/transactions, /admin/deployments/*, custody controls, and /swaps.
What. Live header inspection of app.vesting.example confirmed that the CSP frame-ancestors directive permits an external, third-party-controlled origin (vault.wallet-partner.example, verified live at HTTP/2 200) across all routes, overriding the stricter X-Frame-Options: SAMEORIGIN header. A self-contained HTML clickjacking PoC verified the framing posture.
How we found it. By auditing the production CSP response headers on app.vesting.example during verification of a publicly documented wallet-modal CSP issue, checking whether the allowed external origin resolved live, and verifying that /admin and custody routes inherit the same global frame-ancestors header.
Root cause. Global application of a partner framing allowance (frame-ancestors) across the entire dApp instead of isolating embedded integrations to a dedicated, non-privileged origin or route.
Impact. If an attacker gains XSS, content injection, or subdomain control on the allowed third-party wallet origin, they can frame authenticated app.vesting.example sessions and lure administrators or token holders into unintended UI actions across /admin, custody management, and /swaps. This finding is conditional on a foothold on the partner origin, not directly exploitable from arbitrary attacker domains.
Fix. Remove the external origin from frame-ancestors and set frame-ancestors 'self' across app.vesting.example (especially /admin/* and wallet/custody routes). If partner embedding is still required for a specific consumer widget, host that widget on a separate origin with narrow postMessage contracts and no admin session cookies.
Also confirmed
| Finding | Severity | Content |
|---|---|---|
Non-vesting ERC-20 sweep via rescueTokens() | Medium | Verified in Foundry against deployed bytecode: BENEFACTOR swept 1,000 non-vesting ERC-20 tokens in one transaction with no timelock, while the negative control confirmed rescueTokens() reverts with InvalidToken() on the primary vesting token |
| Production JavaScript source maps publicly exposed | Medium | app.vesting.example serves valid {"version":3,...} .js.map files (including a 537,824-byte bundle map and framework maps) anonymously with HTTP 200, disclosing internal admin routes, GraphQL operation structures, and client wallet-signing logic |
Permissive CSP frame-src / child-src wildcards for wallet-modal origins | Low | app.vesting.example whitelists wildcard wallet-connection modal subdomains (*.walletconnect.com, *.walletconnect.org, plus partner wallet origins) in frame-src/child-src; not direct XSS (due to hardened script-src), but magnifies a vendor-subdomain compromise |
| Smart-contract static-analysis hygiene (Slither triage) | Informational | Out of 78 raw Slither hits, most were false positives or style notices; three items warrant cleanup: divide-before-multiply step truncation in IntervalVester._componentVested (elapsedTime / periodLength — confirm intentional cliff-per-period spec), unindexed newBeneficiary parameter in TransferredBeneficiary (hinders off-chain alerting on admin redirects), and constructor parameter shadowing of base immutable token |
Explicitly unverified within the engagement window
Forensic honesty requires separating what was disproven from what was never tested:
- Authenticated cross-tenant GraphQL and REST authorization: External-only scope provided no customer session or server-to-server API token, so authenticated IDOR, cross-workspace access, allocation-modification APIs, and pre-signed upload URL (
generateFileUploadUrl) boundaries were not exercised. - Keyless JWT issuer enforcement and sign-in rate limiting: An external keyless-account JWT flow and credential/callback rate-limiting thresholds were mapped during recon as follow-on items and remain unverified.
- Multisig census across all 156 customer admin EOAs: The assessment verified that the factory permits plain EOAs and confirmed single-EOA custody on reference deployments, without decompiling every one of the 156 customer addresses to quantify what share already use contract multisigs.
4. Kill chain summary
| Chain | Reached | Terminated at | Data / funds obtained |
|---|---|---|---|
revokeAll() / defund() vault drain | Stage 4 (local Foundry fork PoC) | Requires customer BENEFACTOR key | None (simulated 1M VEST locally) |
IPostClaimHandler stealth drain | Stage 4 (local Foundry PoC) | Requires POST_CLAIM_HANDLER_MANAGER key | None (simulated 100k VEST locally) |
rescueTokens() non-vesting sweep | Stage 4 (local Foundry fork PoC) | Requires BENEFACTOR key; primary token blocked | None (simulated 1k ERC-20 locally) |
CSP frame-ancestors clickjacking | Stage 3 (PoC verified) | Requires foothold on external partner origin | None |
| Public JS source maps | Stage 5 (collection) | Client bundle metadata only | 537 KB+ public .js.map |
| Next.js middleware bypass | Stage 2 (probe) | Refuted — SPA shell + GraphQL Unauthorized | None |
| JWT alg-confusion / callback forgery | Stage 2 (probe) | Refuted — next-auth v4 rejected all 11 + 4 | None |
| Cross-chain bridge / unpriv drain | Stage 1 (recon) | Refuted — no bridge surface; risk: low | None |
5. What the shape of this engagement teaches
"Optional multisig" on a four-role factory is a platform-wide systemic risk, not merely a customer configuration choice. When a factory accepts any EOA and grants it DEFAULT_ADMIN_ROLE, BENEFACTOR, and POST_CLAIM_HANDLER_MANAGER at deployment, every customer that skips multisig setup carries a single-key total-loss trigger. Enforcing contract-based multisigs or timelocks at deployment time solves the class once instead of relying on 156 separate customers to harden their own ops.
Pre-callback token transfers turn convenience hooks into silent theft primitives. Sending claimed tokens to an external IPostClaimHandler before invoking handlePostClaim() — after already marking the beneficiary's grant as withdrawn — means a malicious handler can steal funds while giving the victim a green transaction receipt. Hook registries deserve timelocks, strict role separation, and explicit monitoring.
CSP `frame-ancestors` silently overrides `X-Frame-Options`. Shipping X-Frame-Options: SAMEORIGIN creates false confidence when a global CSP header adds an external partner origin to frame-ancestors. Any route with administrative or custody authority should enforce frame-ancestors 'self' unconditionally.
On Next.js Pages Router SPAs, `200 OK` on `/admin` is not a middleware bypass. Automated checks that flag 200 OK responses to x-middleware-subrequest produce noisy false positives on client-rendered applications that enforce authentication at a separate GraphQL API. Diffing response bodies, checking _middlewareManifest.js, and probing the actual GraphQL boundary turns a plausible critical into a clean, verifiable refutation.
Raw static-analysis counts are starting points, not findings. Seventy-eight Slither hits and 23 Web3 detector candidates compressed down to three concrete privileged-key blast-radius paths and a handful of hygiene notes once tested against real bytecode and trust boundaries.
Recommended sequence
| Priority | Action | Why first | Effort |
|---|---|---|---|
| 1 | Restrict frame-ancestors on app.vesting.example to 'self' (or isolate partner embeds to a separate non-admin origin) | Closes live clickjacking across /admin and custody routes immediately | Very low |
| 1 | Disable public serving of .js.map source maps on app.vesting.example and upload maps privately to error tracking | Eliminates immediate recon advantage on admin routes and GraphQL schemas | Very low |
| 2 | Enforce multisig custody and role separation (BENEFACTOR vs POST_CLAIM_HANDLER_MANAGER) in factory deployments and customer onboarding | Eliminates single-EOA full-vault and stealth-claim blast radius across 30+ chains | Medium |
| 2 | Add a timelock to addPostClaimHandlerToWhitelist(), revokeAll(), defund(), and rescueTokens(), and prevent revokeAll() from sweeping vested-but-unclaimed balances | Prevents silent or instantaneous single-transaction theft on future vester versions | Medium |
| 3 | Index newBeneficiary on TransferredBeneficiary and deploy real-time alerting on role grants, handler whitelisting, and revokeAll() | Gives customers immediate visibility into admin-key abuse | Low |
| 3 | Narrow frame-src/child-src wallet-modal origins from wildcards to exact hosts where supported and add CSP report-to telemetry | Reduces vendor-subdomain blast radius | Low |
| 4 | Conduct an authenticated follow-on assessment covering GraphQL/REST tenant isolation, keyless JWT issuer validation, and sign-in rate limiting | Closes the three areas explicitly deferred under external-only scope | Medium |
Notices
Authorization
This was an authorized security assessment conducted under a written engagement agreement and confined to in-scope web properties and publicly deployed bytecode. All smart-contract exploit proofs (revokeAll(), IPostClaimHandler, and rescueTokens()) ran inside isolated local Foundry forks — zero transactions were broadcast on-chain. Live web testing was strictly read-only and unauthenticated.
Redaction
Every hostname, IP address, contract or wallet address, customer name, analytics ID, and calendar date in this document has been replaced with a placeholder or generalised.
What was removed:
- Organisation name, brand identifiers, public repository names, and contract-suite brand names
- All real domains, subdomains, customer claim-portal names, token tickers, and partner hostnames
- All on-chain contract addresses, admin EOAs, transaction hashes, IP addresses, build IDs, and telemetry keys
- Exact calendar dates, clock times, and year-indexed identifiers
What was kept, deliberately: vulnerability classes, Solidity function and role semantics (MerkleVester, BENEFACTOR, POST_CLAIM_HANDLER_MANAGER, revokeAll(), IPostClaimHandler, rescueTokens()), HTTP/CSP mechanics (frame-ancestors vs X-Frame-Options), the full refutation sequences, and aggregate magnitudes (30+ chains, 33 sampled vesters, 156 admin EOAs, 24 routes, 11 forged JWTs). These are transferable and identify nobody.
Placeholders used throughout:
| Placeholder | Meaning |
|---|---|
vesting.example | Primary platform domain and estate |
app.vesting.example | Authenticated Next.js web application and admin dApp |
api.vesting.example | GraphQL backend API host |
docs.vesting.example | Public developer documentation host |
vault.wallet-partner.example | External third-party wallet origin permitted in CSP frame-ancestors |
<customer>-portal.vesting.example | Customer-branded claim-portal subdomains |
VEST | Representative customer vesting ERC-20 token used in local Foundry PoCs |
<redacted> | Any specific address, key, identifier, or secret value |
Data handling
No customer cap-table data, beneficiary wallet addresses, allocation records, or credentials were accessed or reproduced. All on-chain drain figures (1,000,000 VEST, 100,000 VEST, 1,000 non-vesting ERC-20 tokens) are synthetic balances minted inside local Foundry test environments.
Disclaimer
Findings reflect the state of the tested web surfaces and contract versions during the engagement window. Security posture evolves; a finding recorded here does not imply the condition persists today.
The Next.js middleware bypass, JWT/callback forgery, and cross-chain bridge abuse paths are reported as refuted, not as findings. The three on-chain vault-drain findings are explicitly scoped as privileged-key blast-radius vulnerabilities verified via local Foundry impersonation, not unauthenticated external drains. Authenticated cross-tenant API testing, keyless JWT issuer validation, and login rate-limit testing were outside the unauthenticated window and are marked explicitly as unverified.
Methodology and tooling by BlackBit. Three privileged-key smart-contract drain vectors proven locally in Foundry; live CSP clickjacking and source-map exposure verified non-destructively; three plausible external criticals rigorously refuted. Published with the client's permission.