Skip to main content
Blog
Blog Attacks

The Polyfill[.]io attack - More than just a redirect attack

A redirect was only what was caught. With control of one third-party script on half a million sites, far worse was possible. Here is why it mattered.

Dec 06, 2024 5 min read
life-changing-sum-of-money-image-cover

When we and news outlets reported the Polyfill attack, the reactions were surprisingly mild. This may have been due to the visible result: a simple redirect to obscure websites. (For the full chronology, see our complete Polyfill.io timeline.)

But, as we outlined in our post-mortem, the potential consequences are far more severe:

“Here the bad actor opted to only redirect users to adult and betting websites, however much worse could have happened. Listening in on keystrokes in a small percentage of sessions based on geolocation and time of the day, injecting malware, mining cryptocurrency or rewriting buttons on sites to redirect to impersonated payment portals.

From just a simple redirect to capturing credit card details, client-side JavaScript attacks can do it all. The Polyfill attack could have had much more negative impact, in a way we got lucky. Let this be the reminder, we must monitor our client-side scripts.”

The fact is, much more likely happened.

New insight in the domain transfer

The domain hosting the script was sold to a Chinese-operated company called Funnull. Approximately six weeks later, the redirects began, and the incident was recognized as an attack. Security firm Sansec published its forensic analysis of the redirect payload. (The related CVE-2024-38526 was assigned to pdoc, the Python documentation tool that loaded polyfill.io, not to the incident as a whole.)

Recently, an undisclosed source revealed that the domain polyfill[.]io—at the center of the attack—was sold for a "life-changing sum of money."

The Polyfill script was originally created by Andrew Betts and Jake Champion. Andrew Betts posted a (now-deleted) tweet acknowledging the sale and admitting he had no influence over it.

Another X user, John Schulz, uncovered a now-removed announcement from Funnull naming Jake Champion as the individual who transferred the domain to them:

A now-deleted tweet by Jake Champion confirms that he personally transferred the domain to Funnull.

Possible doomsday scenarios

The attack was exposed because users were redirected to adult and betting sites. However, if the domain was sold for a "life-changing sum," it seems unlikely that it was used solely for such a basic exploit.

For weeks, this attack affected half a million websites, including Intuit, The Guardian, Hulu, and The Verge.

Here are some potential doomsday scenarios that could have been executed by taking control of a single third-party JavaScript file.

DDoS attack

Attackers can siphon IP addresses from visitors across half a million websites and leverage their machines to send requests to any target, creating one of the largest DDoS attacks ever. This can disrupt major institutions, both private and governmental, for hours.

Workday attack

Attackers can trick employees into sharing their Workday credentials, granting unauthorized access to backend systems or simply exfiltrate their session token. This can result in:

  • Payroll manipulation
  • Theft of employee records
  • Access to sensitive HR data
  • … and more

Rewrite any content on a webpage

On infected news sites, attackers can rewrite content to:

  • Provoking reactions or panic
  • Manipulating public opinion
  • Changing narratives on controversial subjects
  • … and more

Capturing PII and Credit Card details

Client-side attacks often harvest Personally Identifiable Information (PII) and payment details. With over half a million affected websites, including many with checkout forms, attackers can steal payment data en masse.

Infecting other websites

An infected site can host malicious scripts, allowing the attack to spread. This tactic complicates detection and containment efforts. This technique is commonly used in client-side breaches, as seen in the Schrwaa[.].com (safe link to an article).

Mining crypto in the browser

Cryptojacking—forcing users' browsers to mine cryptocurrency—is a well-documented tactic. If executed on half a million high-traffic websites, attackers can profit immensely from millions of daily visitors. Read up on the BrowseAloud and the Copay event-stream attacks to see recent examples.

An and scenario

It’s crucial to stress that these scenarios are not isolated—they can occur simultaneously. The redirects already happened, but the other scenarios may have been active as well.

Without client-side monitoring, it’s impossible to know.

To be precise about the evidence: the only payload researchers captured and decoded was the redirect. An independent deobfuscation by SecureLayer7 found no captured proof of credential harvesting, keystroke logging, or PII exfiltration, and Sansec's forensic disclosure documented the same redirect-only behavior. The scenarios above are therefore capability, not confirmed events — but because the script was rebuilt for every request, a targeted data-theft variant would never appear in a public scan. Redirect: proven. Quiet, targeted theft: plausible by design, never captured.

This uncertainty is why we started cside. While we can’t see every attack globally, we monitor third-party scripts on your site to detect and prevent attacks like this from harming your users.

Let’s hope the redirect was the worst of it. But the fact that much worse could have happened is reason enough to act. In 2025, OFAC sanctioned Funnull over the wider operation behind this domain, a reminder that the people who ran it were not hobbyists. Protect your site in seconds, for free, by signing up today.

Simon Wijckmans
Founder & CEO

Founder and CEO of cside. Previously a product manager on Cloudflare Page Shield (now Cloudflare Client-Side Security). Co-chair of the W3C Anti-Fraud Community Group and a Forbes 30 Under 30 honoree. Building accessible security against client-side attacks — web security is not an enterprise-only problem.

FAQ

Frequently Asked Questions

The behavior that was captured and decoded was a redirect to scam and betting sites. Independent analysis of the recovered payload found only redirect logic. But the service generated code per request, so a data-theft variant aimed at specific visitors could not be ruled out and would not show up in public scans. Without client-side monitoring, a site owner had no way to know what ran for their users.

A first-party script can read and rewrite anything on the page that loads it, including forms, cookies, session tokens, and content. With control of one script across roughly half a million sites, an operator could attempt formjacking, credential theft, content manipulation, cryptojacking, or large-scale DDoS. The same-origin policy limits it to each page it runs on, not your other tabs.

Maintainer Jake Champion transferred the polyfill.io domain and its repository to Funnull in early 2024. An undisclosed source described the sale as a life-changing sum of money, but no confirmed figure has ever been published.

Source-based checks and vendor reviews miss runtime behavior. The reliable signal is what scripts actually load and do in the browser. Runtime monitoring flags redirects, new sub-scripts, and unexpected data access when real users load the page.

Monitor and Secure Your Third-Party Scripts

Gain full visibility and control over every script delivered to your users to enhance site security and performance.

Start free, or try Business with a 14-day trial.

cside dashboard interface showing script monitoring and security analytics
Related Articles
Book a demo