Skip to content

LAB 20 - Stored XSS into onclick event with angle brackets and double quotes HTML-encoded and single quotes and backslash escaped

Initial instructions

This lab contains a stored cross-site scripting vulnerability in the comment functionality.

To solve this lab, submit a comment that calls the alert function when the comment author name is clicked.

To complete this lab I used the following XSS payload.

http://foo?'-alert(1)-'

So I entered this payload into Website section when posting a comment.

alt text

So I posted the comment and it worked.

Congratulations, you solved the lab!