question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cdn.jsdeliver.net (with an e) exactly mirrors cdn.jsdelivr.net, but appends malicious code to the end of every request

See original GitHub issue

here, here, here, and even on the error pages. Has jsDelivr been hacked? Looking up the url yields “GET RID OF THE FREECONTENT.DATE VIRUS”, which I’m sure are clickbait/template sites, or sometimes malware themeselves, but it’s still worrying.

Edit: I looked at the first search result, and while it advertises something that’s probably malware, it seems like it was written by hand, and talks about it being a browser hijacker, which seems somewhat accurate, given that the appended JS is linking to a JS script. Also, link to the script, gist mirror (wayback machine won’t archive it).

Edit1: I looked at #18049, and in case this is a regional issue, I’m in the Chicago area in the US.

Edit2: Added the decrypted code to the gist, which is what the script eventually evals once it atob’s a bunch of stuff.

Edit3: that script in turns links to a wasm.js (i think?) payload: link, and the mirror and decoded wasm.js are on this gist.

Edit4: It only happens on cdn.jsdeliver.net, with an e. I updated the title to match.

Edit5: I thought jsdeliver.net was just a mirror to jsdelivr.net, but I guess it’s registered by someone else, judging by a whois lookup.

So actual problem, somebody is impersonating your domain name and adding malware.

Edit6: Here’s a search for code on GitHub using the wrong domain.

Wayback machine snapshot

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
jimaekcommented, Dec 31, 2020

I reported the abuse to the new registar. Lets see if that solves the problem

3reactions
jimaekcommented, May 9, 2018

The domain registrar just suspended their domain. It will take some time to propagate but I think the problem is solved. Thanks for reporting @coolreader18

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zach Edwards infosec.exchange/@thezedwards on Twitter ...
cdn.jsdeliver.net (with an e) exactly mirrors cdn.jsdelivr.net, but appends malicious code to the... here, here, here, and even on the error pages. Has...
Read more >
Make Your Own Little (Easy-to-Update) CDN - Chris Coyier
Step 1) Make a GitHub Repo · Step 2) Link to them from jsDelivr instead · Step 3) Now your update strategy is...
Read more >
Using the Windows Azure Content Delivery Network (CDN)
One of the obvious reasons lies in the nature of the CDN itself: a CDN is globally distributed and caches static content on...
Read more >
Anne of Green Gables: Netflix's Bleak Adaptation Gets It All So ...
And though this 2017 production—titled, cutely, Anne with an E—didn't originate with Netflix (it's a Canadian Broadcasting Corporation ...
Read more >
The Mask of Mirrors by M.A. Carrick - Goodreads
The Mask of Mirrors is the unmissable start to the Rook & Rose trilogy, a darkly magical fantasy ... But it's also a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found