# Security & Bug Bounty

PredictAsiaX runs a coordinated disclosure program with rewards paid in PAX token. Every fill is written to a hash-chained, Merkle-batched, R2-anchored audit log — but code is written by humans and humans miss things. Report responsibly through the [submission form](https://predictasiax.com/security/report), follow every step on a private tracking page, and once a reward is approved it is sent in PAX straight to the Polygon wallet you give us.

## In-scope surfaces

- `api.predictasiax.com` — REST + WebSocket, plus `/v1/audit/*` Merkle proof endpoints
- `connect.predictasiax.com` — OAuth 2.1 identity provider (PKCE mandatory, refresh rotation)
- `mcp.predictasiax.com` — 46-tool Model Context Protocol server (JSON-RPC 2.0)
- `widget.predictasiax.com` — embeddable `<predictasiax-market>` web component
- `builder.predictasiax.com` — first-party Builder Portal (session cookies + admin key)
- `docs.predictasiax.com` — this site, including the REST API reference (Redoc, rendered from the OpenAPI spec)
- `admin.predictasiax.com` — operator console (X-Admin-Key gated)
- Polygon on-chain anchor contract at `anchor.predictasiax.com/contract` — in scope once deployed (post-launch; audit proofs are SHA-256 Solidity-verifiable today)
- PAX SDK packages on npm (`@predictasiax/api`) and PyPI (`pax-api`)

## Out of scope

- Physical attacks, social engineering of PAX staff, phishing of end users
- DDoS / volumetric attacks — Cloudflare handles
- Missing security headers where no concrete impact is shown
- Rate-limit bypass without cascade to state corruption or unauthorized fills
- Vulnerabilities in third-party services we integrate (report to them; we will amplify)

## Rewards

| Severity | Reward (PAX) | Example |
|---|---|---|
| **Critical** | 11,000 – 27,000 | Steal funds from any wallet · forge fills without matching order · break the Merkle chain · leak a hot-wallet private key |
| **High** | 2,200 – 8,700 | Auth bypass · privilege escalation to admin · replay attack against HMAC · fee-split misdirection |
| **Medium** | 550 – 1,600 | IDOR on non-critical data · stored XSS in Portal · webhook signature forge |
| **Low** | 110 – 440 | Info disclosure without account takeover · reflected XSS in low-traffic path |

Rewards are paid in PAX token ([Polygon PoS contract `0x63DE…67a3`](https://polygonscan.com/token/0x63DE49A3c952ca35957d03741EC62E7A19af67a3)). The exact amount within the range is set by impact and report quality, and is shown on your tracking page before payment starts. First valid report on a duplicate wins; late duplicates receive a 110 PAX goodwill reward.

## How to report

**Recommended:** submit at [`predictasiax.com/security/report`](https://predictasiax.com/security/report). No account is needed. You receive a report code (`SR-XXXXXXXXXX`) and a private tracking link right away — the link is shown once, so save it. If you are signed in, the report is also listed under your account at [`/security/track`](https://predictasiax.com/security/track), and you can attach an anonymous report to your account later with its link.

Include:

1. Reproducer (curl / video / minimal code)
2. Impact assessment (which surface, what an attacker can do)
3. Suggested fix if you have one
4. Your Polygon PoS wallet address to receive PAX (required — rewards are paid to it on-chain)

**Alternative:** send an encrypted email to [`support@predictasiax.com`](mailto:support@predictasiax.com). PGP key fingerprint `1E95 91C6 4655 3512 B460 · 9B5B FA8F 21EF 4DD1 491E`. Download the key at [`predictasiax.com/pgp-key.txt`](https://predictasiax.com/pgp-key.txt) (mirror: [`/assets/pax-security.asc`](https://docs.predictasiax.com/assets/pax-security.asc)).

## Tracking your report

Your tracking page shows each step with a timestamp and refreshes on its own. The page never shows your report details or contact email.

| Status | What it means |
|---|---|
| **Submitted** | Received and queued |
| **Under review** | We are reproducing the issue |
| **Confirmed** | Valid; final severity assigned |
| **Fix in progress** | A patch is being built and deployed |
| **Reward approved** | PAX amount fixed and queued for payment |
| **Payment processing** | PAX transfer sent to your wallet; waiting for on-chain confirmations |
| **Paid** | Confirmed on Polygon; the transaction hash links to Polygonscan |

A report can also close as **Duplicate** (eligible for the goodwill reward above) or **Not accepted** (out of scope or not reproducible), with a short note explaining why.

## Response targets

PredictAsiaX is a lean operation, so these are best-effort targets, not staffed-desk guarantees. Receipt is acknowledged automatically; everything after that is handled as fast as one operator can, prioritised by severity.

- **Acknowledgment** — immediate: the form returns your report code and tracking link on submission
- **Triage & severity assignment** — typically within a few days
- **Patch** — prioritised by severity (targets: critical ~24 h, high ~7 d, medium ~30 d, low ~90 d)
- **Payout** — sent automatically on-chain once the reward is approved, target within 30 days of validation; you approve public disclosure copy

## Safe harbor

Good-faith research covered under a legal safe harbor: we will not pursue legal action for testing that (1) stays within scope, (2) does not degrade service for others, (3) does not extract data beyond what's needed to demonstrate the flaw, and (4) discloses privately to us before any public write-up. If your test crosses a line by accident, tell us immediately — we treat honest mistakes as goodwill.

## Hall of fame

Public list of researchers who have shipped valid reports. Empty at launch — be the first, we amplify.

- — open —

**What we already invest in.** Hash-chained event log ➞ 60-second Merkle roots ➞ R2-signed anchors. Every fill you find is either provable or provably absent — audit proofs are SHA-256 Solidity-verifiable today, with a monthly Polygon on-chain commit on the post-launch roadmap. See the [public verifier](https://docs.predictasiax.com/verify). All secrets stored in Cloudflare Workers secret store or GCP Secret Manager. Root wallet keys never leave the VM signer. CSP hardened on every SPA (`script-src 'self'`, no `unsafe-inline`).

Source: https://docs.predictasiax.com/security
