Low severityPythonInsecure ConfigurationMEDIUM confidence
Flask Send File Max Age Disabled
SEND_FILE_MAX_AGE_DEFAULT is set to 0 (CWE-16), disabling caching headers on static responses; combined with missing security headers this weakens response hardening.
Standards mapping
- OWASP Top 10
- A05:2021 - Security Misconfiguration
- OWASP ASVS
- V14.4.3 (L1)
Vulnerable vs. safe
Flagged by this check
SEND_FILE_MAX_AGE_DEFAULT = 0Passes - the safe pattern
SEND_FILE_MAX_AGE_DEFAULT = 3600Why it matters & how to fix it
SEND_FILE_MAX_AGE_DEFAULT is set to 0 (CWE-16), disabling caching headers on static responses; combined with missing security headers this weakens response hardening. Set an appropriate max-age and add security headers (via flask-talisman or explicit Content-Security-Policy / X-Frame-Options).
References
Rule ID integsec-python-flask-send-file-max-age-disabled - engine: Opengrep - license: MIT - Copyright (c) IntegSec Inc.
TurboPentest runs this check automatically
Connect a GitHub repo and this check runs on every white-box pentest - AI-validated and reported with proof, from $99 per target.
Start a pentestRelated checks
- JavaScript / TypeScript - Insecure ConfigurationCORS Acao Wildcard Header
- JavaScript / TypeScript - Insecure ConfigurationCORS Wildcard Origin
- JavaScript / TypeScript - Insecure ConfigurationCORS Wildcard With Credentials
- JavaScript / TypeScript - Insecure ConfigurationCSRF Protection Disabled
- JavaScript / TypeScript - Insecure ConfigurationExpress Trust Proxy All
- JavaScript / TypeScript - Insecure ConfigurationExpress X Powered By Enabled