The following Flask App is vulnerable to common web vulnerabilities (OWASP Top 10).
Currently supported vulnerabilities are:
- Broken Access Control
- Server-Side Request Forgery (SSRF)
- XSS (stored and reflected)
Upcoming supported vulnerabilities:
- CSRF
I added a small explanation about each vulnerability and a possible way to fix it on the landing page (index/root). The code might contain more specifics on how to fix the particular vulnerability.
# We'll be using a virtual environment for installing the dependencies
py -3 -m venv py3-venv
py3-venv\Scripts\activate
# Install dependencies (will soon be replaced by requirements.txt)
pip install flask
pip install flask_wtf
# Start the web app
py app.py
Click on the GIFs to open an enlarged view.
- Create requirements.txt
- Remove Flask debugging
- Add more vulnerabilities :)