Skip to content
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

Use Angulars JSON Vulnrability Protection in all JSON replies #15

Open
Bochenski opened this issue Apr 12, 2013 · 0 comments
Open

Use Angulars JSON Vulnrability Protection in all JSON replies #15

Bochenski opened this issue Apr 12, 2013 · 0 comments
Assignees
Milestone

Comments

@Bochenski
Copy link
Member

JSON Vulnerability Protection
A JSON vulnerability allows third party website to turn your JSON resource URL into JSONP request under some conditions. To counter this your server can prefix all JSON requests with following string ")]}',\n". Angular will automatically strip the prefix before processing it as JSON.

For example if your server needs to return:

['one','two']
which is vulnerable to attack, your server can return:

)]}',
['one','two']
Angular will strip the prefix, before processing the JSON.

@ghost ghost assigned Bochenski Apr 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant