internal: add CSP header to files in /media (cherry-pick #12092)#12108
internal: add CSP header to files in /media (cherry-pick #12092)#12108gergosimonyi merged 1 commit intoversion-2024.10from
/media (cherry-pick #12092)#12108Conversation
add CSP header to files in `/media` This fixes a security issue of stored cross-site scripting via embedding JavaScript in SVG files by a malicious user with `can_save_media` capability. This can be exploited if: - the uploaded file is served from the same origin as authentik, and - the user opens the uploaded file directly in their browser Co-authored-by: Jens L. <jens@goauthentik.io>
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## version-2024.10 #12108 +/- ##
===================================================
+ Coverage 92.66% 92.67% +0.01%
===================================================
Files 761 761
Lines 37863 37863
===================================================
+ Hits 35085 35090 +5
+ Misses 2778 2773 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-6be59a78dd9174a7dc8aa9bbc8b3929cec5142ea
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sFor arm64, use these values: AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-6be59a78dd9174a7dc8aa9bbc8b3929cec5142ea-arm64
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-6be59a78dd9174a7dc8aa9bbc8b3929cec5142eaFor arm64, use these values: authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-6be59a78dd9174a7dc8aa9bbc8b3929cec5142ea-arm64Afterwards, run the upgrade commands from the latest release notes. |
Cherry-picked internal: add CSP header to files in
/media(#12092)add CSP header to files in
/mediaThis fixes a security issue of stored cross-site scripting via embedding
JavaScript in SVG files by a malicious user with
can_save_mediacapability.
This can be exploited if:
Co-authored-by: Jens L. jens@goauthentik.io