Review 12.4 Merged

91830[TASK] Apply CSP sandbox mode to fileadmin's .htaccess configuration

Oliver Hader CR +2 V +2 Normal +56 −2 updated 11/23/25, 09:58

Commit message

The directive `Content-Security-Policy: sandbox;` restricts
several client-side actions for files that may contain markup
(e.g., HTML, SVG):

* Disallows downloads
* Disallows form submissions
* Disallows modals and popups
* Disallows orientation and pointer lock
* Disallows presentation sessions
* Disallows navigation of the top-level browsing context

This applies only to resources located in the default file storage
location (e.g., `/fileadmin/`). Rendering Fluid templates from a
different location within the CMS application uses TYPO3's dynamic
CSP feature instead.

This change is considered a hardening and prevention measure.

Review

  • Code review CR +2 Done
    • Oliver Hader +2
  • Verified V +2 Done
    • Oliver Hader +2
    • core-ci +1 CI

Issues 1

Files 2

Review log 45

  1. Oliver Hader uploaded patch set 1 11/23/25, 09:45

  2. Oliver Hader commented on patch set 1 11/23/25, 09:47

    Forgotten to be backported to v12.4 in May 2025.
  3. core-ci voted on patch set 1 V +1 11/23/25, 09:52 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/90734

  4. Oliver Hader voted on patch set 1 CR +2 V +2 11/23/25, 09:58

  5. Oliver Hader merged patch set 2 11/23/25, 09:58