Resources
Python example applications
Three Python applications. Before you start, see Before you start.
Vulnerable Polls App (Django)
Section titled “Vulnerable Polls App (Django)”- What it is: the Django polls tutorial with its built-in protections turned off.
- Source: github.com/vulnerable-apps/vuln_django_play
- Expect to find: cross-site scripting and SQL injection.
- Login: none.
git clone https://github.com/vulnerable-apps/vuln_django_play.gitcd vuln_django_play
# Start the applicationdocker compose up --build -d
# Create a web application and scanAPP=vuln-django-playnightvision target create $APP http://127.0.0.1:8020 --type webnightvision scan $APPRemediation Demo (Flask)
Section titled “Remediation Demo (Flask)”- What it is: a small Flask API with SQL injection and a leaked password file.
- Source: github.com/vulnerable-apps/Remediation-Demo
- Expect to find: SQL injection and leaked passwords.
- Login: none.
git clone https://github.com/vulnerable-apps/Remediation-Democd Remediation-Demo
# Start the applicationdocker compose up -d
# Create an API application, build its specification from the code, and scanAPP=remediation-demonightvision target create $APP http://127.0.0.1:5000 --type apinightvision openapi extract . --target $APP --lang pythonnightvision scan $APP- What it is: Damn Vulnerable Python Web App.
- Source: github.com/vulnerable-apps/dvpwa
- Expect to find: cross-site scripting and SQL injection.
- Login: username
superadmin, passwordsuperadmin.
git clone https://github.com/vulnerable-apps/dvpwa.gitcd dvpwa
# Start the applicationdocker compose up -d
APP=dvpwaURL=http://127.0.0.1:8080
# Create a web application and record the login: superadmin / superadminnightvision target create $APP $URL --type webnightvision auth playwright create $APP $URL
# Scan, signed innightvision scan $APP --auth $APPFor the frameworks Source intelligence reads in Python, see Python frameworks.