From 53bd4df6f142c240d7beaa6b6789839da1f5f164 Mon Sep 17 00:00:00 2001 From: "justdave%bugzilla.org" <> Date: Mon, 25 Oct 2004 14:25:58 +0000 Subject: [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 r=vladd,justdave, a=justdave --- template/en/default/bug/show.xml.tmpl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'template/en/default') 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")) %] [% c.email FILTER xml %] [% c.time FILTER time FILTER xml %] @@ -63,6 +64,7 @@ [% IF displayfields.attachment %] [% FOREACH a = bug.attachments %] + [% NEXT IF a.isprivate && !UserInGroup(Param("insidergroup")) %] [% a.attachid %] [% a.date FILTER time FILTER xml %] -- cgit v1.2.3-24-g4f1b