this post was submitted on 26 Jun 2024
906 points (98.9% liked)

Technology

59398 readers
4884 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
 

Archived link

The polyfill.js is a popular open source library to support older browsers. 100K+ sites embed it using the cdn.polyfill.io domain. Notable users are JSTOR, Intuit and World Economic Forum. However, in February this year, a Chinese company bought the domain and the Github account. Since then, this domain was caught injecting malware on mobile devices via any site that embeds cdn.polyfill.io. Any complaints were quickly removed (archive here) from the Github repository.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 26 points 4 months ago* (last edited 4 months ago) (9 children)

and internet still works... Mostly

That load-bearing "mostly" is doing a lot of work here.

I invite everybody to find out how everything "mostly" works if you disable "most of" javascript – also have fun deciding which parts to enable because you think they're trustworthy

[–] [email protected] 14 points 4 months ago (3 children)

I actively do this with uMatrix - granted, I only block non-first-party JavaScript. Most sites I visit only require a few domains to be enabled to function. The ones that don't are mostly ad-riddled news sites.

There are a few exceptions to this - AWS and Atlassian come to mind - but the majority of what I see on the internet does actually work more or less fine when you block non-first-party JavaScript and some even when you do that. uMatrix also has handy bundles built-in for certain things like sites that embed YouTube, for example, that make this much easier.

Blocking non-first-party like I do does actually solve this issue for the most part, since, according to the article, only bundles that come from the cdn.polyfill.io domain itself that were the problem.

[–] [email protected] 7 points 4 months ago (2 children)

You're still trusting that the 1st party javascript won't be vulnerable to supply chain attacks, though

[–] [email protected] 2 points 4 months ago (1 children)

In my experience, first-party JavaScript is more likely to be updated so rarely that bugs and exploits are more likely than supply chain attacks. If I heard about NPM getting attacked as often as I hear about CDNs getting attacked, I'd be more concerned.

[–] [email protected] -1 points 4 months ago

Funny that they want you to allow all java scripts but then criticise first party scripts for being unsave.

I bet [insert random autocrat here] would approve of that message.

load more comments (5 replies)