ProfessionalCommunity Edition

Testing for reflected XSS manually with Burp Suite

  • Last updated: March 1, 2024

  • Read time: 2 Minutes

Reflected cross-site scripting (or XSS) occurs when an application receives data in an HTTP request and includes that data within the immediate response in an unsafe way.

While Burp Scanner can detect reflected XSS, you can also manually test applications for reflected XSS using Burp Repeater. Burp Repeater enables you to manipulate HTTP requests directly, making it easier to test whether reflected input is adequately sanitized or filtered server-side.

Before you start

Identify a request that reflects input. For more information, see Identifying reflected input.


You can follow along with the steps below using the Reflected XSS into HTML context with nothing encoded Web Security Academy lab.

To test for reflected XSS in Burp Repeater:

  1. Note the location of the reflected input and the context in which the input is reflected. For example, in the lab the input is reflected inside an HTML <h1> element. This affects the potential XSS vectors you can use to construct an attack.

  2. In the response panel, select > Auto scroll when text changes.

  3. Change the canary to an XSS proof of concept attack. For example, you could use the alert() function by replacing the canary string with <script>alert(1)</script>.

  4. Send the proof of concept request. Burp Repeater highlights any changes between the new and original responses.

  5. If necessary, repeat steps 3 and 4 until you find a proof of concept that is returned in the response.

  6. Right-click on the request in and select Show response in browser. Burp Suite displays a dialog containing a URL.
  7. Copy and paste this URL into your browser to see if the proof of concept ran successfully.

Was this article helpful?