3.0.4, 3.1.4, and 2.22.4 Security Advisory

Tuesday, Aug 12th, 2008
Summary
=======

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:

* Local files on the server can be attached to a bug (making them
  publicly visible) when importing bugs with --attach_path

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


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

Class:       Directory Traversal
Affected:    2.22.1 - 2.22.4, 2.23.3 and higher
Description: When importing bugs using importxml.pl, the --attach_path
             option can be specified, pointing to the directory where
             attachments to import are stored. If the XML file being
             read by importxml.pl contains a malicious
             <data encoding="filename">../relative_path/to/local_file</data>
             node, the script follows this relative path and attaches the
             local file pointed by it to the bug, making the file public.
             The security fix makes sure the relative path is always
             ignored.
             Most Bugzilla installations will not be vulnerable, as
             they do not use --attach_path with importxml.pl.
             (In fact, most installations don't use importxml.pl at all.)
References:  https://bugzilla.mozilla.org/show_bug.cgi?id=437169


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:

  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:


Reporter: Ilja van Sprundel
Fixed by: Greg Hendricks, Frédéric Buclin

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.