Stored XSS (Persistent XSS) - Inject payload gets stored in the back-end database and retrieve upon visiting the page.
Stored XSS is the most critical type and affects wider audience. It is also harder to remove.
Example:
If alert()
tag is blocked, use something like <plaintext>
.
<script>print()</script>
this also works.