Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
09317bf9
Commit
09317bf9
authored
Feb 15, 2014
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 966676: The 'sudo' cookie should not be accessible from JavaScript
r=dkl a=justdave
parent
c91b8f3e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
relogin.cgi
relogin.cgi
+9
-2
No files found.
relogin.cgi
View file @
09317bf9
...
...
@@ -137,10 +137,17 @@ elsif ($action eq 'begin-sudo') {
# For future sessions, store the unique ID of the target user
my
$token
=
Bugzilla::Token::
_create_token
(
$user
->
id
,
'sudo'
,
$target_user
->
id
);
my
%
args
;
if
(
Bugzilla
->
params
->
{
ssl_redirect
})
{
$args
{
'-secure'
}
=
1
;
}
$cgi
->
send_cookie
(
'-name'
=>
'sudo'
,
'-expires'
=>
$time_string
,
'-value'
=>
$token
);
'-value'
=>
$token
,
'-httponly'
=>
1
,
%
args
);
# For the present, change the values of Bugzilla::user & Bugzilla::sudoer
Bugzilla
->
sudo_request
(
$target_user
,
$user
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment