bWAPP - Cross Site Scripting Reflected(GET)

bWAPP – Cross Site Scripting Reflected (GET)

In this walk through, we will be going through the Cross Site Scripting Reflected (GET) vulnerability section from bWAPP Labs. We will be exploring and exploiting Reflected Cross Scripting vulnerability in HTTP GET Requests and learn how application are affected because of it. So, let’s get started with the Hacking without any delay.

Cross Site Scripting Reflected(GET)

Security: Low

  • Setting the security level to Low.

Security Level Low

  • The application has a page where user’s first and name is asked and post submitting that it got reflect in the page itself with a greetings. It issues a GET request to xss_get.php for the execution.

XSS - Reflected (GET)

Hello Friend

Burpsuite intercept

  • I used the below payload and pop up an alert, confirming the XSS vulnerability.



Hacked pop up alert

Security: Medium

  • Setting the security level to Medium.

Security level Medium

  • I used the previously used payload and it didn’t worked.


Welcome Hello

  • Checked the source code, found out that the application is using addslashes now to mitigate the XSS.

Application Source code

  • I was able to generate a pop-up using the below payload. Thus, bypassing the sanitization.



Pop up alert

  • This is not working on high level.

Also Read: bWAPP – Cross Site Scripting Reflected (PHP_Self)



So, we finally completed all the security levels for the bWAPP Cross Site Scripting Reflected (GET) Vulnerability. We looked into the various ways how application has been set up in various levels and how we can bypass the security controls implemented. Reflected-XSS attacks can be mitigated by performing input sanitization on endpoints, whitelist the allowed characters in the input and using a WAF. On that note, i will take your leave and will meet you in next one with another bWAPP vulnerability writeup, till then “Keep Hacking”.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top