XSS Vulnerability Scenarios: XSS vulnerability challenges and bypass examples

XSS vulnerability challenges

XSS Vulnerability Scenarios (challenges)

This repository is a Dockerized php application containing some XSS vulnerability challenges.
The ideas behind the challenges are:

  • Javascript validation bypass
  • html entities bypass
  • WAF bypass
  • Black-list validation bypass
  • Basic XSS validation bypass
  • Double encode bypass of WAF to exploit XSS
  • Exploiting XSS by bypassing escape characters

Install

Using docker hub (Quickest):

  1. To access the challenges, you need docker installed.
  2. Run this command to pull and run the image from docker hub:
    sudo docker run -d -p 9003:80 moeinfatehi/xss_vulnerability_challenges
  3. Access the challenges with this URL: http://localhost:9003

Help:

-d: detached mode (You can use terminal after running command
-p: specifies port (you can change 8008 to whatever you want. If you don’t have a web server on your host, set it to 80)

Using docker-compose:

  1. To access the challenges, you need docker and docker-compose installed.
  2. Clone the repository
    git clone https://github.com/moeinfatehi/xss_vulnerability_challenges.git
  3. Open the main directory of the project (where the docker-compose.yml file exists) and run: docker-compose up
  4. Access the challenges with this URL: http://localhost:9003

Source: https://github.com/moeinfatehi/