Python
Django
Section titled “Django”Django is a widely-used server-side web framework written in Python.
Popularity: According to StackOverflow’s 2022 Developer Survey, Django is the #1 most popular Python framework that can be used to build web applications or APIs.
Vulnerable Polls App
Section titled “Vulnerable Polls App”- Description: A vulnerable Django app that is based on the Django Polls tutorial. It contains a few XSS/SQLi issues and turns off the built in protections to prevent that.
- Source Code: https://github.com/vulnerable-apps/vuln_django_play
- Credentials: None
git clone https://github.com/vulnerable-apps/vuln_django_play.gitcd vuln_django_playdocker compose up --build
# Create App and TargetURL=http://127.0.0.1:8020APP="dvpwa"nightvision target create $APP $URL --type web
# Run the scannightvision scan $APPFlask is a microframework for building web applications and APIs with Python.
Popularity: According to StackOverflow’s 2022 Developer Survey, Flask is the second most popular Python framework that can be used to build web applications or APIs.
remediation-demo
Section titled “remediation-demo”- Description: Our NightVision Python flask remediation demo
- Source Code: https://github.com/vulnerable-apps/Remediation-Demo
- Findings: SQL Injection, Leaking Passwords
- Credentials: None
git clone https://github.com/vulnerable-apps/Remediation-Democd remediation-demo
# Run the applicationdocker-compose up -d
# Run a scannightvision target create remediation-demo http://127.0.0.1:5000 --type apinightvision swagger extract . -t remediation-demo --lang pythonnightvision scan remediation-demoNote you can run the check-endpoint.sh script to see a demonstration of the vulnerabilities.
To see a remediation change with most vulnerabilities resolved, checkout to the fix branch and run a new scan:
git checkout fixnightvision scan remediation-demoDamn Vulnerable Python Web App (DVPWA)
Section titled “Damn Vulnerable Python Web App (DVPWA)”- Description: “Damn Vulnerable Python Web App” - A Flask application that is vulnerable by design. It contains Cross-Site Scripting and SQL Injection.
- Source Code: https://github.com/vulnerable-apps/dvpwa.git
- Credentials:
- Username:
superadmin - Password:
superadmin
- Username:
git clone https://github.com/vulnerable-apps/dvpwa.gitcd dvpwa
# Start the appdocker-compose up -d
# Record authentication# After executing this command, simply close the browser windows# that were opened automaticallyURL="http://127.0.0.1:8080"APP="dpwa"nightvision target create $APP $URL --type apinightvision auth playwright create $APP $URL
# Run the scannightvision scan $APP --auth $APP