Files
Robert SpeicherandTomasz Maczukin 934d12102f Merge branch '17298-wiki-xss' into 'master'
Forbid scripting for wiki files

Wiki files (not pages - files in the repo) are just sent to the browser
with whatever content-type the mime_types gem assigns to them based on
their extension. As this is from the same domain as the GitLab
application, this is an XSS vulnerability.

Set a CSP forbidding all sources for scripting, CSS, XHR, etc. on these
files.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/17298.

See merge request !1969
2016-06-14 19:30:27 +02:00
..
2015-12-11 18:02:09 +01:00
2015-12-03 08:53:34 -06:00
2015-12-15 00:53:52 -02:00
2015-11-30 16:12:31 +02:00
2015-12-11 18:02:10 +01:00