Skip to content

Instantly share code, notes, and snippets.

@shanimal
Last active January 2, 2016 01:09
Show Gist options
  • Save shanimal/8228717 to your computer and use it in GitHub Desktop.
Save shanimal/8228717 to your computer and use it in GitHub Desktop.
simple xss example
alert('Im a script located on gist.github via rawgithub and I\'ve been injected into this demo @' + document.location.origin)
alert('I have full access to JS to do things like read your cookies... Check this out... ' + document.cookie);
alert('I can also access the websites API to change your password or steal your credit card number');
alert('XSS can be used for Eve-ill');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment