AI summary by TwinMind
One Script Tag Just Pwn'd Over 100,000 Websites
Theo - t3․gg
16m 4s
Background and Initial Warning
- Original polyfill.io creator issued urgent warning: "remove it immediately"
- Creator built polyfill service but never owned domain name
- Had no influence over domain sale
- February tweet warning largely ignored until recent malicious activity discovered
Scale and Impact of Attack
- Hundreds of thousands of websites compromised
- Major sites affected: Intuit, JSTOR, Hulu, Guardian, Weather.com, WebMD, The Verge, World Bank, Texas.gov
- Google blocking ads for e-commerce sites using polyfill.io
- Attack targets financial/sensitive data through compromised sites
Domain Acquisition and Malicious Activity
- February 2024: Chinese company purchased polyfill.io domain and GitHub account
- Company "Funnull" claimed "Made in the USA" but had Chinese content/contacts
- Malware injection specifically targeting mobile devices
- Redirects to sports betting sites using fake Google Analytics domain (googiy-analytics.com)
Technical Details of Attack
- Dynamic code generation based on HTTP headers
- Multiple attack vectors implemented
- Specific targeting conditions:
- Only activates on mobile devices
- Only at specific hours
- Avoids admin users
- Delays execution when web analytics detected
- Code obfuscated with variables like memory addresses to hide functionality
- Uses fake domain googiy-analytics.com to mimic legitimate Google Analytics
Malicious Code Analysis
- Platform detection (Windows, Mac)
- Conditional URL redirection based on device type
- Variable "tozun" means "jump" in Chinese
- Complex if/else logic for targeting specific domains
- Indicators of compromise: multiple suspicious URLs identified
Industry Response
- GitHub marked repository as containing malicious content
- Cloudflare launched alternative endpoint under cdnjs
- Fastly also providing trustworthy alternative
- Cloudflare automatic rewriting service available via checkbox
- Attack ongoing since June 8th (nearly one month)
Security Implications
- Demonstrates risks of third-party script embedding
- Scripts have full access to modify user experience
- Supply chain attacks increasingly common
- Original creator recommends avoiding polyfills entirely - modern browsers don't need them
Current Status
- Hulu.com confirmed still compromised during analysis
- Even Cloudflare's own status page was using polyfill.io until June 24th
- Many major websites still vulnerable
- Responsible disclosure ongoing for affected sites
