Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to do 'JSON hijacking' on modern browser? [duplicate]

Recently I read some articles about 'JSON hijacking', and some of one is here.

So, I tried to do below on my browsers, Chrome 17(dev), Firefox 8, and IE8.

  • override Object or Array constructor
  • modify __defineSetter__ method
  • modify defineProperty method

But I couldn't do anything with (literal) JSON data.

Is 'JSON hijacking' problem all solved on modern browser? Or how can I reproduce it?

like image 202
Ohgyun Ahn Avatar asked Dec 21 '11 09:12

Ohgyun Ahn


People also ask

What is JSON hijacking?

JSON Hijacking is a kind of network security attack. In this attack, an attacker targets a system that has access to cross-domain-sensitive JSON data. This attack is similar to Cross-Site Request Forgery holding some differences.

What is JavaScript hijacking vulnerable framework?

JavaScript hijacking allows an attacker to bypass the Same Origin Policy in the case that a web application uses JavaScript to communicate confidential information. The loophole in the Same Origin Policy is that it allows JavaScript from any website to be included and executed in the context of any other website.


1 Answers

It's not about the legitimate application parsing the JSON - JSON hijacking is an information disclosure issue about some malicious party requesting your JSON data instead of the real application while the user is logged into the application that uses the api usually. Simple authentication does not help - as the browser sends the auth information e.g. auth-cookie for free :-/.

But with ES5 most current browser won't be affected anymore directly by this issue. Nonetheless, in depth defense rules! And may protect against future issues too or regressions and etc.

like image 96
dalini Avatar answered Nov 15 '22 12:11

dalini