File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 88- Security: Fix remote image blocking bypass via various SVG animate attributes
99- Security: Fix remote image blocking bypass via a crafted body background attribute
1010- Security: Fix fixed position mitigation bypass via use of !important
11+ - Security: Fix XSS issue in a HTML attachment preview
1112
1213## Release 1.5.13
1314
Original file line number Diff line number Diff line change @@ -683,6 +683,9 @@ public static function display_uploaded_file($file)
683683 header ('Content-Type: ' . $ file ['mimetype ' ]);
684684 header ('Content-Length: ' . $ file ['size ' ]);
685685
686+ // Use strict security policy to make sure no javascript is executed
687+ header ("Content-Security-Policy: script-src 'none' " );
688+
686689 if (isset ($ file ['data ' ]) && is_string ($ file ['data ' ])) {
687690 echo $ file ['data ' ];
688691 }
You can’t perform that action at this time.
0 commit comments