9

Securing Flask Applications

Like any web application, Flask applications have vulnerabilities that require protection from external attacks, which exploit these software defects. These cyber-attacks are mainly due to broken access control problems, Cross-Site Scripting (XSS), Cross-Site Request Forgery (CSRF), Server-Side Request Forgery (SSRF), SQL Injection, and Denial-of-Service (DoS), as well as outdated modules and libraries.

Implementing security measures must be an utmost priority of any Flask application, especially if it is more dependent on external modules when building its models, repository layers, and workflow-related transactions. Using third-party libraries can inflict risks to the Flask applications because some library codes ...

Get Mastering Flask Web and API Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.