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

Technology

58305 readers
3209 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] 175 points 3 months ago (37 children)

nah. over 100k sites ignored dependency risks, even after the original owners warned them this exact thing would happen.

the real story is 100k sites not being run appropriately.

[–] [email protected] 21 points 3 months ago* (last edited 3 months ago) (5 children)

100k sites ignored dependency risks

JS: typing systems are boring, warnings are boring, security is boring.

[–] Cosmicomical -5 points 3 months ago (2 children)

Sure, the package managers of other languages are super safe

[–] [email protected] 12 points 3 months ago (1 children)

You're confused. It's unrelated to package managers, it's about basic security principles like this: https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity but JS devs don't care.

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

Finding new ways webshits fuck up the most basic development principles boggles my mind. It's like they intentionally stay ignorant.

[–] [email protected] 1 points 3 months ago

We know, but we don’t have time to change. We have another site waiting to get slammed out as soon as the one we’re working on, which was underfunded with a ridiculous timeline goes live.

There’s still a fair bit of “my nephew makes websites, it can’t be that [hard, expensive, time consuming], oh and by the way, e we need a way to edit every word and image on the site, that both our intern and barely literate CEO can understand, even though we’re literally never going to edit anything ever.”

[–] [email protected] 2 points 3 months ago

They're widely variable. PyPI gets into about as much trouble as npm, but I haven't heard of a successful attack on CPAN in years (although that may be because no one cares about Perl anymore).

load more comments (2 replies)
load more comments (33 replies)