This lab contains a vulnerability in the comment functionality.
To solve this lab, submit a comment that calls the alert
function when the blog post is viewed.
After accessing the lab, I went straight to the comment section where I tried injecting some HTML tags to see if they would get rendered properly. It worked:
Seeing that the HTML tags were rendered, I proceeded to inject a script tag that runs an alert
.
By that, the lab is solved.