OWASP Django Security Cheat Sheets
- Category
- OWASP
- Docs outline
- 12 sections
Official docs outline
cheatsheetseries.owasp.org- General Recommendations
DEBUG, SECRET_KEY, updates and middleware.
- Authentication
Django auth, password validators and hashers.
- Key Management
SECRET_KEY handling and rotation.
- Headers
Security headers and SecurityMiddleware.
- Content Security Policy
CSP in Django.
- Cookies
Session and CSRF cookie flags.
- CSRF
Django CsrfViewMiddleware usage.
- XSS
Template auto-escaping and unsafe filters.
- HTTPS
SECURE_SSL_REDIRECT and HSTS settings.
- Admin Panel URL
Hardening the Django admin.
- check --deploy
Using manage.py check --deploy.
- Django REST Framework
Throttling, permissions and serializer safety in DRF.
Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.
More in OWASP
All 33- OWASP Authorization Cheat Sheets
- OWASP CI/CD and Supply Chain Cheat Sheets
- OWASP Cryptographic Storage Cheat Sheets
- OWASP CSRF Prevention Cheat Sheet
-
OWASP Dependency-Check
- OWASP Deserialization Cheat Sheet
- OWASP Docker Security Cheat Sheet
- OWASP File Upload Cheat Sheet
- OWASP GraphQL Cheat Sheet
- OWASP Injection Prevention Cheat Sheets
- OWASP Input Validation Cheat Sheets
- OWASP Kubernetes Security Cheat Sheet