Was jquery.com compromised?
blog.jquery.com
blog.jquery.com
<script src="https://jquery.com/whatever.js" hash="sha256,deadbeef...">
The browser would refuse to load the script if its hash didn't match.This would be far safer than what we currently do.
It would also allow the browser to more aggressively cache scripts -- if it already has a script in the cache from another URI whose hash matches, e.g. because someone else included jquery from Google's CDN, it can substitute it in.
This has an easy legacy story, too; old browsers will just ignore the "hash" tag and behave as they currently do.
I've never seen the hash attr before. Is this an experimental feature that is already available on live browsers, or only a proposal?
I made this thing: https://github.com/ryancdotorg/VerifyJS
but it requires CORS headers from the CDN and isn't well tested.
ni:///
why 3 slashes? any clue?
ni:
//
<empty field>
/
file:: URIs can have it, too (http://superuser.com/questions/352133/what-is-the-reason-tha...)You could argue that a well-educated developer should know that and only use this for tagged releases though.
(The blog post talks about /jquery-latest.js, but I'd imagine the same goes for all the version-number-free urls.)
If all you're using jQuery for is a document.querySelectorAll polyfill + the most primitive event handling, you're possibly safe, as those don't change terribly often...but at that point, you should probably be using a different library or a custom build of jQuery.
In the standard draft, there's a discussion of caching risks: https://w3c.github.io/webappsec/specs/subresourceintegrity/#...
The problem isn't with the CDN. It was supposedly on jquery.com, so you would have had to visit that url directly.
That said, I don't disagree with the hash ID in case something there was a problem with the CDN.
Could there have been an injection at the ISP? Was it a DNS heist? Or another BGP compromise?
I must admit I'm quite intrigued and looking forward to seeing what the investigation uncovers.
https://www.dropbox.com/s/tfqpau25ugixiy6/Investigate_2014-0...
https://twitter.com/jquery/status/514811609752289281
"We have detected a new compromise of http://jquery.com and are taking action to mitigate the attack. Updates to follow."
Serves them right, noone should be using CDNs for code.
Yeah, no thanks. This is a mostly detectable payload and you can figure out if you are infected or not (using their own links).
Without any evidence this is a case of fear mongering.
This is the reason why being equipped for automatic reimaging of a server and quick rotation of keys and passwords should be standard practice nowadays.
With a proper setup you should be able to tell if you are dealing with something on the kernel level .vs typical script kiddie style attack.
Reloading server with 1000's customers is not that simple.
You mass inject with a low impact exploit and any high profile targets you stumble upon can be dropped a high impact rootkit.
You must be very, very sure before you decide you only got hit by a script kiddie attack.
You'll clean up the script kiddie trash, and call it a day.
A compromised Kernel can lie to you about everything, including the malware.
<body>I'm looking for a new job, I'm so sorry for this experiment with iframe, no one was injured, all files was permanently deleted. Greetz: Umputun, Bobuk, Gray, Ksenks @ radio-t.com My PGP public key is:
<key>
</body>
I think it's safe to say they've been hacked.[0]: https://news.ycombinator.com/item?id=5742893
ninja edit: qwertial aphasia
2) Yes
http://www.riskiq.com/resources/blog/jquerycom-malware-attac...
Earlier today, RiskIQ published a blog post stating that the jQuery.com web servers were compromised and serving the RIG exploit kit for a short period of time on the afternoon of September 18th. Our internal investigation into our servers and logs have not yet found the RIG exploit kit or evidence that there was in fact a compromise.
RiskIQ was able to make contact with the jQuery Infrastructure team on September 18th, at which point with members of the RiskIQ team tried to find evidence of compromise. So far the investigation has been unable to reproduce or confirm that our servers were compromised. We have not been notified by any other security firm or users of jquery.com confirming a compromise. Normally, when we have issues with jQuery infrastructure, we hear reports within minutes on Twitter, via IRC, etc.
At no time have the hosted jQuery libraries been compromised.
Currently the only potential system compromised is the web software or server that runs jquery.com. We have asked RiskIQ to help us look through our server logs and systems to help identify when and how a compromise happened. Please check this blog post for updates on the situation.
Even though we don’t have immediate evidence of compromise, we have taken the proper precautions to ensure our servers are secure and clean. If you happened to visit any of the our sites on September 18th and are afraid of your system being compromised you can follow the advice RiskIQ recommends:
Immediately re-image system Reset passwords for user accounts that have been used on the system See if any suspicious activity has originated from the offending system