Anatomy of a Session-Level Breach: What Polymarket's Post-Mortem Explains, and What It Buries
CryptoWoo
A compromised third-party performance-monitoring script running on Polymarket's international site sold user positions and moved funds on October 29, according to the platform's own post-mortem published the following day. Buried in the fifth paragraph of that account is the fact that matters most, and it is not the one coverage has seized on: the attacker never touched on-chain ownership. It borrowed an authorized channel — a live browser session that carried the ability to sign trades on a user's behalf.
The causal chain the post-mortem describes is short. A third-party vendor's script was compromised. Because it ran in the platform's page context, it could read or reuse active user session credentials. Those credentials were sufficient to sell holdings and transfer balances as the user. Containment followed in four steps: remove the script, purge caches, reset sessions, halt trading and the relayer.
The implication deserves more attention than it received. If a performance-monitoring script can sell positions, the platform's international venue holds, at the session layer, the ability to initiate trades on a user's behalf — whether through frictionless signing, delegated keys, session grants, or a custodial wallet design. Whichever mechanism applies, the security boundary does not sit at the on-chain private key. It sits in the browser's JavaScript execution environment plus a credential store. That is what it means to say a website script became a financial boundary, and it explains why on-chain settlement offered no protection: the attack used a legitimately authorized path and never confronted ownership verification at all.
The post-mortem does not say whether this session-level signing capability is a product decision made to reduce signature friction or a consequence of a particular wallet architecture. The distinction determines whether removing the malicious script treats a symptom. A replacement monitoring script, granted the same reach next quarter, would inherit the same power. The simultaneous pause of the relayer is a related tell: submitting trades evidently depends on platform-side relay infrastructure, which is worth weighing against claims of partial decentralization.
The post-mortem's most technically substantive passage concerns Subresource Integrity, and here the analysis is accurate but misdirected. SRI verifies that a fetched script matches an expected hash. It does not verify that the code is benevolent, and it is defeated by dynamically injected or inline scripts; hash pinning also conflicts structurally with hot-updating vendor bundles. As a control, SRI is real but limited. As a lesson, it is the wrong one to draw. The controls that map onto this incident are Content Security Policy script-src allowlists and nonces, Trusted Types, cross-origin sandboxing of third-party code, and, above all, scoping session authority so that a monitoring script's context cannot hold trade-signing power.
Performance-monitoring and real-user-measurement scripts are high-risk supply-chain surface. They require page-level context for timing and DOM data, so they resist iframe isolation, and they routinely receive read-the-whole-page and issue-arbitrary-request permissions outside the review path applied to core business code.
The financial disclosure is internally consistent — $2.7 million attributed to the attack plus $1.2 million tied to the trading halt, $3.9 million in total, with 95% of users reported fully reimbursed as of that afternoon — but every figure lacks a denominator. Is 95% a count of wallets or a share of dollars? If wallets, a small number of large accounts could hold most of the outstanding balance. Do the totals include platform funds, or is a third-party vendor contributing? That answer decides whether this is platform backstop or liability apportionment. And which bucket absorbs slippage?
Slippage is the loss category the post-mortem never reconciles. Forced selling into thin liquidity widens the gap between displayed quotes and executable prices, and the post-mortem says so without carrying the point into the accounting. A user's real damage equals the stolen notional plus the deviation of execution price from a defensible price. Whether that deviation sits inside the $2.7 million, inside the $1.2 million, or nowhere is unstated. Prediction markets are especially exposed to this: a single market's order book is shallow, so a large forced sale can move price several times further than the notional removed.
The $1.2 million halt-related figure carries a harder problem than inconsistent methodology. During a trading pause, market information keeps arriving. If a market's probability shifts materially while users cannot close, the inability to exit is a loss for some and a gain for others who were spared a losing close. Reimburse the difference between pre-halt and post-resume prices, and only the harmed side files claims — textbook adverse selection. The only administrable standard is a pre-halt snapshot applied uniformly, which is necessarily unfair to someone. That, not accounting carelessness, is the real source of the divergence the headline number conceals: this class of loss has no valuation baseline everyone will accept.
Judged as analysis, the post-mortem holds up unevenly. Strong: that on-chain applications depend on off-chain components with session reach; that a timestamped 95% is a snapshot, not a completion; that prevention and detection are both necessary and not interchangeable; that SRI validates integrity, not intent. Weaker: the claim that halting trading created a second loss class is logical but unsupported by any quantification or user testimony, and the assertion that operations are resolved while accounting continues is a graceful phrase without evidence. The structural weakness is sourcing. Every fact traces to the party under scrutiny. There is no independent verification, and notably no on-chain forensics — no examination of the abnormal batch sells around October 29, no tracing of fund flows, no exchange deposit records.
Three questions determine severity and remain open. First, how was the script injected — vendor compromise, CDN poisoning, build-pipeline contamination, or domain hijacking? That decides whether this is a single-operator incident or an industry-wide supply-chain exposure. Second, why did a session carry trade-signing authority at all, and is that architecture fixable or inherent to the wallet stack? Third, how much did the attacker net, and how much was recovered? The post-mortem discusses reimbursement and stays silent on recovery. Lower-tier gaps: whether any private keys or seed phrases leaked, what the residual 5% disputes, whether a regulator was notified, and what the revised control list actually contains today.
For prediction-market users, the practical takeaway is concrete: positions can be attacked at the session level, and a trading halt is itself an exposure. For engineering teams at comparable venues, the four layers — prevention, detection, containment, and reimbursement — are separate and cannot substitute for one another. For anyone citing this incident, the label matters: it is platform self-disclosure plus commentary, useful as a question list, not citable as a settled account of what occurred.