No Content-Security-Policy headers on file download responses #173
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: LOW
Location
lib/Controller/ExportController.php,lib/Controller/ReportController.phpDescription
File download responses (CSV, PDF, ZIP) don't set
Content-Disposition: attachmentexplicitly in all cases, which could allow browser rendering of potentially malicious content (CSV injection).Recommendation
Always set
Content-Disposition: attachment; filename="..."andX-Content-Type-Options: nosniffon download responses.