diff options
author | Dylan William Hardison <dylan@hardison.net> | 2016-10-18 18:53:01 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2016-10-18 18:53:01 +0200 |
commit | 3e6736478603d9e881c12005e06845a25540fa4e (patch) | |
tree | f01806cbd036ee9b11bd5db03a99b6d720bf01a6 | |
parent | 2f310fba9800f9d106ad8090cbbfb628c53599a1 (diff) | |
download | bugzilla-3e6736478603d9e881c12005e06845a25540fa4e.tar.gz bugzilla-3e6736478603d9e881c12005e06845a25540fa4e.tar.xz |
Bug 1310747 - SSRF
-rwxr-xr-x | auth.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,8 +43,8 @@ ThrowUserError("auth_delegation_invalid_description") unless $description =~ /^[\w\s]{3,255}$/; my $callback_uri = URI->new($callback); -$callback_uri->scheme =~ /^https?$/ - or ThrowUserError('auth_delegation_illegal_protocol', { protocol => scalar $callback_uri->scheme }); +ThrowUserError('auth_delegation_illegal_protocol', { protocol => scalar $callback_uri->scheme }) + unless $callback_uri->scheme eq 'https'; my $callback_base = $callback_uri->clone; $callback_base->query(undef); |