Document Title: =============== Teampass v2.1.26 - Privilege Escalate Vulnerability References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1859 Release Date: ============= 2016-07-04 Vulnerability Laboratory ID (VL-ID): ==================================== 1859 Common Vulnerability Scoring System: ==================================== 5.6 Product & Service Introduction: =============================== TeamPass is a Passwords Manager dedicated for managing passwords in a collaborative way on any server Apache, MySQL and PHP. It is especially designed to provide passwords access security for allowed people. (Copy of the Homepage: http://teampass.net/ ) Abstract Advisory Information: ============================== An independent vulnerability laboratory researcher discovered a privilege escalate vulnerability in the official Teampass v2.1.25/26 web-application. Vulnerability Disclosure Timeline: ================================== 2016-06-26: Researcher Notification & Coordination (Peter Kok) 2016-06-27: Vendor Notification (Teampass Security Team) 2016-07-01: Vendor Response/Feedback (Teampass Security Team) 2016-07-03: Vendor Fix/Patch (Teampass Developer Team) 2016-07-05: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== Nils Laumaillé Product: Teampass Password Manager - Online Service (Web-Application) 2.1.26 Exploitation Technique: ======================= Remote Severity Level: =============== Medium Technical Details & Description: ================================ The ssh.php file in the documentroot is used to change server passwords over ssh(http://teampass.net/2016-06-19-remote-server-password-change) The ssh.php file is only available to authenticated users but does not properly check if the user is allowed access to a particular item. An account with low privileges is able to retreive all usernames and clear text passwords for every item stored in the database even if the role denies access. This vulnerability in combination with the unauthenticated database export vulnerability((http://www.vulnerability-lab.com/get_content.php?id=1844)) which also still working in v2.1.26 Pre-Release 8 gives access to all information available in the teampass database. Proof of Concept (PoC): ======================= The vulnerability can be exploited by remote attackers without privileged web-application user account and without user interaction. For security demonstration ot to reproduce the vulnerability follow the provided information and steps below to continue. Manual steps to reproduce ... 1. Log in to teampass with a low privileged account 2. Visit https://your.teampass.installation/ssh.php?id=1 3. The username is displayed, now check the source of this page on line 14 to retreive the clear text password Line 14 looks like: 4. Repeat step 2 and increase the value of the id parameter with 1 until all usernames and passwords are retreived Solution - Fix & Patch: ======================= 2016-07-03: Vendor Fix/Patch (Teampass Developer Team) Security Risk: ============== Horizontal privilege escalation. Items(usernames/passwords) that should not be accessible for a low privileged user are now accessible. (CVSS 5.6) Credits & Authors: ================== Peter Kok - [http://www.vulnerability-lab.com/show.php?user=Peter%20Kok] Disclaimer & Information: ========================= The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any licenses, policies, deface websites, hack into databases or trade with stolen data. Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com Contact: admin@vulnerability-lab.com - research@vulnerability-lab.com - admin@evolution-sec.com Section: magazine.vulnerability-lab.com - vulnerability-lab.com/contact.php - evolution-sec.com/contact Social: twitter.com/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register.php Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list, modify, use or edit our material contact (admin@ or research@vulnerability-lab.com) to get a ask permission. Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]™