Reflected XSS into attribute with angle brackets HTML encoded
Description
This lab contains a reflected cross-site scripting vulnerability in the search blog functionality where angle brackets are HTML-encoded. To solve this lab, perform a cross-site scripting attack that injects an attribute and calls the alert function.
Approach
After accessing the lab, I tried injecting various tags and XSS payloads into the search bar, but they were all filtered. I then sent a request to Burp Suite Repeater and noticed that the input was placed as the value of an attribute inside a tag. For example, when I sent ichyaboy: