Reflected XSS
What is Reflected XSS?
Reflected XSS arises when an application receives data in an HTTP request and includes that data within the immediate response in an unsafe way. Suppose a website has a search function which receives the user-supplied search term in a URL parameter:
The application echoes the supplied search term in the response to this URL:
Assuming the application doesn't perform any other processing of the data, an attacker can construct an attack like this:
This URL results in the following response:
Finding Reflected XSS
Reference
Last updated