Django Security Tips
Description
Tip 1. Carefully handle user uploads If your web application allows users to upload files, you are opening yourself to an attack vector and the upload logic should, therefore, be handled carefully. It is important to validate all uploaded files to be sure they are what you expect (for instance, an image file and not a PHP script!) If your site accepts file uploads, it is strongly advised that you limit these uploads in your Web server configuration to a reasonable size in order to prevent denial of service (DOS) attacks.
Recommendation: https://www.freecodecamp.org/news/complete-back-en…
Sources:
https://docs.djangoproject.com/en/3.0/topics/secur…
https://owasp.org/www-project-top-ten/OWASP_Top_Te…
https://snyk.io/blog/django-security-tips/
Linkedin Feel free to contact me.