Hijacked DebugBear script drains $2.7m from Polymarket traders

Malicious code served from a hijacked third-party script on Polymarket’s website sold signed-in traders’ positions and moved their funds to attackers on October 29. Polymarket is refunding about $2.7 million to 726 affected wallets, and blockchain records show roughly $2.64 million in crypto reached the hackers’ wallet within an hour.
The swapped file was Polymarket’s copy of a page-speed script from DebugBear, whose real user monitoring tool measures page load times. DebugBear said its DNS records were compromised through its domain registrar and that early findings point to an attack on one customer’s site, with no sign of a break-in to its own systems.
Researchers at Hudson Rock found the code reuses a signed-in trader’s existing session, reading stored trading API keys and locating the site’s order-placement and transaction-signing components. Wallet-based accounts had positions moved directly to the hackers’ wallet, while email-based accounts had positions sold at worsening prices before the proceeds were moved out.
Polymarket removed the script within the hour, cleared caches, reset login sessions and paused trading, and has referred the case to law enforcement. It is returning $3.9 million in total, including $1.19 million to about 5,500 wallets affected by the trading pause. DebugBear has told customers to remove its embed code.