-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Security enhancement: JSON Vulnerability Protection #7
Comments
Thank's for the hint and the link. It seems Angular works with ")]}',\n", but is it a standard mean? For instance at http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx it says : The ASP.NET AJAX library uses the "d" parameter formatting for JSON data. This forces the data in the example to appear in the following form: Perhaps we should manage the both? JAX-RS provider should manage that too But how to pass this info to the provider? With an annotation? A global configuration? |
A global configuration might be nice. Maybe specified along with context-param mongoURI in the web.xml? |
May I suggest MongoStreamingOutput could be changed to add escaping characters:
This prevents a type of JSON attack, described here http://docs.angularjs.org/api/ng.$http (see heading 'JSON Vulnerability Protection')
The text was updated successfully, but these errors were encountered: