Practical Reflected XSS Example using Burp Suite
This practical guide shows how to generate a proof-of-concept reflected XSS exploit using burp suite.
- Burp Suite
- In this example Firefox is used as web browser, but any browser that is compatible with Burp Suite can be used
- OWASP Broken Web Application Project
First the user needs to download Burp Suite.
Next, the user needs to download OWASP’s Broken Web Application Project to follow this tutorial. The example uses a version of "Mutillidae II" taken from OWASP's Broken Web Application Project. As this Web Application has a lot of vulnerabilities, it should only be started using VMNets with "host only” due to security reasons.
To run and configure Burp Suite, the author recommends to follow Burp Suites Browser Configuration Tutorial, since its very precise and easy to follow. It is also advised to install and import Burp Suites Certificate, since the user won’t be able to use Websites that use HTTPs as Protocol. The tutorial can be found here.
- Visit the page of the website you want to test for reflected XSS vulnerability. In this example we used the “DNS lookup” page.
- Return to Burp and switch the turn “Intercept is off” to “Intercept is on”
- Enter some appropriate input in to the web app and submit the request
- You should see that the web page is “stuck”. This is because we turned on the interception In Burp suite. The HTTP request is now captured by Burp, which can be viewed in the Proxy “Intercept” tab. Right click on the request and click “Send to Repeater”.
- Go to the “Repeater” tab. Here you can input various XSS payloads in the input field. We edit the “value” of the parameter. In this example we use a payload, that tries to perform a pop up in our browser.
- Click "Go"
- The user can assess whether the attack payload appears unmodified in his response. In our case it is, which means the application is almost certainly vulnerable to XSS.
- Right click on the response and click “Show response in browser” to copy the URL.
- In the window, that popped up, click “Copy” and paste it into your browser's address bar.
- You are now able to produce a proof of concept for this vulnerability.