=====================================================================
                                  CERT-Renater

                       Note d'Information No. 2005/VULN403
_____________________________________________________________________

DATE                      : 23/06/2005

HARDWARE PLATFORM(S)      : /

OPERATING SYSTEM(S)       : Systems running Trac.

======================================================================

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200506-21
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                             http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Severity: Normal
      Title: Trac: File upload vulnerability
       Date: June 22, 2005
       Bugs: #96572
         ID: 200506-21

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

Trac may allow remote attackers to upload files, possibly leading to
the execution of arbitrary code.

Background
==========

Trac is a minimalistic web-based project management, wiki and bug
tracking system including a Subversion interface.

Affected packages
=================

     -------------------------------------------------------------------
      Package        /  Vulnerable  /                        Unaffected
     -------------------------------------------------------------------
   1  www-apps/trac       < 0.8.4                              >= 0.8.4

Description
===========

Stefan Esser of the Hardened-PHP project discovered that Trac fails to
validate the "id" parameter when uploading attachments to the wiki or
the bug tracking system.

Impact
======

A remote attacker could exploit the vulnerability to upload arbitrary
files to a directory where the webserver has write access to, possibly
leading to the execution of arbitrary code.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All Trac users should upgrade to the latest available version:

     # emerge --sync
     # emerge --ask --oneshot --verbose ">=www-apps/trac-0.8.4"

References
==========

   [ 1 ] Hardened PHP Advisory 012005
         http://www.hardened-php.net/advisory-012005.php

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

   http://security.gentoo.org/glsa/glsa-200506-21.xml

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security at gentoo.org or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=======

Copyright 2005 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.0

======================================================================

         =========================================================
         Les serveurs de référence du CERT-Renater
         http://www.urec.fr/securite
         http://www.cru.fr/securite
         http://www.renater.fr
         =========================================================
         + CERT-RENATER          | tel : 01-53-94-20-44          +
         + 151 bd de l'Hopital   | fax : 01-53-94-20-41          +
         + 75013 Paris           | email: certsvp@renater.fr     +
         =========================================================


