2.18.4, 2.20, and 2.21.1 Security Advisory

Monday, Feb 20th, 2006

Bugzilla is a Web-based bug-tracking system used by a large number of
software projects. The following security issue has been discovered
in Bugzilla:

* 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
configuration settings and a specially formed URL, may redirect you
outside the Bugzilla installation, allowing the login name and password
to be stolen.

All affected installations are encouraged to upgrade as soon as

Vulnerability Details

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.
References:  https://bugzilla.mozilla.org/show_bug.cgi?id=312498

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.
References:  https://bugzilla.mozilla.org/show_bug.cgi?id=313441

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.
References:  https://bugzilla.mozilla.org/show_bug.cgi?id=325079

Vulnerability Solutions

The fix for this issue is included in the 
releases. Upgrading to a release with the relevant fix will
protect your installation from possible exploits of this issue.

If you are unable to upgrade but would like to patch just the security
vulnerability, there are patches available for the issue at the
"References" URL.

Full release downloads, patches to upgrade Bugzilla from previous
versions, and git upgrade instructions are available at:



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

Issue 1 Reporter: Frédéric Buclin
Issue 1 Fixed by: Frédéric Buclin, Teemu Mannermaa

Issue 2 Reporter: Phil Ringnalda
Issue 2 Fixed by: Phil Ringnalda, Frédéric Buclin, Myk Melez

Issue 3 Reporter: Frédéric Buclin
Issue 3 Fixed by: Frédéric Buclin

General information about the Bugzilla bug-tracking system can be found


Comments and follow-ups can be directed to the mozilla.support.bugzilla
newsgroup or the support-bugzilla mailing list.
https://www.bugzilla.org/support/ has directions for accessing these