summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorjustdave%bugzilla.org <>2004-10-25 16:25:58 +0200
committerjustdave%bugzilla.org <>2004-10-25 16:25:58 +0200
commit53bd4df6f142c240d7beaa6b6789839da1f5f164 (patch)
treeb289d2cc6c469fb86b67461f76e0b88521a58643 /template
parent23df77be557e495a78808769378ce1f29ac00b4f (diff)
downloadbugzilla-53bd4df6f142c240d7beaa6b6789839da1f5f164.tar.gz
bugzilla-53bd4df6f142c240d7beaa6b6789839da1f5f164.tar.xz
[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
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/show.xml.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/template/en/default/bug/show.xml.tmpl b/template/en/default/bug/show.xml.tmpl
index 97d3dee67..37cead53d 100644
--- a/template/en/default/bug/show.xml.tmpl
+++ b/template/en/default/bug/show.xml.tmpl
@@ -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>