TL;DR: I took a small Flask application with 7 classic security flaws, ran list) against it, fixed everything it found, and automated the scan with GitHub Actions so no insecure code reaches
mainagain. Full code:
What SAST tool does your team use? Let me know in the comments! 👇
References: · CWE Top 25
↗ Original-Artikel auf dev.to lesenVollständiger Original-BerichtAusführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
Finding Security Bugs Before They Ship: Applying Bandit (SAST) to a Python Web App
- ▸ What is SAST and why should you care?
- ▸ The target: a deliberately vulnerable Flask app
- ▸ Running Bandit
- ↳ 🔴 High: command injection (B602, CWE-78)
- ↳ 🔴 High: weak hashing (B324, CWE-327)
- ↳ 🔴 High: Flask debug mode (B201, CWE-94)
- ↳ 🟡 Medium: SQL injection (B608, CWE-89)
- ▸ Fixing the findings
- ▸ Automating with GitHub Actions
- ▸ Strengths and limitations
- ▸ Conclusion
SOCIAL SHARE CARD GENERATOR