Javascript Highjacking Risk for AJAX Apps?
I *still* haven't had a moment to fire up JQuery, but this looks like something to check with the AJAX framework guys to confirm if it is an issue and when a patch might be released for your framework of choice . . .
I didn't find the sample attack scenario to be sufficiently detailed to get my head around the actual level of concern this should evoke. Perhaps someone who's played with JS a little more than me might like to comment?





I haven't delved any deeper, but slashdot users were saying it was an issue with JSON and storing the authentication keys in cookies only (not in the json data as well I guess). Of course I could be all wrong on this. Just started looking into it.
"In an example attack, a victim who has already authenticated themselves to an Ajax application, and has the login cookie in their browser, is persuaded to visit the attacker's web site. This web site contains JavaScript code that makes calls to the Ajax app. Data received from the app is sent to the attacker."
That said, I don't know how plausible a scenario that is, so it doesn't really answer the question of level of concern...
http://groups.google.com/group/jquery-en/msg/fb6ee...
Computer Business Review sure know how to stir the pot... We're going to be hearing about this article and the end of the world for weeks to come now :P
P.S. As linked in that post, the original whitepaper is here:
http://www.fortifysoftware.com/servlet/downloads/p...
1) Check for referer. If the page making the Ajax call or requesting the data belongs to your site, then let the request go through.
2) Pass CFID & CFTOKEN via your Ajax requests and validate them on the server side. Since an attacker can't, in theory, duplicate the URLToken key pair this would allow you to validate that its a valid session and pass data back or not.
Overall, I think Fortify is completely blowing this one out of proportion and everything I've read reinforces that conclusion. It is an issue to look into but its not as massive an issue as they're making it out to be. They're spreading FUD.
http://ajaxian.com/archives/towards-secure-ajax-ma...
points to:
http://www-128.ibm.com/developerworks/library/x-se...
Very interesting read.