This repository contains a vulnerable Python Flask application designed to test CodeQL's optimized configuration.
- SQL Injection -
/usersendpoint - Command Injection -
/pingendpoint - Path Traversal -
/viewendpoint - Reflected XSS -
/searchendpoint - Hardcoded Credentials -
/secretendpoint - Insecure Deserialization -
/deserializeendpoint - Weak Cryptography (MD5) -
/hashendpoint - File Upload Vulnerability -
/uploadendpoint - Debug Mode Enabled - Flask app runs in debug mode
This repository is configured with an optimized CodeQL setup that should:
- Detect all real security vulnerabilities
- Filter out false positives (unused imports, unused variables)
- Provide high-precision results
pip install -r requirements.txt
python app.pyRun the "Optimized CodeQL Analysis" workflow from the Actions tab to test the configuration.