Executive summary
What we were asked to do
A decentralised Web3 sportsbook and casino platform operating across more than ten blockchains asked us to assess its public estate. Users interact through Web3 wallet connections, optional two-factor authentication, and messaging-bot integrations, while live odds, wagers, and multi-chain asset metadata flow through a shared REST API behind a managed edge bot-protection layer.
The engagement was predominantly a deep reconnaissance, estate-mapping, scouting, and API/business-logic assessment spanning 71 agent sessions. It established three confirmed unauthenticated information-disclosure findings — and drew a clean, honest line between what was proven, what was refuted, and what edge bot-management prevented from being tested.
Principal findings
An unauthenticated public feed endpoint (`GET /api/v3/overview/bets`) returned live user betting activity and player profile metadata without requiring a session. Omitting the game_type filter returned 200 OK with player nicknames, CDN-hosted avatar URLs, wager amounts across stablecoins and major crypto assets, match and discipline details, blockchain identifiers, currencies, and bet IDs. Separately, three unauthenticated configuration endpoints exposed settlement smart-contract addresses, an EVM RPC endpoint, a full ERC-20 ABI, sportsbook embedding targets, and token contract inventories across more than ten chains, while a fourth endpoint (GET /api/v1/get_ip) reflected visitor IP addresses and inferred country codes anonymously. At the same time, edge bot-management held firmly against automated tooling: IP- and TLS-bound clearance cookies blocked direct replay, authenticated user-profile routes returned 401, and several presumed staging or RPC hosts proved to be redirect-only or decommissioned (502).
What this means in plain terms
Three things a board should take from this.
- Bot protection is not access control. The platform relies heavily on a managed edge JavaScript challenge to block automated scanners. Once a real browser clears that challenge, live player betting records and platform configuration endpoints answer without any login at all.
- Public activity feeds quietly turn into privacy leaks. Live wager tickers are common in Web3 betting, but serving player nicknames, avatar links, wager sizes, bet identifiers, and chain details together on an unauthenticated endpoint creates a durable correlation trail for profiling high-value bettors.
- Most of the authenticated and injection surface remains untested from the outside. Because edge bot-management blocked automated injection probing and challenge-gated key JavaScript bundles, the absence of confirmed SQL injection, broken object-level authorization, or authentication bypasses is not a clean bill of health — it is a boundary condition that warrants a follow-up grey-box or allowlisted test.
The five things that need a decision, not a patch
| # | What is wrong | Business impact | Who decides |
|---|---|---|---|
| 1 | GET /api/v3/overview/bets returns player nicknames, avatars, bet amounts, and match details with no login | Whether a public "recent bets" feed should expose real player handles, avatar URLs, and granular wager identifiers is a product privacy decision as much as an API fix. | Product + privacy |
| 2 | Unauthenticated configuration endpoints bundle settlement contracts, RPC URLs, ABIs, and 10+ chain token inventories | On-chain contracts are public by nature, but serving internal RPC endpoints and embedding targets anonymously lowers the cost of RPC abuse, contract targeting, and phishing clones. | Protocol + platform engineering |
| 3 | Edge bot-management blocked automated injection, IDOR, and authenticated flow testing | Relying on edge challenges as the primary shield masks backend gaps. Deciding whether to run an allowlisted grey-box API assessment is a risk-acceptance call. | Security leadership |
| 4 | Unverified auth and browser-hardening leads remain open (public OAuth2 token metadata, permissive CSP, token-in-URL patterns, and Telegram/2FA flows inside gated bundles) | None of these were proven exploitable externally, but each sits on a sensitive trust boundary that cannot be retired without source or allowlisted access. | Application engineering |
| 5 | Decommissioned claim portals return 502 Bad Gateway behind the edge challenge while non-prod hostnames redirect to production | Stale DNS entries and dead origins expand the subdomain takeover and brand-impersonation surface even when currently failing closed. | Infrastructure |
What we did not get
No funds were moved. No wallet or user session was taken over. No administrative action was performed, and no backend state was modified.
Authenticated account endpoints (GET /api/v3/address_info) rejected unauthenticated requests with 401 Invalid or expired token. Automated SQL injection and IDOR probes were blocked at the edge with 403 managed challenges before reaching application logic. Across all 71 sessions, testing remained read-only and unauthenticated.
Engagement outcome
An authorized external security assessment of a decentralised Web3 sportsbook platform identified three unauthenticated information-disclosure issues across public betting-overview, platform-configuration, and IP-geolocation API endpoints. No funds were moved, no user session or wallet was compromised, and authenticated account endpoints alongside edge bot-protection controls were verified to enforce access boundaries as designed. All confirmed findings, along with edge-blocked coverage gaps for follow-up grey-box review, were disclosed privately with prioritised remediation guidance.
1. The engagement in numbers
| Metric | Value |
|---|---|
| Root workstreams | 1 |
| Total Swarm Size | 71 |
| Confirmed findings | 3 (1 high, 1 medium, 1 low) |
| Refuted or closed hypotheses | 4 major classes (RPC hosts, cookie replay, API XSS/CORS, dead origins) |
| Edge-blocked or unverified areas | 6 (SQLi/IDOR fuzzing, SPA auth bundles, OAuth2 token auth, CSP, /mcp, admin auth) |
| In-scope subdomains from CT logs | 9 |
| Shadow / auxiliary hosts analysed | 14 (5 non-production or shadow environments) |
| Auxiliary ingress endpoints recovered | 51 |
| User records harvested | 0 (minimal live-response verification only) |
| Unauthorized funds movement | 0 |
The shape of these numbers matters. Sixty-five of the seventy-one sessions were dedicated to reconnaissance and estate analysis, supported by four scouting runs, one business-logic proxy-testing session, and one orchestrator. Rather than overclaiming coverage behind an aggressive edge challenge, the engagement documented exactly what answered in a real browser, what failed closed, and where external black-box visibility ended.
Agent topology
| Role | Sessions | Responsibility |
|---|---|---|
Recon (blackbit-recon) | 64 | Host-depth mapping, edge profiling, stealth crawls, DNS/email OSINT, shadow-IT analysis |
Scout (blackbit-scout) | 4 | Surface promotion, vulnerability triage, confirmation scoping |
Recon Analyst (blackbit-recon-analyst) | 1 | Cross-host synthesis and schema correlation |
Business-Logic Tester (blackbit-proxy-tester-business-logic) | 1 | API logic and auth-boundary analysis |
Orchestrator (blackbit) | 1 | Campaign planning, worker dispatch, final synthesis |
2. What held
Before reviewing what leaked, it is worth recording the controls that worked — because several of them materially shaped what an external attacker can and cannot reach.
- Authenticated account endpoints enforced bearer validation. Probing
GET /api/v3/address_infowithout a valid token returned401 Unauthorizedwith{"detail":"Invalid or expired token"}, confirming that private wallet-profile routes do not share the anonymous exposure seen on the overview and configuration endpoints. - Edge bot-management bound clearance cookies to IP and TLS fingerprint. Managed JavaScript challenges blocked non-browser HTTP tooling immediately (
403 cf-mitigatedwith sticky lockout at near-zero request threshold). Even after acquiring a freshcf_clearancecookie in a real browser, replaying that cookie fromcurl-impersonateagainst SPA bundles still returned403. - Cross-origin resource sharing held. Tested API routes did not reflect arbitrary origins with credentials.
- JSON API responses offered no reflected XSS sink. Confirmed API endpoints returned structured JSON rather than unescaped HTML.
- Non-production and decommissioned hosts failed closed. Redirect-only hosts (
testnet.sportsbook.exampleand its mainnet companion) exposed no standalone RPC or staging application surface, and decommissioned claim origins (claims.sportsbook.example) returned502 Bad Gatewaybehind the edge challenge with zero reachable endpoints.
Refuted assumptions, blocked paths, and unverified hypotheses
A large reconnaissance campaign inevitably generates promising leads that turn out to be false, dead, or unreachable from the public internet. Keeping these separate from confirmed findings is essential so engineering teams spend time on real risk rather than chasing ghost bugs.
| Category | Item | What happened | Forensic status |
|---|---|---|---|
| Refuted | testnet.sportsbook.example (and mainnet alias) as exposed blockchain RPC nodes | Host-depth recon proved a 301 redirect chain (testnet → mainnet → sportsbook.example apex); neither host is an RPC node or staging app | Refuted |
| Refuted | cf_clearance cookie replay to fetch gated SPA bundles via curl-impersonate | Fresh browser clearance cookies still returned 403 when replayed outside the browser due to IP + TLS fingerprint binding | Refuted |
| Refuted | Claims portals (claims.sportsbook.example) and short-link host as active app surfaces | Claims origins returned 502 Bad Gateway once the challenge cleared; short-link host returned 403 cf-mitigated with zero endpoints or parameters | Refuted (no live surface) |
| Refuted | Reflected XSS and permissive CORS on the JSON API surface | Tested endpoints returned JSON only and showed no CORS reflection misconfiguration | Refuted |
| Blocked | SQL injection and IDOR testing on API parameters | Automated injection and object-reference fuzzing hit sticky 403 edge challenges before reaching backend handlers | Blocked by edge |
| Blocked | SPA auth flow, Web3 wallet-connect, TOTP 2FA, and Telegram personal-key flows | Client logic (app-<hash>.js, /login, /auth, /.well-known/openid-configuration) remained behind Turnstile-gated bundle delivery; only i18n strings were observed | Blocked by edge |
| Unverified | OAuth2 POST /api/public/auth/token advertising auth_methods: ["none"] | Seen in OAuth2 metadata during crawl discovery; typical for public PKCE clients, not tested for grant abuse because auth stage did not finish | Unverified hypothesis |
| Unverified | Permissive CSP (script-src * 'unsafe-inline' 'unsafe-eval') on sportsbook.example | Observed in response headers during crawl; weakening defense-in-depth, but no paired XSS vector was confirmed | Unverified / hardening |
| Unverified | Auxiliary ingress host (51 recovered endpoints), /mcp, and admin route auth | Endpoints and missing security headers catalogued from crawl/bundles, but auth stage was interrupted and vulnerability verification remained pending | Unverified / pending |
The operational lesson is direct: an unverified lead is not a finding, and an edge `403` is not proof of backend safety. Reporting all three buckets cleanly gives leadership an accurate map of what was verified and what still requires allowlisted internal testing.
3. The findings that mattered
How the estate was mapped
3.1 Unauthenticated user betting and PII exposure on /api/v3/overview/betsHigh
In plain terms. Anyone loading the platform in a normal browser can query the betting overview API without logging in and receive a live stream of other players' betting activity. Each record pairs a player's handle and avatar link with wager sizes, cryptocurrencies, blockchain networks, match details, and unique bet identifiers.
What. GET /api/v3/overview/bets (CWE-200), when invoked without a game_type query parameter, returned 200 OK with a JSON payload containing user nicknames, CDN-hosted avatar URLs, live wager amounts denominated in stablecoins and major crypto assets, match and event metadata (events, disciplines, and game_id values), blockchain network identifiers, currencies, and bet IDs. No session cookie, wallet signature, or bearer token was required.
How we found it. Standard non-browser HTTP requests were stopped at the edge with 403. During stealth-browser crawling (playwright-stealth) against sportsbook.example, the assessment enumerated the live XHR/API traffic and queried /api/v3/overview/bets directly without supplying optional filtering parameters or authentication headers.
Restraint was maintained throughout: only a minimal live response was inspected to verify field presence and confirm unauthenticated readability. No continuous scraping, historical harvesting, or correlation against on-chain wallets was performed.
Root cause. An unauthenticated public-feed endpoint returns full player-level and wager-level records rather than anonymised aggregates or session-scoped data, relying solely on the edge bot challenge rather than application-layer authorization.
Impact. Continuous polling by a single browser-driven script would allow a third party to build a longitudinal dossier of individual players' betting volume, asset preferences, active hours, and cross-chain behaviour. On a Web3 platform where wager amounts and timestamps can be correlated against public settlement transactions, pairing nicknames and avatars with granular bet records risks linking off-chain personas directly to on-chain wallets.
Fix. Strip user-identifying fields (nicknames, avatar URLs, and raw internal bet IDs) from any unauthenticated overview feed, or gate granular bet records behind an authenticated session scoped to the requesting user. Enforce server-side pagination caps, field allowlists, and explicit privacy opt-outs for public tickers.
3.2 Unauthenticated smart-contract and infrastructure disclosureMedium
In plain terms. Three unauthenticated configuration APIs hand out the platform's multi-chain operating blueprint in a single set of GET requests: a settlement smart-contract address, an upstream EVM RPC URL and chain identifier, a full ERC-20 ABI, an embedded sportsbook iframe URL, and token contract addresses across more than ten blockchains.
What. Three endpoints (CWE-200) answered 200 OK with no authentication:
GET /api/v2/settingreturned a settlement smart-contract address (<redacted>), an EVM JSON-RPC endpoint URL (<redacted>), the corresponding chain identifier, and the sportsbook iframe URL.GET /api/v1/global/settingreturned a complete stablecoin ERC-20 contract ABI (includingTransferandApprovalevents alongsidebalanceOf,transfer, andapprovemethods).GET /api/v1/currenciesreturned the full catalogue of supported token contract addresses across more than ten blockchains.
How we found it. Captured during live API discovery via stealth-browser crawl against sportsbook.example and verified directly as unauthenticated GET requests.
Root cause. Client bootstrap configuration mixes legitimately public frontend metadata (supported currencies and public contract references) with operational integration details (upstream RPC endpoints, iframe origins, and full ABIs) behind unauthenticated REST endpoints with no separation between public UI config and internal/authenticated runtime settings.
Impact. Smart-contract addresses and standard ERC-20 ABIs are public on-chain by design, which keeps this finding at Medium rather than High. The practical security impact is operational: publishing upstream RPC endpoints, iframe embedding URLs, and a machine-readable multi-chain contract map in unauthenticated endpoints lowers the effort required for attackers to abuse RPC quotas, monitor settlement flows, target approval/allowance workflows, or stand up high-fidelity phishing clones.
Fix. Split public frontend bootstrap metadata from operational configuration. Proxy RPC traffic through rate-limited, origin-restricted endpoints rather than shipping direct RPC configuration in unauthenticated APIs, trim unnecessary ABIs from runtime config responses, and enforce strict frame-ancestors policies on the sportsbook iframe origin so embedded views cannot be hijacked.
3.3 Unauthenticated visitor IP and geolocation leakage on /api/v1/get_ipLow
In plain terms. An unauthenticated helper endpoint echoes back the caller's public IP address and inferred country code in plain JSON.
What. GET /api/v1/get_ip (CWE-200) returned 200 OK with {"ip": "<visitor_ip>", "geo": "<country_code>"} without requiring authentication.
How we found it. Discovered during stealth-browser network capture and verified via direct API request once the edge challenge was cleared.
Root cause. A client-side geolocation/jurisdiction helper was exposed as a standalone unauthenticated API endpoint returning both raw IP address and derived country code.
Impact. Low on its own. Platforms commonly check visitor geolocation for regulatory compliance, and a caller already knows their own egress IP. However, exposing an explicit unauthenticated IP-and-country oracle makes it trivial to probe which jurisdictions the backend recognises, inspect how proxy or VPN headers are interpreted, and — if ever combined with permissive CORS or iframe embedding — leak visitor IP metadata to third-party scripts.
Fix. Perform jurisdictional enforcement server-side at the edge or API gateway rather than relying on a client-queried IP reflection endpoint. If the frontend needs to render a regional notice, return only a boolean eligibility flag rather than echoing the raw IP address and country classification.
Unverified observations and hardening backlog (not confirmed exploitable)
Because 64 of 71 sessions were reconnaissance-focused and edge challenges blocked deeper probing on several hosts, six additional security observations were recorded during discovery. None are claimed as confirmed vulnerabilities; all warrant verification during an allowlisted grey-box review.
| Area | Observation | Why not confirmed | Recommended check |
|---|---|---|---|
OAuth2 metadata (H-MN-001) | POST /api/public/auth/token advertised auth_methods: ["none"] | Auth stage on that branch did not complete; public SPA/PKCE flows legitimately use "none" if grants are restricted | Verify only authorization-code + PKCE grants are enabled and refresh/client-credentials abuse is impossible |
Content Security Policy (H-MN-005) | sportsbook.example served script-src * 'unsafe-inline' 'unsafe-eval' | No exploitable XSS sink was confirmed on the tested surfaces | Replace wildcards and unsafe directives with nonce- or hash-based CSP |
| Token handling & embedding | Client code referenced searchParams.set('token', ...) and frame-ancestors embedding rules alongside auth.setCredentials({cid, token}) | Gated JS bundles prevented dynamic tracing of token lifecycle | Audit whether session tokens ever transit query strings (Referer/log leakage) and restrict frame-ancestors to an explicit allowlist |
| Alternate auth channels | Client i18n strings referenced TOTP 2FA (enable_2fa) and Telegram bot personal keys (__telegram__initParams, personal_key) | Flows live inside Turnstile-gated SPA bundles | Test 2FA enforcement, personal-key entropy/rotation, and Telegram initData HMAC verification server-side |
Auxiliary ingress (api.sportsbook.example) | 51 endpoints recovered from crawl/bundles behind reverse proxy + Kubernetes ingress; security headers missing | Auth stage interrupted; vulnerability stage pending | Run full authenticated API testing and baseline security headers across all ingress routes |
| Unenumerated endpoints | References to /openapi-public.json, /docs/api, /api/docs, /mcp, and admin routes noted during discovery | Blocked by edge challenges or deferred after crawl stage | Confirm admin routes enforce role-based authorization server-side and verify whether /mcp is intentionally exposed |
4. Kill chain summary
| Chain | Reached | Terminated at | Data obtained |
|---|---|---|---|
Betting overview feed (/api/v3/overview/bets) | Stage 5 (collection) | Single-request verification only | Live JSON schema confirmation (no bulk harvest) |
Platform config endpoints (/api/v2/setting, /api/v1/global/setting, /api/v1/currencies) | Stage 5 (collection) | Read-only config inspection | Public contract/RPC/ABI/currency metadata |
Geolocation endpoint (/api/v1/get_ip) | Stage 5 (collection) | Read-only probe | Assessor egress IP and country code only |
Authenticated account route (/api/v3/address_info) | Stage 3 (access check) | 401 Invalid or expired token | None |
| SQLi / IDOR and gated SPA auth bundles | Stage 2 (weaponize / probe) | Edge 403 managed challenge + IP/TLS binding | None |
testnet / claims / short-link hosts | Stage 1 (recon) | 301 redirect-only / 502 down / 403 zero surface | None |
5. What the shape of this engagement teaches
Edge bot protection hides APIs from automated scanners, not from real browsers — and it is never an authorization layer. Cloudflare Turnstile stopped every raw HTTP probe and even defeated curl-impersonate cookie replay. Yet once a stealth browser cleared the challenge, three API classes answered without authentication. Any endpoint that handles user activity or operational configuration must enforce its own authorization checks as though the edge were transparent.
Optional query parameters often mask default-open privacy leaks. Calling /api/v3/overview/bets without game_type returned unfiltered live player wagers with nicknames and avatars. Public activity feeds should default to anonymised, minimal projections — never full user-linked records that rely on client-side UI filtering to hide fields.
On-chain transparency does not justify monolithic unauthenticated config APIs. While smart-contract addresses and standard ERC-20 ABIs live on public blockchains, bundling them with upstream RPC URLs and embedding targets in unauthenticated JSON endpoints hands adversaries a clean operational blueprint. Separating public UI metadata from infrastructure configuration reduces reconnaissance leverage at very low engineering cost.
Reconnaissance-heavy assessments owe the client radical honesty about coverage gaps. Seventy-one sessions produced a thorough estate map, three confirmed findings, and four clean refutations — but edge challenges left injection testing, authenticated wallet flows, Telegram personal keys, and 51 auxiliary ingress endpoints unverified. Treating those gaps explicitly as a grey-box backlog is far more valuable than pretending a black-box scan proved the backend safe.
Dead origins behind an edge challenge still create operational drag and takeover risk. Decommissioned claim hosts returning 502 Bad Gateway and redundant redirect chains (testnet → mainnet → apex) show up in certificate-transparency logs forever. Retiring unused DNS records cleanly shrinks the estate that defenders have to monitor.
Recommended sequence
| Priority | Action | Why first | Effort |
|---|---|---|---|
| 1 | Remove or anonymise player nicknames, avatar URLs, and raw bet IDs on /api/v3/overview/bets (or require scoped auth) | Eliminates unauthenticated player profiling and on-chain wallet correlation | Low |
| 2 | Split public UI metadata from operational config on /api/v2/setting, /api/v1/global/setting, and /api/v1/currencies; proxy RPC endpoints | Reduces infrastructure disclosure, RPC abuse, and phishing-clone fidelity | Low–Medium |
| 2 | Schedule an allowlisted grey-box API & auth assessment bypassing edge bot challenges | Closes the unverified gap across SQLi/IDOR, SPA auth, OAuth2 token grants, Telegram personal keys, /mcp, admin routes, and 51 ingress endpoints | Medium |
| 3 | Tighten sportsbook.example CSP (remove *, 'unsafe-inline', 'unsafe-eval'), audit token-in-URL usage, and enforce strict frame-ancestors | Restores browser defense-in-depth and prevents token leakage via Referer/logs | Medium |
| 3 | Replace /api/v1/get_ip raw IP/geo echo with server-side geofencing or a minimal eligibility flag | Removes unnecessary IP/jurisdiction oracle | Very low |
| 4 | Decommission DNS entries for 502 claim origins (claims.sportsbook.example) and add baseline security headers on auxiliary ingress | Cleans stale attack surface and hardens Kubernetes ingress responses | Low |
Notices
Authorization
This was an authorized security assessment conducted under a written engagement agreement. All testing was confined to in-scope domains and hosts.
Strict read-only discipline was maintained across all 71 sessions. Unauthenticated API exposures were verified with minimal single-response inspection rather than bulk collection; no user betting history was harvested, no wallet or account was accessed, no backend state was mutated, and no attempt was made to bypass authenticated account controls (401) or execute unauthorized financial transactions.
Redaction
Every client identifier, hostname, smart-contract address, RPC URL, user nickname, avatar URL, and timestamp in this document has been replaced with a placeholder or generalised.
What was removed:
- Organisation, product, and brand identifiers
- All real domain names, subdomains, and auxiliary TLDs
- All IP addresses, ASNs, and visitor geolocation values
- All smart-contract addresses, token contract addresses, chain IDs, and RPC endpoint URLs
- All user nicknames, CDN avatar URLs, individual wager amounts, and bet or match identifiers
- Specific third-party analytics domains, CDN hostnames, and JavaScript bundle hashes
- Exact calendar dates, clock times, and internal session identifiers
What was kept, deliberately: vulnerability classes and CWE identifiers (CWE-200), HTTP status codes and API behaviour patterns, session and role counts, the exact boundary between confirmed findings, refuted hypotheses, edge-blocked paths, and unverified grey-box leads, and the remediation sequence. These lessons are transferable and identify nobody.
Placeholders used throughout:
| Placeholder | Meaning |
|---|---|
sportsbook.example | Primary Web3 sportsbook apex application and shared API surface |
api.sportsbook.example | Auxiliary operational API / ingress surface (51 recovered endpoints) |
app.sportsbook.example | Secondary Vue/Nuxt single-page sportsbook client behind edge Turnstile |
claims.sportsbook.example | Decommissioned claim portal origins returning 502 Bad Gateway |
testnet.sportsbook.example | Non-production redirect-only hostname chaining to the apex |
<redacted> | Any contract address, RPC URL, visitor IP, country code, or identifier |
Data handling
No player data is reproduced. No user nickname, avatar URL, individual wager amount, match record, or wallet/contract address appears anywhere in this report. Live API responses were verified solely for schema and access-control proof and were not retained as a dataset.
Disclaimer
Findings reflect the externally observable state of the tested systems during the engagement window. Security posture changes; a finding reported here does not imply the condition persists today.
Confirmed findings are strictly separated from refuted, edge-blocked, and unverified items. Only the three CWE-200 exposures in Section 3 were confirmed live. All injection, object-authorization, OAuth2, CSP, Telegram/2FA, /mcp, and admin-route items listed in Section 2 and Section 3 remain edge-blocked or unverified pending allowlisted grey-box testing.
Methodology and tooling by BlackBit. Seventy-one sessions of deep reconnaissance, scouting, and API/business-logic analysis with strict separation between confirmed exposures, refuted hypotheses, and edge-blocked coverage gaps. Published with the client's permission.