/xss-examples

Simple XSS examples for a university assignment

Primary LanguageSmarty

XSS Examples

Simple examples of XSS attacks and protections for a Auditing and Systems Security assignment @ Federal University of Fronteira Sul.

Presentation slides (PT-BR)

Scenarios

  • Reflected XSS (/xss/reflected)
  • Persistent XSS (/xss/persistent)
  • DOM XSS (/xss/dom) # TODO

Setup

Requirements

  • Python 3
  • Bottle (installed via PIP)
$ pip install -r requirements.txt

Running

You can setup the following env vars:

  • HOST_ADDR (default to 'localhost')
  • PORT (default to 3000)

And then:

$ python server.py

Or even:

$ PORT=8000 python server.py