[SECURITY] Bug 263780: Exporting a bug to XML exposes user comments and attachment summaries which are marked as private to users who are not members of the group allowed to see private comments and attachments. XML export is not exposed in the user interface, but is available to anyone who knows the correct URL to invoke it. This only affects sites that use the 'insidergroup' feature.

Patch by Joel Peshkin <bugreport@peshkin.net>
r=vladd,justdave, a=justdave
This commit is contained in:
justdave%bugzilla.org 2004-10-25 07:25:58 +00:00
Родитель f243824fa3
Коммит 4517130d1f
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -113,6 +113,10 @@ if ($cgi->param("field")) {
@fieldlist = $cgi->param("field");
}
unless (UserInGroup(Param("timetrackinggroup"))) {
@fieldlist = grep($_ !~ /_time$/, @fieldlist);
}
foreach (@fieldlist) {
$displayfields{$_} = 1;
}

Просмотреть файл

@ -53,6 +53,7 @@
[% IF displayfields.long_desc %]
[% FOREACH c = bug.longdescs %]
[% NEXT IF c.isprivate && !UserInGroup(Param("insidergroup")) %]
<long_desc>
<who>[% c.email FILTER xml %]</who>
<bug_when>[% c.time FILTER time FILTER xml %]</bug_when>
@ -63,6 +64,7 @@
[% IF displayfields.attachment %]
[% FOREACH a = bug.attachments %]
[% NEXT IF a.isprivate && !UserInGroup(Param("insidergroup")) %]
<attachment>
<attachid>[% a.attachid %]</attachid>
<date>[% a.date FILTER time FILTER xml %]</date>