Accepting selected projects for Q2 2024 Check availability →
SERVER 02SYSTEM ONLINELAST SYNC: 03:17:44RSS 2.0 — ONLINE
HALF ASSEDTECHNICAL NOTES_
EST. 1999ISSUE 04.2BEST VIEWED AT 1024 × 768
TECHNICAL NOTES / TECHNICAL NOTES / SECURITY / RECORD a392c8
[SECURITY]NOTE

Third-party script hosts after the polyfill.io incident

POSTED: 02.07.2024AUTHOR: ADMIN6 MIN READCOMMENTS: 0

In late June 2024 the polyfill.io domain, sold earlier in the year, was reported to be injecting malicious redirects into scripts embedded by a very large number of sites. The pages affected had not changed; the party answering the request had.

Inventory script origins

List every external host from which production pages load executable code, including references inside tag managers, old templates and archived microsites. Record why each is used and who approved it. A dependency added in 2016 and never reviewed is still a dependency.

Remove or self-host

Most browsers in a current support policy no longer require the polyfills this service supplied; remove the reference where that is so. Where a script is still needed, serve a reviewed, versioned copy from the organisation’s own origin so that a change of ownership elsewhere cannot alter it.

Constrain what remains

Apply Subresource Integrity to static third-party files and restrict script sources with Content Security Policy. Note that integrity hashes cannot protect a response that legitimately varies by browser, which is the model this service used; such endpoints must be trusted completely or not used.

OWNERSHIP CHECK

A script tag is a standing instruction to execute whatever the named host returns. Review the hosts periodically, not only the code they returned on the day of integration.