~ubuntu-branches/debian/squeeze/bugzilla/squeeze

« back to all changes in this revision

Viewing changes to debian/maintenance/85_cve-2011-2380.sh

  • Committer: Package Import Robot
  • Author(s): Jonathan Wiltshire
  • Date: 2012-01-07 14:16:43 UTC
  • Revision ID: package-import@ubuntu.com-20120107141643-1ch1qr3eany7set2
Tags: 3.6.2.0-4.5
* Non-maintainer upload.
* Add security patches:
  - 87_cve-2011-3657.sh
    Tabular and graphical reports, as well as new charts have
    a debug mode which displays raw data as plain text. This
    text is not correctly escaped and a crafted URL could
    use this vulnerability to inject code leading to XSS.
  - 88_cve-2011-3667.sh
    The User.offer_account_by_email WebService method ignores
    the user_can_create_account setting of the authentication
    method and generates an email with a token in it which the
    user can use to create an account. Depending on the
    authentication method being active, this could allow the
    user to log in using this account.
    Installations where the createemailregexp parameter is
    empty are not vulnerable to this issue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# CVE-2011-2979
 
3
# CVE-2011-2380
 
4
set -e
 
5
 
 
6
echo "> $0 $*"
 
7
 
 
8
cd "$1" && patch -p1 < "$0"
 
9
 
 
10
exit 0
 
11
 
 
12
Description: CVE-2011-2979/2380  Group Information Leak
 
13
Origin: http://bzr.mozilla.org/bugzilla/3.6/revision/7251
 
14
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=753447
 
15
 
 
16
--- a/Bugzilla/Bug.pm   2010-10-28 15:27:58 +0000
 
17
+++ b/Bugzilla/Bug.pm   2011-08-04 20:13:15 +0000
 
18
@@ -1403,7 +1403,7 @@
 
19
             || ThrowUserError("invalid_group_ID");
 
20
 
 
21
         # This can only happen if somebody hacked the enter_bug form.
 
22
-        ThrowCodeError("inactive_group", { name => $group->name })
 
23
+        ThrowCodeError("inactive_group", { group_id => $id })
 
24
             unless $group->is_active;
 
25
 
 
26
         my $membercontrol = $controls->{$id}
 
27
 
 
28
--- a/template/en/default/global/code-error.html.tmpl   2010-12-30 16:50:29 +0000
 
29
+++ b/template/en/default/global/code-error.html.tmpl   2011-08-04 20:13:15 +0000
 
30
@@ -217,8 +217,8 @@
 
31
     A legal [% field FILTER html %] was not set.
 
32
 
 
33
   [% ELSIF error == "inactive_group" %]
 
34
-    Attempted to add [% terms.bug %] to the '[% name FILTER html %]'
 
35
-    group, which is not used for [% terms.bugs %].
 
36
+    Attempted to add [% terms.abug %] to group ID [% group_id FILTER html %],
 
37
+    which is not used for [% terms.bugs %].
 
38
 
 
39
   [% ELSIF error == "invalid_attach_id_to_obsolete" %]
 
40
      The attachment number of one of the attachments you wanted to obsolete,
 
41