No Content-Security-Policy headers on file download responses #173

Closed
opened 2026-04-10 16:04:17 +02:00 by shahondin1624 · 0 comments
Owner

Severity: LOW

Location

lib/Controller/ExportController.php, lib/Controller/ReportController.php

Description

File download responses (CSV, PDF, ZIP) don't set Content-Disposition: attachment explicitly in all cases, which could allow browser rendering of potentially malicious content (CSV injection).

Recommendation

Always set Content-Disposition: attachment; filename="..." and X-Content-Type-Options: nosniff on download responses.

## Severity: LOW ## Location `lib/Controller/ExportController.php`, `lib/Controller/ReportController.php` ## Description File download responses (CSV, PDF, ZIP) don't set `Content-Disposition: attachment` explicitly in all cases, which could allow browser rendering of potentially malicious content (CSV injection). ## Recommendation Always set `Content-Disposition: attachment; filename="..."` and `X-Content-Type-Options: nosniff` on download responses.
shahondin1624 added the backendsecuritypriority:low labels 2026-04-10 16:04:17 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shahondin1624/Mitgliederverwaltung#173