aboutsummaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-02-16 11:37:21 -0500
committerDavid Lawrence <dkl@mozilla.com>2018-02-16 11:37:21 -0500
commit7b7a210cd57140e85c36c9c5bfed35389f7952d5 (patch)
tree187cf4086d6dcd21ae89c4aa584c7802ace3119f /attachment.cgi
parent415b428e8f135198463fb64178b1455ef1c32958 (diff)
downloadbugs-7b7a210cd57140e85c36c9c5bfed35389f7952d5.tar
bugs-7b7a210cd57140e85c36c9c5bfed35389f7952d5.tar.gz
bugs-7b7a210cd57140e85c36c9c5bfed35389f7952d5.tar.bz2
bugs-7b7a210cd57140e85c36c9c5bfed35389f7952d5.tar.xz
bugs-7b7a210cd57140e85c36c9c5bfed35389f7952d5.zip
Bug 1433400 (CVE-2018-5123) Prevent cross-site image requests from leaking contents of certain fields due to regex search
r=jfearn,a=dylan
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi1
1 files changed, 1 insertions, 0 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 40b0c9d3a..4cd9229fb 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -35,6 +35,7 @@ use Encode::MIME::Header; # Required to alter Encode::Encoding{'MIME-Q'}.
local our $cgi = Bugzilla->cgi;
local our $template = Bugzilla->template;
local our $vars = {};
+local $Bugzilla::CGI::ALLOW_UNSAFE_RESPONSE = 1;
# All calls to this script should contain an "action" variable whose
# value determines what the user wants to do. The code below checks