Created
October 23, 2015 08:55
-
-
Save ramchiranjeevi/d93ecfcca692921b101d to your computer and use it in GitHub Desktop.
OutPut Encoding demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| res_name:'<img src=x onerror=alert(1)>', | |
| enc_res_name: '<img src=x onerror=alert(1)> test asdf as dfasd fasd fad fasd fa dsf', enc_attr_res_name:'<img src=x onerror=alert(1)> test asdf as dfasd fasd fad fasd fa dsf', | |
| enc_url_res_name:'%3Cimg+src%3Dx+onerror%3Dalert%281%29%3E+test+asdf+as+dfasd+fasd+fad+fasd+fa+dsf', | |
| image_over: '<img onmouseover=“alert(‘haii’)"/>' | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "0.4.13", | |
| "dependencies": { | |
| "jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
| "ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/1.11.3/ember.debug.js", | |
| "ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/1.11.3/ember-template-compiler.js" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment