Reflected XSS

Stored XSS

An attacker can use JS to ➖

Finding XSS

As mentioned above, your payload can be added to different aspects of a page. One common aspect is between HTML tags. For example, imagine that a username is added inside the paragraph tags like

*<p> username </p>*

While just entering <script></script> may work. We want to close the paragraph tags. We could use the payload

*</p><script>alert(document.cookie);</script><p>hi*