Skip to content

Case study · Web3

Decentralised Finance Governance and Digital Dollar Platform

Across 34 agent sessions, zero of five crown jewels were achieved against a hardened perimeter, leaving three medium-severity boundary gaps, five low-severity hardening items, and four environment-blocked leads.

Findings · 8
3 Medium5 Low
FindingVulnerabilitySeverity
3.1Geo-gate middleware covers page routes, leaving API routes and tRPC subdomains geo-exemptCWE-287On markets.govfi.example, page routes (/, /trade, /markets, /positions, /account, /dashboard) return 307 -> /blocked and stamp a server-recomputed __Secure- jurisdiction cookie.Medium
3.2Missing clickjacking and MIME-sniffing headers on the wallet-signing voting hostCWE-1021, CWE-16Governance token holders connect wallets and sign EIP-712 messages on vote.govfi.example. That host serves its HTML and JavaScript bundles with only HSTS — no Content-Security-Policy, no X-Frame-Options, and no X-Content-Type-Options: nosniff.Medium
3.3Subdomain email sender-spoofing gap under quarantine-only DMARCCWE-345Passive DNS analysis across govfi.example and all 21 harvested subdomains confirmed: apex SPF uses -all with DKIM configured, so direct @govfi.example spoofing fails closed…Medium
Unauthenticated tRPC health endpoint and procedure-path oracleCWE-200api.govfi.example and api-markets.govfi.example expose unauthenticated /trpc/config.health (200 OK), disclose managed API gateway headers, and differentiate existing (200/401/405) from absent (404) proceduresLow
Governance forum username enumeration oracle without rate limitCWE-200governance.govfi.example /u/{name}.json returns 200 (276 B) for existing accounts and 404 (89 B) for absent ones, case-insensitively, with no rate limit across rapid probes; confirms admin-tier account id=1 (profile_hidden: true)Low
Misspelled <link rel="author"> domain in served HTMLCWE-350Both govfi.example and markets.govfi.example (sharing one serverless deployment) emit <link rel="author"> pointing to a single-character-misspelled lookalike domain (govfi-typo.example), while rel="canonical" is spelled correctly…Low
Cloud object-storage region and CDN distribution ID disclosureCWE-200static.govfi.example 403 XML and asset responses expose the storage region header and CDN distribution/edge identifiers, aiding origin-layout reconnaissanceLow
Object-storage folder-marker objects served 200 through CDN allow-listCWE-116static.govfi.example serves zero-byte application/x-directory objects (200 OK) for prefixes under /assets/* and /images/*, confirming public key-tree paths; ListBucket stays denied (403) via OACLow

Executive summary

What we were asked to do

A decentralised finance platform operating a governance token, a fiat-backed digital dollar with live proof-of-reserves reporting, an isolated-margin lending interface, and off-chain governance portals asked for a full-compromise external assessment across its web estate and mapped smart contracts. The engagement targeted five crown-jewel objectives: smart-contract or vault drain, dApp wallet drain via hostile token approvals or permits, customer or PII data breach, control-plane takeover, and secret or cloud-credential compromise.

The engagement produced an honest hardened-estate result — zero crown jewels proven after systematic exhaustion across 34 agent sessions — alongside three medium-severity boundary gaps, five low-severity hardening findings, and a disciplined separation between verified controls and environment-blocked leads.

Principal findings

No funds were moved, no credentials were recovered, and zero of five crown jewels were reached. The anonymous web boundary was uniformly hardened: server-side geo-enforcement rejected forged cookies and headers on page routes, authenticated tRPC data procedures returned 401 Unauthorized, the image optimizer rejected SSRF payloads, object storage remained locked behind Origin Access Control, and the hosted governance forum blocked anonymous XSS and SSRF. Three medium-severity gaps did surface: (1) the geo-restriction middleware covered page routes only, leaving the /api/* route-handler layer and the api.govfi.example and api-markets.govfi.example tRPC routers reachable anonymously from blocked jurisdictions; (2) the wallet-facing voting host served its EIP-712 signing interface with no clickjacking or MIME-sniffing headers (CSP, X-Frame-Options, X-Content-Type-Options absent); and (3) email authentication left subdomains without per-host SPF/DKIM under a p=quarantine DMARC policy with no subdomain override, allowing spoofed governance and voting mail to reach spam folders instead of being rejected. Separately, static bundle mining mapped the voting application's EIP-712 and ERC-20 signing primitives, but live smart-contract reads and wallet-signing verification were hard-blocked by the assessment environment's network boundary and are explicitly recorded as unverified — not as evidence of on-chain safety.

What this means in plain terms

Three things a board should take from this.

  • An empty critical scoreboard after real exhaustion is a strong defensive signal — provided you read the boundary footnotes. Every anonymous web host held against direct exploitation, and the edge WAF even locked down the assessment egress mid-engagement after API enumeration probes. Where the assessment could not verify safety (live smart-contract bytecode and authenticated forum flows), this report says so plainly rather than calling an untested surface clean.
  • Compliance and perimeter controls drift when they live at the wrong layer. The markets interface correctly blocked restricted jurisdictions at the page router, yet the backing tRPC API subdomains had no geo-gate at all. Likewise, the apex domain rejected spoofed email (SPF -all), while its subdomains fell through to quarantine delivery.
  • Wallet-signing surfaces need browser-side and brand-identity hardening together. A voting host that prompts users for EIP-712 signatures had no framing protection, and the apex and markets HTML shells shipped a misspelled <link rel="author"> pointing at a lookalike domain. Neither breaks a wallet on its own, but together with subdomain email spoofing they form a coherent phishing and clickjacking seam.

The five things that need a decision, not a patch

#What is wrongBusiness impactWho decides
1Markets geo-restriction covers page routes only; /api/* and the tRPC API subdomains are geo-exemptA regulatory jurisdiction control enforced only on front-end pages does not stop direct API calls from restricted regions. Deciding where jurisdiction enforcement must live is a compliance and architecture call.Compliance + platform engineering
2Live smart-contract verification and EIP-2612 permit scoping could not run in this environmentSeven mapped on-chain contracts stayed fixture-bound because external RPC egress was denied. Leaving on-chain verification unrun is a residual risk decision, not a pass.Protocol engineering + security
3The wallet-facing voting host lacks frame-ancestors, X-Frame-Options, and nosniff headersUsers connect wallets and sign EIP-712 messages on a third-party hosted origin that can currently be framed. Vendor header configuration and signing-domain policy require explicit ownership.Security + vendor management
4Subdomain email spoofing lands in quarantine rather than reject, and HTML <link rel="author"> points to a misspelled domainBoth gaps weaken anti-phishing posture around wallet-signing invitations. Moving DMARC to p=reject (sp=reject) and defensively registering lookalikes require operational coordination.Security + IT + brand/legal
5Hosted third-party governance and documentation portals sit outside the first-party edge perimeterWhen the first-party WAF blocked assessment traffic, third-party SaaS origins under the same apex remained reachable at 200 OK. Consistent telemetry and rate-limit expectations across SaaS vendors require governance.Security + vendor management

What we did not get

Zero of five crown jewels achieved. No smart-contract or vault drain. No weaponized wallet drain. No customer, position, or PII byte recovered. No administrative session or control-plane foothold. No secret, API key, or cloud credential disclosed.

Every sensitive boundary tested at the anonymous web edge held: forged jurisdiction cookies were overwritten server-side, user.screen refused unauthenticated requests with 401 Unauthorized, the image optimizer rejected external and metadata targets, and object storage returned 403 AccessDenied across every non-allowlisted path and listing query.

Engagement outcome

An authorized external security assessment of the decentralised finance governance and digital-dollar platform found zero critical or high-severity vulnerabilities across its public web estate, confirming strong server-side access, storage, and edge controls with no funds moved and no customer data or credentials exposed. The engagement identified three medium-severity and five low-severity hardening gaps — including a geo-restriction scope gap on API subdomains, missing browser security headers on the hosted voting interface, and subdomain email-authentication tightening — alongside areas requiring a dedicated live-RPC smart-contract review. All findings were disclosed under confidentiality with prioritised remediation guidance.


1. The engagement in numbers

MetricValue
Root workstreams1
Total Swarm Size34
Subdomains harvested (passive OSINT)21
Live hosts HTTP-triaged11 (9 distinct application surfaces)
Dead NXDOMAIN records verified (no dangling CNAMEs)11 (0 takeover candidates)
Smart-contract addresses mapped (fixture mode)7
Crown jewels proven0 of 5
Confirmed findings8 (3 medium, 5 low)
Verified hardened controls (negative results)7
Blocked / unverified leads recorded honestly4
Customer records or credentials recovered0

Zero customer records and zero credentials were recovered, and no accounts were registered, no outbound emails were triggered, and no on-chain state changes were submitted. Where a surface was unreachable due to environment or engagement rules, the report classifies it as blocked rather than passed.

Agent topology

RoleSessionsResponsibility
Orchestrator1Engagement governance, wave sequencing, final adjudication
Recon & Synthesis15OSINT, DNS/takeover checks, HTTP triage, Web3 fixture mapping, cross-wave merges
Exploit18Per-host testing, bundle mining, geo-gate/tRPC probing, CDN/SSRF/forum verification
Fig 01 · Agent topology
Fig 01 · Agent topology

2. What held

Seven defensive controls were actively tested and confirmed effective at the anonymous boundary.

  • Server-side geo-restriction on markets page routes. Forging the __Secure- jurisdiction cookie to claim an approved country caused the server to recompute and overwrite it with blocked: true and return 307 /blocked. Sweeping CF-IPCountry, X-Real-IP, True-Client-IP, X-Forwarded-Country, geolocation, and Accept-Language all failed; forging X-Forwarded-For triggered an edge WAF 403, and a middleware-subrequest header probe (x-middleware-subrequest) was blocked with 403.
  • Authenticated gating on tRPC data procedures. The only user-data procedure referenced in reachable client bundles (user.screen) returned 401 Unauthorized without a session on both api.govfi.example and api-markets.govfi.example. Over 2,400 guessed procedure names returned 404. Market pricing and registry state are read from on-chain registries and external feeds rather than over unauthenticated tRPC.
  • Image optimizer SSRF allowlist and WAF. On both govfi.example and markets.govfi.example, /_next/image accepted only exact lowercase HTTPS URLs on static.govfi.example. External hosts, uppercase hostnames, userinfo@, dash-confusion, sub-subdomain smuggling, and SVG carriers returned 400 INVALID_IMAGE_OPTIMIZE_REQUEST; loopback, RFC 1918, IPv6 link-local, and cloud metadata (169.254.169.254) were intercepted at the edge WAF with 403.
  • Origin Access Control on static object storage. Across a 71-path probe matrix on static.govfi.example (including /.env, /.git/config, ?list-type=2, ?versions, ?acl, forged signed-URL parameters, path traversal, and alternate HTTP methods), every non-allowlisted path returned uniform 403 AccessDenied with no bucket-name leak and no cacheable error poisoning.
  • Current-version hardened governance forum. governance.govfi.example ran a current managed forum build with a nonced strict-dynamic CSP, frame-ancestors 'self', HTML-escaped query reflection, canonical URL pinning (X-Forwarded-Host ignored, no web cache deception), auth-gated /onebox.json (403 not_logged_in), disabled /oembed//crawl//preview routes (404), 413 on X-HTTP-Method-Override, and 403/404 on /admin/*, drafts, and backups.
  • Origin isolation, clean DNS hygiene, and adaptive WAF enforcement. Zero non-edge origin IPs were discoverable, all 11 dead subdomains resolved cleanly to NXDOMAIN with zero dangling CNAMEs, and mid-engagement the edge WAF locked down the assessment egress with 403 across the first-party zone after repeated /trpc enumeration probes.
  • Stateless front-ends and sanitized voting markdown. Both por.govfi.example (proof-of-reserves) and pay.govfi.example (payments SDK portal) were pure client-side SPAs with no server-side API or exposed secrets; the voting UI's markdown renderers enforced HTML sanitization (html: false, sanitizeHtml: true).
Fig 02 · 2. What held
Fig 02 · 2. What held

What remained blocked — and why blocked is not safe

A disciplined assessment never conflates a verified negative (a control tested and observed working) with a blocked test (a code path unreachable due to scope, network egress, or OPSEC rules). Four high-value threads terminated at environment or engagement boundaries rather than target controls:

  1. On-chain smart-contract verification (7 mapped contracts). External RPC endpoints and ABI/source explorers were domain-denied by the assessment sandbox, and contract repositories were out of scope. Web3 recon ran in fixture mode only (eth_getCode returned placeholder empty hashes). Proxy upgradeability, multisig privileges, vesting accounting, and ERC-20 permit implementation remain unverified.
  2. dApp wallet-drain weaponization (`ERC20Permit` / EIP-712). Static mining of 48 apex chunks (3.2 MB) and 9 voting-app chunks (3.9 MB) confirmed that the voting interface wires EIP-712 typed-data signing (eth_signTypedData_v4 / wallet_signTypedData) and an ERC20Permit ABI (approve 0x095ea7b3, permit 0xd505accf, nonces, DOMAIN_SEPARATOR), while using a legacy voting domain without chainId or origin binding. Notably, EIP-2612 selectors were absent from all 48 apex chunks (which use an approve-based unlock flow). Determining whether the live token implements EIP-2612 or accepts a replayed/hostile-spender signature requires live RPC access and an operational wallet session.
  3. Markets tRPC procedure-name extraction. Although the geo-gate route gap confirmed the tRPC routers are reachable from blocked regions, real procedure names are bundled inside the geo-gated /trade client chunks, and rapid dictionary probing triggered a zone-wide edge WAF 403. Verifying whether additional unauthenticated data procedures exist requires an approved-country vantage.
  4. Authenticated governance forum surface. Forum registration is open (allow_new_registrations=true, external OAuth2), but minting a session required outbound email activation or an operator-provided OAuth account — both prohibited by engagement OPSEC without an authorized disposable inbox. Authenticated POST /onebox SSRF and post-creation markdown testing remain unverified.

3. The findings that mattered

How the estate was mapped

Fig 03 · How the estate was mapped
Fig 03 · How the estate was mapped

3.1 Geo-gate middleware covers page routes, leaving API routes and tRPC subdomains geo-exemptMedium

In plain terms. The platform's isolated-margin trading interface enforces jurisdictional blocking: visiting /trade or /markets from a restricted region immediately redirects to /blocked. That check only runs on web pages. The Next.js /api/* route-handler layer and the dedicated API subdomains (api.govfi.example and api-markets.govfi.example) sit outside the geo-middleware matcher and answer anonymous requests directly from any country.

What. On markets.govfi.example, page routes (/, /trade, /markets, /positions, /account, /dashboard) return 307 -> /blocked and stamp a server-recomputed __Secure- jurisdiction cookie. By contrast, /api/* paths fall straight through to the route-handler layer (404, no geo redirect), and both api.govfi.example/trpc/<proc> and api-markets.govfi.example/trpc/<proc> execute server-side against anonymous requests from restricted jurisdictions with no geo-block — returning 200 OK on config.health, 401 Unauthorized on user.screen, and a structured tRPC 404 (No procedure found on path "...") on unknown procedures (CWE-287).

How we found it. By classifying page routes separately from route-handler paths and testing the API subdomains discovered in client bundle preconnect hints from the same restricted egress that received 307 on /trade. Later in the engagement, the edge WAF applied an egress-based 403 block across the first-party zone after repeated /trpc sweeps, confirming the routers remained geo-exempt for any non-blocked source IP.

Root cause. A front-end middleware matcher scoped to page routes rather than enforcing jurisdiction at the edge or API gateway across both the web application and its backing tRPC origins.

Fig 04 · 3.1 Geo-gate middleware covers page routes, leaving API routes and tRPC subdomains geo-exempt
Fig 04 · 3.1 Geo-gate middleware covers page routes, leaving API routes and tRPC subdomains geo-exempt

Impact. The jurisdictional compliance gate is bypassable at the API transport layer. While no unauthenticated customer or position data was recovered — user.screen remained auth-gated and real markets procedure names live inside the geo-gated /trade bundle — any caller with a valid procedure list or session can reach the markets API from a blocked region.

Fix. Enforce jurisdictional policy at the edge WAF or API gateway uniformly across markets.*, /api/*, api.*, and api-markets.*, not solely in Next.js page middleware. Pair this with gateway-level authentication and uniform error responses on /trpc/*.


3.2 Missing clickjacking and MIME-sniffing headers on the wallet-signing voting hostMedium

In plain terms. Governance token holders connect wallets and sign EIP-712 messages on vote.govfi.example. That host serves its HTML and JavaScript bundles with only HSTS — no Content-Security-Policy, no X-Frame-Options, and no X-Content-Type-Options: nosniff. Any malicious site can embed the voting interface in a hidden or disguised frame.

What. Live header captures against vote.govfi.example/ and its /assets/*.js bundles confirmed the complete absence of framing and MIME-sniffing protections (CSP, X-Frame-Options, X-Content-Type-Options all missing; HSTS only), exposing the wallet-connect and EIP-712 signing origin to clickjacking (CWE-1021) and MIME confusion (CWE-16).

How we found it. By inspecting response headers on the hosted voting origin alongside static analysis of its 9 served JavaScript chunks (3.9 MB). Static mining confirmed that this exact origin wires EIP-712 typed-data signing (eth_signTypedData_v4 / wallet_signTypedData) and an ERC20Permit / approve ABI against the governance token contract, and uses a legacy voting EIP-712 domain that omits chainId and origin binding. No direct fund theft was demonstrated — clickjacking requires user interaction, and weaponizing any approval or permit flow was blocked by the lack of live RPC and wallet sessions.

Root cause. Third-party hosted voting deployment served without custom response-header rules (_headers / edge transform rules) to prohibit cross-origin framing.

Fig 05 · 3.2 Missing clickjacking and MIME-sniffing headers on the wallet-signing voting host
Fig 05 · 3.2 Missing clickjacking and MIME-sniffing headers on the wallet-signing voting host

Impact. An attacker can overlay deceptive UI elements over the legitimate wallet-connect and signing prompts on vote.govfi.example, lowering friction for social-engineered approvals or votes. Because wallet prompts still appear in the user's wallet extension and no live exploit chain was proven, severity is bounded to Medium.

Fix. Configure response headers at the hosting edge (_headers or edge header transform) for / and /assets/*: Content-Security-Policy: frame-ancestors 'none', X-Frame-Options: DENY, and X-Content-Type-Options: nosniff. Audit the voting space configuration and EIP-712 signing domain constraints in parallel.


3.3 Subdomain email sender-spoofing gap under quarantine-only DMARCMedium

In plain terms. The platform's main domain (govfi.example) blocks spoofed email properly, but its subdomains — including vote.govfi.example, governance.govfi.example, and markets.govfi.example — have no per-host SPF or DKIM records, and the apex DMARC policy is set to p=quarantine with no subdomain policy (sp=). Forged emails pretending to come from those subdomains land in spam folders rather than being rejected outright.

What. Passive DNS analysis across govfi.example and all 21 harvested subdomains confirmed: apex SPF uses -all with DKIM configured, so direct @govfi.example spoofing fails closed; however, DMARC is set to p=quarantine with no sp= tag and no ruf forensic reporting address, DNSSEC is absent, and none of the 21 subdomains publish per-host SPF or DKIM records (CWE-345).

How we found it. By passive DNS enumeration (dig) of SPF, DKIM, DMARC, MX, and DNSSEC records across the apex and every enumerated subdomain. Zero outbound emails were sent and no lookalike domains were registered.

Root cause. An incremental DMARC rollout left at p=quarantine without an explicit sp=reject directive or null SPF records (v=spf1 -all) on non-sending subdomains.

Fig 06 · 3.3 Subdomain email sender-spoofing gap under quarantine-only DMARC
Fig 06 · 3.3 Subdomain email sender-spoofing gap under quarantine-only DMARC

Impact. Attackers targeting token holders or governance participants can spoof high-trust operational subdomains (vote.govfi.example, governance.govfi.example) without immediate SMTP rejection, while also exploiting the absence of DNSSEC and forensic (ruf) visibility. Combined with the framing gap on vote.govfi.example and the misspelled author link below, this lowers the bar for wallet-signing phishing.

Fix. Promote the apex DMARC record to p=reject; sp=reject; with aggregate and forensic reporting, publish v=spf1 -all on all non-sending subdomains, and enable DNSSEC.


Also confirmed

FindingSeverityCWEContent
Unauthenticated tRPC health endpoint and procedure-path oracleLowCWE-200api.govfi.example and api-markets.govfi.example expose unauthenticated /trpc/config.health (200 OK), disclose managed API gateway headers, and differentiate existing (200/401/405) from absent (404) procedures
Governance forum username enumeration oracle without rate limitLowCWE-200governance.govfi.example /u/{name}.json returns 200 (276 B) for existing accounts and 404 (89 B) for absent ones, case-insensitively, with no rate limit across rapid probes; confirms admin-tier account id=1 (profile_hidden: true)
Misspelled <link rel="author"> domain in served HTMLLowCWE-350Both govfi.example and markets.govfi.example (sharing one serverless deployment) emit <link rel="author"> pointing to a single-character-misspelled lookalike domain (govfi-typo.example), while rel="canonical" is spelled correctly — creating a typo-squat brand-impersonation risk
Cloud object-storage region and CDN distribution ID disclosureLowCWE-200static.govfi.example 403 XML and asset responses expose the storage region header and CDN distribution/edge identifiers, aiding origin-layout reconnaissance
Object-storage folder-marker objects served 200 through CDN allow-listLowCWE-116static.govfi.example serves zero-byte application/x-directory objects (200 OK) for prefixes under /assets/* and /images/*, confirming public key-tree paths; ListBucket stays denied (403) via OAC

Mined, blocked, and unverified leads (not reported as vulnerabilities)

LeadClassificationWhat was observedWhy unverified / blocker
Wallet-drain primitive (ERC20Permit + EIP-712)Mined, not weaponizedVoting bundle wires eth_signTypedData_v4, approve (0x095ea7b3), and permit (0xd505accf); apex bundles (48 chunks) show approve-based unlock onlyLive RPC egress and operational wallet session unavailable; EIP-2612 presence on live token unconfirmed
Smart-contract / vault estate (7 contracts)Blocked (fixture mode)Primary token, proxy admin, multisigs, vester, and cross-chain pools mapped via bundles and OSINTExternal RPC and explorer domains denied by sandbox; no source repository in scope
Markets tRPC data-procedure replayBlocked on egressapi-markets.govfi.example/trpc/* confirmed geo-exempt with procedure oracleAuthoritative procedure names live in geo-gated /trade chunks; edge WAF applied 403 on assessment egress
Authenticated forum POST /onebox SSRF & stored XSSBlocked on OPSECForum allows open signup (allow_new_registrations=true) and OAuth2; anonymous /onebox.json returns 403 not_logged_inAccount activation requires outbound email or operator OAuth session (prohibited without authorized disposable inbox)

4. Kill chain summary

Fig 07 · 4. Kill chain summary
Fig 07 · 4. Kill chain summary
ChainReachedTerminated atData obtained
Markets geo-bypass & tRPC data breachStage 3 (delivery / route gap)user.screen 401, /trade geo-gated, edge WAF 403None (config.health "OK" only)
Voting UI clickjacking & wallet drainStage 2 (weaponize / primitive mined)Framing headers absent; live wallet + RPC unavailablePublic JS bundles & public contract addresses
Subdomain email spoof & brand typo-squatStage 1 (recon / passive DNS + HTML)Read-only ROE (no mail sent, no domain registered)DNS policy records & HTML link tags
Image optimizer SSRF & static storageStage 2 (probe)400 allowlist / 403 WAF / 403 OACRegion header & zero-byte folder markers only
Governance forum takeover / SSRFStage 2 (probe)Nonced CSP, 403 not_logged_in, OPSEC registration gatePublic usernames (id=1 admin handle)
Smart-contract / vault drainStage 1 (recon / fixture)Environment RPC egress denyPublic contract addresses only

5. What the shape of this engagement teaches

An empty critical scoreboard is only trustworthy when blocked paths are disclosed alongside controls that held. Seven controls were proven effective under active attack, and zero crown jewels fell. Just as importantly, four high-value tracks — live smart-contract bytecode, EIP-2612 permit scoping, approved-country /trade bundle extraction, and authenticated forum probing — stopped at sandbox or OPSEC gates rather than target defenses. Publishing both lists honestly tells leadership where posture is proven and where the next audit dollar belongs.

Geo-restrictions belong at the edge or API gateway, never only in front-end page middleware. Next.js page middleware correctly recomputed jurisdiction server-side and defeated every cookie and header spoof, yet /api/* and the standalone tRPC subdomains bypassed it entirely. Compliance controls that guard a UI while leaving its API transport open create an architectural gap even when individual procedures require authentication.

Third-party hosted origins inherit your brand's wallet-signing risk. The primary web estate sat behind a tight, adaptive WAF that eventually blocked the assessment egress outright. Meanwhile, the hosted voting application on an external origin served the EIP-712 signing interface with zero framing or MIME-sniffing headers and remained reachable at 200 OK throughout. Security headers, rate limiting, and telemetry must extend to every SaaS origin sitting under the apex domain.

Client-side wallet-drain resistance is a layered problem spanning DNS, HTML, headers, and contracts. No single finding here drained a wallet. Yet a quarantine-only DMARC policy on subdomains, a misspelled <link rel="author"> domain across shared HTML shells, and an unframed EIP-712 voting interface sit on the same social-engineering kill chain. Closing all three is inexpensive and removes the surrounding phishing scaffolding before a contract-level audit even begins.

Bundle mining maps the attack surface without touching production state. Static analysis of 75+ JavaScript chunks recovered the shared serverless deployment topology, contract registries, proof-of-reserves architecture, and the exact approval/permit call sites — all read-only, with zero impact on live users.

PriorityActionWhy firstEffort
1Enforce geo-restriction and gateway auth uniformly across api.*, api-markets.*, and /api/*Closes the regulatory and API-perimeter bypass past /blockedLow
1Add CSP frame-ancestors 'none', X-Frame-Options: DENY, and X-Content-Type-Options: nosniff to vote.govfi.exampleProtects the live EIP-712 wallet-signing interface from clickjackingVery low
1Commission a live-RPC smart-contract and EIP-2612 permit audit on the 7 mapped contractsHighest-value unverified risk surface blocked in this environmentMedium
2Upgrade DMARC to p=reject; sp=reject; with reporting, add v=spf1 -all to non-sending subdomains, and enable DNSSECStops subdomain spoofing from landing in user spam foldersLow
2Fix the misspelled <link rel="author"> URL across shared Next.js templates and review defensive domain registrationEliminates typo-squat brand-impersonation link emitted on apex and marketsVery low
3Return uniform error responses on /trpc/* and add rate limiting on governance.govfi.example /u/{name}.jsonRemoves unauthenticated procedure and username enumeration oraclesLow
3Re-test /trade tRPC procedures from an approved-country vantage and authenticated forum /onebox with a dedicated test accountCloses the remaining environment- and OPSEC-blocked verification gapsLow
4Strip storage region / CDN headers and restrict static.govfi.example allow-list to file extensionsEliminates minor metadata and zero-byte folder-marker exposureVery low

Notices

Authorization

This was an authorized security assessment conducted under a written engagement agreement. All testing was confined to in-scope properties under the client's apex domain and mapped public artefacts.

Strict operational discipline was maintained throughout: all probes used neutral random canaries, no user accounts were registered, no outbound emails were sent, no lookalike domains were registered, no on-chain transactions were broadcast, and no target state was modified. Where a test required crossing an OPSEC or network boundary (live RPC egress, disposable email activation, or approved-region proxying), the assessment halted and documented the exact blocker.

Redaction

Every hostname, IP address, contract address, deployment identifier, cloud distribution ID, account handle, and date in this document has been replaced with a placeholder or generalised.

What was removed:

  • All real hostnames, subdomains, lookalike domain names, and apex domain names
  • All IPv4/IPv6 addresses, edge node/PoP codes, cloud regions, and ASN identifiers
  • All smart-contract, multisig, proxy, vester, and cross-chain pool addresses
  • All serverless deployment IDs, build IDs, CDN distribution IDs, and analytics tags
  • Organisation, product, token, stablecoin, and protocol-fork names
  • Third-party cloud, WAF, hosting, authentication, and SaaS vendor identifiers where identifying
  • Exact software build hashes, staff handles, and forum profile names
  • Exact calendar dates, timestamps, and engagement/session identifiers

What was kept, deliberately: vulnerability classes and CWE identifiers, HTTP status semantics (200, 307, 400, 401, 403, 404, 413), protocol and browser header names (tRPC, EIP-712, ERC20Permit, EIP-2612, DMARC, SPF, DKIM, CSP, X-Frame-Options, OAC), exact engagement session counts and findings totals, and the clear separation between confirmed findings, verified controls, and environment-blocked leads. These lessons are transferable and identify nobody.

Placeholders used throughout:

PlaceholderMeaning
govfi.examplePrimary platform domain and apex application
app.govfi.exampleGeneralised platform front-end application surface
markets.govfi.exampleGeo-restricted isolated-margin trading interface
api.govfi.examplePrimary platform tRPC API origin
api-markets.govfi.exampleMarkets tenant tRPC API origin
vote.govfi.exampleHosted off-chain voting and EIP-712 signing origin
governance.govfi.exampleHosted governance discussion forum origin
por.govfi.exampleDigital-dollar live proof-of-reserves application
pay.govfi.examplePayments SDK documentation and portal host
static.govfi.exampleStatic asset CDN and object-storage origin
docs.govfi.exampleHosted platform documentation origin
govfi-typo.exampleMisspelled lookalike domain referenced in <link rel="author">
<redacted>Any address, deployment token, handle, or identifier

Data handling

No customer data, wallet balances, private credentials, or proprietary source code were accessed or stored. Only public HTTP responses, public JavaScript bundles, public DNS records, and aggregate session counts informed this report.

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.

Blocked surfaces are not certified safe. Live smart-contract verification, EIP-2612 permit scoping, approved-country /trade bundle extraction, and authenticated forum testing were blocked by environment or engagement constraints and require dedicated follow-up before being treated as verified.


Methodology and tooling by BlackBit. Zero crown jewels proven across 34 sessions against a hardened web edge; three boundary gaps confirmed and four blocked leads separated honestly from verified controls. Published with the client's permission.

More in Web3

← All case studies