Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123646 - www-apps/bugzilla - multiple issues
Summary: www-apps/bugzilla - multiple issues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Security
URL:
Whiteboard: B4 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-21 12:44 UTC by Carsten Lohrke (RETIRED)
Modified: 2006-03-04 04:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Lohrke (RETIRED) gentoo-dev 2006-02-21 12:44:22 UTC
Security Advisory for Bugzilla 2.20, 2.21.1, and 2.18.4

Summary
=======

Bugzilla is a Web-based bug-tracking system, used by a large number of
software projects.

This advisory covers three security bugs that have recently been
discovered and fixed in the Bugzilla code:

+ The 'whinedays' and 'mostfreqthreshold' parameters are not correctly
  validated in editparams.cgi. The first one can lead to SQL injection.

+ Escaped HTML markup in titles of RSS feeds are incorrectly decoded by
  some RSS readers and could potentially lead to XSS vulnerabilities.

+ The login form on the home page, in conjuction with very specific
  configuation settings and a specially formed URL, may redirect you
  outside the Bugzilla installation, allowing the login name and password
  to be stolen.

All Bugzilla installations are advised to upgrade to the latest stable
version of Bugzilla, 2.20.1.

Development snapshots of 2.21 before 2.22rc1 are also vulnerable.
If you are using a development snapshot, you should upgrade to 2.22rc1,
use CVS to update, or apply the patches from the specific bugs listed below.

None of these vulnerabilities affect the old Bugzilla 2.16.x versions.

Vulnerability Details
=====================

Issue 1
-------
Class:       SQL injection
Versions:    2.17.1 and above
Description: The 'whinedays' parameter, editable from editparams.cgi,
             is not validated before being saved. This can lead to SQL
             injection in the whineatnews.pl script. This injection
             requires administrative privileges.
             The validation for the 'mostfreqthreshold' parameter is also
             missing, but this is not exploitable.
Reference:   https://bugzilla.mozilla.org/show_bug.cgi?id=312498


Issue 2
-------
Class:       Cross Site Scripting
Versions:    2.20rc1 - 2.20, 2.21.1
Description: Some RSS readers incorrectly decode escaped HTML markup in
             feed titles and this could be used to inject some scripts.
             Although this is not a Bugzilla bug, we prefer to shift to
             Atom feeds, where the RFC is unambiguous about HTML markup
             in feed titles.
Reference:   https://bugzilla.mozilla.org/show_bug.cgi?id=313441


Issue 3
-------
Class:       Sensitive Data Exposure
Versions:    2.19.3 and above
Description: When the Bugzilla login page is at a subdirectory of the web
             server and the subdirectory name is a resolvable host on the
             victim's local network, it is possible to craft a URL that,
             when used to login to Bugzilla, would send the user's
             credentials to this host.
             These conditions make this flaw very difficult to exploit.
Reference:   https://bugzilla.mozilla.org/show_bug.cgi?id=325079


Vulnerability Solutions
=======================

The fixes for all of the security bugs mentioned in this advisory
are included in the 2.18.5, 2.20.1, and 2.22rc1 releases. Upgrading
to these releases will protect installations from possible exploits
of these issues.

Full release downloads, patches to upgrade Bugzilla from previous
versions, and CVS upgrade instructions are available at:
  http://www.bugzilla.org/download.html

Specific patches for each of the individual issues can be found on the
corresponding bug reports for each issue, at the URL given in the
reference for that issue in the list above.


Credits
=======

The Bugzilla team wish to thank the following people for their
assistance in locating, advising us of, and assisting us to fix
these situations:

Fr
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2006-02-21 12:44:22 UTC
Security Advisory for Bugzilla 2.20, 2.21.1, and 2.18.4

Summary
=======

Bugzilla is a Web-based bug-tracking system, used by a large number of
software projects.

This advisory covers three security bugs that have recently been
discovered and fixed in the Bugzilla code:

+ The 'whinedays' and 'mostfreqthreshold' parameters are not correctly
  validated in editparams.cgi. The first one can lead to SQL injection.

+ Escaped HTML markup in titles of RSS feeds are incorrectly decoded by
  some RSS readers and could potentially lead to XSS vulnerabilities.

+ The login form on the home page, in conjuction with very specific
  configuation settings and a specially formed URL, may redirect you
  outside the Bugzilla installation, allowing the login name and password
  to be stolen.

All Bugzilla installations are advised to upgrade to the latest stable
version of Bugzilla, 2.20.1.

Development snapshots of 2.21 before 2.22rc1 are also vulnerable.
If you are using a development snapshot, you should upgrade to 2.22rc1,
use CVS to update, or apply the patches from the specific bugs listed below.

