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
572206bd
Commit
572206bd
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
f4c9234a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
relogin.cgi
relogin.cgi
+10
-3
No files found.
relogin.cgi
View file @
572206bd
...
...
@@ -136,11 +136,18 @@ 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