JSON Security Issues

Rob Yates: “A user logs into a wiki on the corporate intranet. This wiki provides a JSON api with a callback function (Approach 3). The user then visits a rogue site on the internet. The page from the rogue site, when rendered in the user’s browser, performs a javascript include to the wiki’s json api passing a callback function. This results in data from the wiki being made available to the rogue site’s javascript function in the page via the callback. Further javascript, on the page, can then form POST the data back to the rogue site and as such the data can be stolen. Not good.

2 Responses to “JSON Security Issues”

  1. Yogesh Mujumdar Says:

    In that case, if I keep my google account logged in always, its a threat to all the google services I use. Am I right?

  2. James Says:

    Yogesh: I’m not all that familiar with the auth mechanism Google uses for it’s webapps so I’m not sure.