(Change SITE_NAME to DuckDuckNope for enhanced privacy.)
noople is a search engine that doesn't have any results. It is based on the Python Flask framework and SQLite.
noople can be used to demonstrate:
- Reading GET requests in Flask
- Processing SQL requests in Python
- Reflected XSS vulnerabilities
- Stored XSS vulnerabilities
- SQL injection vulnerabilities
Create a Python virtual environment, if you haven't already:
python3 -m venv venv
Activate your virtual environment:
source venv/bin/activate
Install the requirements:
pip3 install -r requirements.txt
Run the application:
export FLASK_APP=noople/search.py
flask run
Visit http://localhost:5000 in a web browser.
To fix this, use escape. See Flask escape
To fix this, use escape. See Flask escape
To fix this, use execute (instead of executescript) with bind variables. See sqlite3: execute