Hash: SHA1

             AUSCERT External Security Bulletin Redistribution

                       ESB-2007.0061 -- [UNIX/Linux]
             Denial of Service vulnerability in CVSTrac 2.0.0
                              30 January 2007


        AusCERT Security Bulletin Summary

Product:              CVSTrac 2.0.0
Publisher:            OpenPKG
Operating System:     UNIX variants (UNIX, Linux, OSX)
Impact:               Denial of Service
Access:               Remote/Unauthenticated
CVE Names:            CVE-2007-0347

Original Bulletin:    http://openpkg.com/go/OpenPKG-SA-2007.008

Comment: This advisory references vulnerabilities in products which run on
         multiple platforms. It is recommended that administrators running
         CVSTrac check for an updated version of the software for their
         operating system.

- --------------------------BEGIN INCLUDED TEXT--------------------

Hash: SHA1


Publisher Name:          OpenPKG GmbH
Publisher Home:          http://openpkg.com/

Advisory Id (public):    OpenPKG-SA-2007.008
Advisory Type:           OpenPKG Security Advisory (SA)
Advisory Directory:      http://openpkg.com/go/OpenPKG-SA
Advisory Document:       http://openpkg.com/go/OpenPKG-SA-2007.008
Advisory Published:      2007-01-29 14:02 UTC

Issue Id (internal):     OpenPKG-SI-20070117.01
Issue First Created:     2007-01-17
Issue Last Modified:     2007-01-29
Issue Revision:          08

Subject Name:            cvstrac
Subject Summary:         VCS web frontend
Subject Home:            http://www.cvstrac.org/
Subject Versions:        * = 2.0.0

Vulnerability Id:        CVE-2007-0347
Vulnerability Scope:     global (not OpenPKG specific)

Attack Feasibility:      run-time
Attack Vector:           remote network
Attack Impact:           denial of service

    Ralf S. Engelschall from OpenPKG GmbH discovered a Denial of Service
    (DoS) vulnerability in the CVS/Subversion/Git Version Control System
    (VCS) frontend CVSTrac [0], version 2.0.0.
    The vulnerability is in the Wiki-style text output formatter and is
    triggered by special text constructs in commit messages, tickets and
    Wiki pages. Only users with check-in permissions and Wiki or ticket
    edit permissions can perform an attack. But as the anonymous user
    usually is granted Wiki edit and ticket creation permissions, an
    attacker remotely and anonymously can cause a partial DoS (depending
    on the pages requested) on a CVSTrac installation by opening a new
    ticket or editing a Wiki page with an arbitrary text containing for
    instance the string "/foo/bar'quux".
    The DoS vulnerability exists because the is_eow() function in
    "format.c" does NOT just check the FIRST character of the supplied
    string for an End-Of-Word terminating character, but instead
    iterates over string and this way can skip a single embedded
    quotation mark. The is_repository_file() function then in turn
    assumes that the filename string can never contain a single
    quotation mark and traps into an SQL escaping problem.
    An SQL injection via this technique is somewhat limited as is_eow()
    bails on whitespace. So while one _can_ do an SQL injection, one is
    limited to SQL queries containing only characters which get past the
    function isspace(3). This effectively limits attacks to SQL commands
    like "VACUUM".
    Administrators can quickly workaround by revoking permissions on the
    users. Restoring those permissions, obviously, would require keeping
    vulnerable permissions on at least one infrequently used account
    like "setup" or using the CLI sqlite3(1) to manually add them back

    [0] http://www.cvstrac.org/

Primary Package Name:    cvstrac
Primary Package Home:    http://openpkg.org/go/package/cvstrac

Corrected Distribution:  Corrected Branch: Corrected Package:
OpenPKG Enterprise       E1.0-SOLID        cvstrac-2.0.0-E1.0.2

For security reasons, this document was digitally signed with the
OpenPGP public key of the OpenPKG GmbH (public key id 61B7AE34)
which you can download from http://openpkg.com/openpkg.com.pgp
or retrieve from the OpenPGP keyserver at hkp://pgp.openpkg.org/.
Follow the instructions at http://openpkg.com/security/signatures/
for more details on how to verify the integrity of this document.

Comment: OpenPKG GmbH <http://openpkg.com/>


- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:


If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:


Australian Computer Emergency Response Team
The University of Queensland
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.

Comment: http://www.auscert.org.au/render.html?it=1967