4.4.1, 4.2.7, and 4.0.11 Security Advisory

Wednesday, Oct 16th, 2013
Summary
=======

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

* A CSRF vulnerability in process_bug.cgi affecting Bugzilla 4.4 only
  can lead to a bug being edited without the user consent.

* A CSRF vulnerability in attachment.cgi can lead to an attachment
  being edited without the user consent.

* Several unfiltered parameters when editing flagtypes can lead to XSS.

* Due to an incomplete fix for CVE-2012-4189, some incorrectly filtered
  field values in tabular reports can lead to XSS.

All affected installations are encouraged to upgrade as soon as
possible.


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

Class:       Cross-Site Request Forgery
Affected:    4.4rc1 to 4.4
Fixed In:    4.4.1
Description: When a user submits changes to a bug right after another
             user did, a midair collision page is displayed to inform
             the user about changes recently made. This page contains
             a token which can be used to validate the changes if the
             user decides to submit his changes anyway. A regression
             in Bugzilla 4.4 caused this token to be recreated if a
             crafted URL was given, even when no midair collision page
             was going to be displayed, allowing an attacker to bypass
             the token check and abuse a user to commit changes on his
             behalf.
References:  https://bugzilla.mozilla.org/show_bug.cgi?id=911593
CVE Number:  CVE-2013-1733


Class:       Cross-Site Request Forgery
Affected:    2.16rc1 to 4.0.10, 4.1.1 to 4.2.6, 4.3.1 to 4.4
Fixed In:    4.0.11, 4.2.7, 4.4.1
Description: When an attachment is edited, a token is generated to
             validate changes made by the user. Using a crafted URL,
             an attacker could force the token to be recreated,
             allowing him to bypass the token check and abuse a user
             to commit changes on his behalf.
References:  https://bugzilla.mozilla.org/show_bug.cgi?id=913904
CVE Number:  CVE-2013-1734


Class:       Cross-Site Scripting
Affected:    2.17.1 to 4.0.10, 4.1.1 to 4.2.6, 4.3.1 to 4.4
Fixed In:    4.0.11, 4.2.7, 4.4.1
Description: Some parameters passed to editflagtypes.cgi were not
             correctly filtered in the HTML page, which could lead
             to XSS.
References:  https://bugzilla.mozilla.org/show_bug.cgi?id=924802
CVE Number:  CVE-2013-1742


Class:       Cross-Site Scripting
Affected:    4.1.1 to 4.2.6, 4.3.1 to 4.4
Fixed In:    4.2.7, 4.4.1
Description: Due to an incomplete fix for CVE-2012-4189, some
             incorrectly filtered field values in tabular reports
             could lead to XSS.
References:  https://bugzilla.mozilla.org/show_bug.cgi?id=924932
CVE Number:  CVE-2013-1743


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

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

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

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

  https://www.bugzilla.org/download/


Credits
=======

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


Issue 1 Reporter: Mateusz Goik
Issue 1 Fixed by: Frédéric Buclin, David Lawrence


Issue 2 Reporter: Mateusz Goik
Issue 2 Fixed by: Frédéric Buclin, David Lawrence


Issue 3 Reporter: Mateusz Goik
Issue 3 Fixed by: Frédéric Buclin, David Lawrence


Issue 4 Reporter: Mateusz Goik
Issue 4 Fixed by: Frédéric Buclin, David Lawrence

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

  https://www.bugzilla.org/

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