None of these vulnerabilities affect the old Bugzilla 2.16.x versions.

Vulnerability Details
=====================

Issue 1
-------
Class:       SQL injection
Versions:    2.17.1 and above
Description: The 'whinedays' parameter, editable from editparams.cgi,
             is not validated before being saved. This can lead to SQL
             injection in the whineatnews.pl script. This injection
             requires administrative privileges.
             The validation for the 'mostfreqthreshold' parameter is also
             missing, but this is not exploitable.
Reference:   https://bugzilla.mozilla.org/show_bug.cgi?id=312498


Issue 2
-------
Class:       Cross Site Scripting
Versions:    2.20rc1 - 2.20, 2.21.1
Description: Some RSS readers incorrectly decode escaped HTML markup in
             feed titles and this could be used to inject some scripts.
             Although this is not a Bugzilla bug, we prefer to shift to
             Atom feeds, where the RFC is unambiguous about HTML markup
             in feed titles.
Reference:   https://bugzilla.mozilla.org/show_bug.cgi?id=313441


Issue 3
-------
Class:       Sensitive Data Exposure
Versions:    2.19.3 and above
Description: When the Bugzilla login page is at a subdirectory of the web
             server and the subdirectory name is a resolvable host on the
             victim's local network, it is possible to craft a URL that,
             when used to login to Bugzilla, would send the user's
             credentials to this host.
             These conditions make this flaw very difficult to exploit.
Reference:   https://bugzilla.mozilla.org/show_bug.cgi?id=325079


Vulnerability Solutions
=======================

The fixes for all of the security bugs mentioned in this advisory
are included in the 2.18.5, 2.20.1, and 2.22rc1 releases. Upgrading
to these releases will protect installations from possible exploits
of these issues.

Full release downloads, patches to upgrade Bugzilla from previous
versions, and CVS upgrade instructions are available at:
  http://www.bugzilla.org/download.html

Specific patches for each of the individual issues can be found on the
corresponding bug reports for each issue, at the URL given in the
reference for that issue in the list above.


Credits
=======

The Bugzilla team wish to thank the following people for their
assistance in locating, advising us of, and assisting us to fix
these situations:

Frédéric Buclin
Phil Ringnalda
Myk Melez
Teemu Mannermaa


General information about the Bugzilla bug-tracking system can be found
at http://www.bugzilla.org/

Comments and follow-ups can be directed to the
netscape.public.mozilla.webtools newsgroup or the mozilla-webtools
mailing list; http://www.bugzilla.org/support/ has directions for
accessing these forums.
Comment 2 Renat Lumpau (RETIRED) gentoo-dev 2006-02-21 14:11:04 UTC
2.18.5 and 2.20.1 in CVS. 2.18.5 needs arch lovin'.
Comment 3 Markus Rothe (RETIRED) gentoo-dev 2006-02-22 07:07:10 UTC
stable on ppc64
Comment 4 Jeffrey Forman (RETIRED) gentoo-dev 2006-02-22 07:44:59 UTC
Just so those aware dont bug me...I know about the release, I'm on the bugzilla announce ML. I dont use the ebuild for bugs.gentoo.org because I hack at it a ton. Hopefully I can begin test this locally in the next coming days->week and try to schedule some downtime before I take another vacation in a few weeks.
Comment 5 Thierry Carrez (RETIRED) gentoo-dev 2006-02-22 10:02:33 UTC
Adjusting status
Comment 6 Tobias Scherbaum (RETIRED) gentoo-dev 2006-02-22 12:08:45 UTC
ppc stable
Comment 7 Gustavo Zacarias (RETIRED) gentoo-dev 2006-02-23 07:00:07 UTC
sparc stable.
Comment 8 Simon Stelling (RETIRED) gentoo-dev 2006-02-23 08:57:20 UTC
amd64 stable
Comment 9 Mark Loeser (RETIRED) gentoo-dev 2006-02-24 18:52:21 UTC
x86 done
Comment 10 Bryan Østergaard (RETIRED) gentoo-dev 2006-02-26 06:41:46 UTC
Stable on alpha.
Comment 11 Thierry Carrez (RETIRED) gentoo-dev 2006-02-26 09:24:00 UTC
Ready to vote.
I tend to say no. SQL injection requires admin privileges, and the other two are quite lame.
Comment 12 Stefan Cornelius (RETIRED) gentoo-dev 2006-02-26 09:47:57 UTC
* DerCorny seconds the no.
Comment 13 Thierry Carrez (RETIRED) gentoo-dev 2006-03-04 04:02:10 UTC
Closing, feel free to reopen if you intended to vote yes.