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
0cc1797a
Commit
0cc1797a
authored
May 16, 2016
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1253263 - (CVE-2016-2803) [SECURITY] XSS vulnerability in dependency graphs via bug summary
r/a=dkl
parent
16dd96bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
showdependencygraph.cgi
showdependencygraph.cgi
+7
-1
No files found.
showdependencygraph.cgi
View file @
0cc1797a
...
@@ -55,13 +55,19 @@ sub CreateImagemap {
...
@@ -55,13 +55,19 @@ sub CreateImagemap {
$default
=
qq{<area alt="" shape="default" href="$1">\n}
;
$default
=
qq{<area alt="" shape="default" href="$1">\n}
;
}
}
if
(
$line
=~
/^rectangle \((
.*),(.*)\) \((.*),(.*)\) (http[^ ]*) (\d+)(
\\n.*)?$/
)
{
if
(
$line
=~
/^rectangle \((
\d+),(\d+)\) \((\d+),(\d+)\) (http[^ ]*) (\d+)(?:
\\n.*)?$/
)
{
my
(
$leftx
,
$rightx
,
$topy
,
$bottomy
,
$url
,
$bugid
)
=
(
$1
,
$3
,
$2
,
$4
,
$5
,
$6
);
my
(
$leftx
,
$rightx
,
$topy
,
$bottomy
,
$url
,
$bugid
)
=
(
$1
,
$3
,
$2
,
$4
,
$5
,
$6
);
# Pick up bugid from the mapdata label field. Getting the title from
# Pick up bugid from the mapdata label field. Getting the title from
# bugtitle hash instead of mapdata allows us to get the summary even
# bugtitle hash instead of mapdata allows us to get the summary even
# when showsummary is off, and also gives us status and resolution.
# when showsummary is off, and also gives us status and resolution.
# This text is safe; it has already been escaped.
my
$bugtitle
=
$bugtitles
{
$bugid
};
my
$bugtitle
=
$bugtitles
{
$bugid
};
# The URL is supposed to be safe, because it's built manually.
# But in case someone manages to inject code, it's safer to escape it.
$url
=
html_quote
(
$url
);
$map
.=
qq{<area alt="bug $bugid" name="bug$bugid" shape="rect" }
.
$map
.=
qq{<area alt="bug $bugid" name="bug$bugid" shape="rect" }
.
qq{title="$bugtitle" href="$url" }
.
qq{title="$bugtitle" href="$url" }
.
qq{coords="$leftx,$topy,$rightx,$bottomy">\n}
;
qq{coords="$leftx,$topy,$rightx,$bottomy">\n}
;
...
...
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