The Curious Case of the Exposed Password

David Choffnes, Northeastern University (choffnes@ccs.neu.edu)

Researchers at Northeastern University identified more than 20 iOS, Android, and Windows Phone apps that exposed users’ credentials, including passwords, to eavesdroppers. Their experience with password vulnerabilities was generally positive in the end, but there’s still room for improvement. They contacted developers to fix these security vulnerabilities, and what they learned was both surprising and enlightening.

We started with a simple idea: identify how much of users’ personal information is exposed over the Internet when using mobile apps, and allow users to do something about it. This idea led us to create the ReCon project, which hundreds of people worldwide use to understand their privacy when using mobile devices.

On the Internet, Everyone Knows You’re a Dog

As you use mobile devices with Internet connections, not only are you fetching interesting information (e.g., Facebook posts, tweets, news, and weather), you are probably also sharing personally identifiable information (PII) such as your name, email address, GPS location, gender, sexual orientation, and credentials such as username and passwords for logging into apps. There are many legitimate reasons for apps to send PII over the Internet — for example, your navigation apps like Google Maps and Waze need to know your location to give you real-time driving directions. Ideally, this information is protected from eavesdroppers using encryption; however, we have found substantial information exposed in plaintext. Like the famous New Yorker cartoon about the dog using the Internet, anyone can know who you are based on your mobile device’s Internet traffic (even if you are a dog).

choff2
Source: https://en.wikipedia.org/w/index.php?curid=13627120
choff1“Remember when, on the Internet, nobody knew who you were?”
(Source:
newyorker.com)

 

Perhaps the most sensitive PII for users is their login credentials, namely usernames and passwords. An eavesdropper who obtains this information can impersonate the user and get access to their online accounts. Further, because users often use the same password to access multiple sites, a single password exposed to an eavesdropper could lead to the compromise of many accounts, from Facebook to online dating and banking sites.

An Unexpected Discovery

Because passwords are so important, we did not expect to find any of them exposed in Internet traffic in our study. Instead, as of this writing we have found 20 apps suffering from this security vulnerability and potentially millions of users, including those we trust with access to our medical records, were affected.

You may be wondering how we did this. Our ReCon project is based on a simple premise: because PII is generally exposed only when it is sent over the Internet, we can identify cases of this by inspecting a mobile device’s network traffic. While it’s easy to find exposed PII if you know exactly what it is (e.g., treat the network traffic like a text file and search for “P@ssw0rd”), it is difficult when you do not know the PII in advance. We developed a system that uses machine learning to identify when PII is exposed without needing to know any specific details about the PII being exposed. In other words, we can tell when your password is exposed without knowing what your password is.

We ran hundreds of apps through ReCon and found passwords exposed by apps ranging from dating to medical reference information, and streaming music to movie ratings. One such app, Match, was used by millions of users. Another, Epocrates, is used by hundreds of thousands of medical professionals.

The implication of this revelation was troublesome at best. If you’ve used the popular Match dating app, someone else could have learned your credentials. Did you reuse that password anywhere else? And what about your medical professional? If their password was exposed, what other medical systems could be accessed using this password?

Importantly, not a single user had any idea this was happening. We wanted to tell the world, let everyone know about this problem. But therein lies a problem: if we tell the world, then every bad guy will also know about the problem and might try to exploit it. This is a common problem in the security research community, one solved by responsible disclosure.

Responsibly Disclosing Irresponsible Behavior

Security vulnerabilities put users at risk, and ethics dictates that we should minimize and/or eliminate this risk as quickly as possible. Therein lies a tension. On the one hand, we could tell users as quickly as possible so they can stop using affected software. However, any users who don’t hear the news would be at risk from attack from bad guys who learn about the problem. On the other hand, we can privately work with developers to fix the problem as quickly as possible, but users would still be at risk until the fix is released. Responsible disclosure balances these two concerns.

While there is no standard for how to conduct responsible disclosure, it generally works as follows: tell the developer, give them some time to fix the vulnerability, then notify users after the problem is fixed. If the developer does not respond or does not fix the problem in a timely manner, then notify the public after a reasonable waiting period. We followed this approach, and gave developers three months to fix the password vulnerabilities.

In all of the cases we discovered, there is a trivially easy fix: use standard encryption software to transmit user credentials. If you’ve ever seen a padlock in the location bar of your browser, this is what we are talking about.  There is standard, free, and easy-to-use software that does this. For many apps, this requires changing one line of code. In other cases, it may require a small change to their servers as well.

In short, the time required to fix the password vulnerabilities we discovered should have been short (an hour or two of labor) for every app. We began the process of disclosure in November, 2015. At the time of this writing — nearly four months later — many apps are still vulnerable. What follows is the story of how various developers reacted – and did not react – to our disclosures.

Responsive, Confused, Indignant, and Silent

Our disclosure emails were straightforward. To paraphrase, we wrote: we found that your app is exposing passwords in plaintext; please acknowledge this message and fix this as soon as possible. If we did not get a reply the first time, we sent two more emails over three months to give developers a chance to respond. If they did not fix the problem at that time, we disclosed the vulnerability publicly.

The reactions we received from developers and security teams were scattered across the spectrum from professional and prompt to indignant, confused, and silent. There are lessons to be learned in the responses to our disclosures, ones that will hopefully help us move to a more secure mobile ecosystem. Below, we provide vignettes describing our disclosure process, highlighting challenges that include difficulty reaching developers, explaining the risks when exposure was downplayed, and deciding to go with public disclosure when we received no response.

 

Epocrates
The Epocrates iOS app is a digital reference for medical professionals, the equivalent of a pocket reference book for diseases, treatments, and medication. We notified the team of the vulnerability in November, 2015. After a couple of weeks of silence, we received an email from their security team, where they asked to schedule a phone call to discuss.
        It ends up that the delayed response was because we had contacted their support@ email address, and not security@. The former is meant for issues affecting app functionality (e.g., the app crashes), and the latter for security issues like exposed passwords. We learned that most companies have a security@ email address (for example, security disclosures for foo.com should be sent to security@foo.com) meant specifically for such issues, and we should include this for any future disclosures.
        The Epocrates team reacted swiftly to our disclosure and kept us in the loop along the way. First, they immediately patched the app and released it to the public. In addition, they identified the software development process that led to the problem and put in place measures to prevent this from ever happening again. But they didn’t stop there.
        To minimize the risk to their users, they asked us to hold off on public disclosure. The reason is that releasing a new app doesn’t mean that users will install it. And those who haven’t updated are still at risk once the vulnerability is disclosed publicly.
        We agreed to postpone while they reached out to users via different communication channels to encourage updates. After two months of outreach, the Epocrates team determined that they had exhausted all reasonable strategies to encourage upgrades to app software, and publicly disclosed the vulnerability and their remediative actions.
        Among all app developers we contacted, the Epocrates team was the most responsive, and was the most transparent in terms of keeping us (and eventually their users) in the loop with respect to their actions.

Gaana
This iOS/Andriod app is popular for streaming music in India, much like Spotify is popular in Western countries. When we tried to contact Gaana, we found that the only way to submit our message was via a Web form that limited text length to a couple hundred characters. We reformatted our standard disclosure text into a tweet-like missive and fired it off. To their credit, after a few weeks Gaana had responded to the disclosure, and they fixed the vulnerability soon after that. Unfortunately, this was not enough to protect users – Gaana was famously hacked and their entire database of user information was compromised.

Match
Match.com, the popular dating website, received much negative publicity for exposing user passwords on laptop/desktop Web browsers in early 2015 and quickly moved to fix that vulnerability. However, we discovered in November, 2015 that their Android app was still affected by the same problem. We notified Match.com and received no response for a month. At that point, a member of the security team emailed to say that they are looking into the reported problem. After another few weeks, we contacted Match for a status update and they replied that they were still looking into the problem but it would take extra time due to the Christmas holiday. We received no further update from Match but noticed in late January that a new version of the app had fixed the vulnerability, at which point we went public.
        Interestingly, the security team reached out to us in February after public disclosure to schedule a phone call to discuss the vulnerability we reported to them. (Note that we found it is common to discuss any details over phone instead of email, presumably to reduce the “paper trail” that would provide evidence of the vulnerability.) We asked them why they wanted to meet now, especially since they had already fixed the problem, and we never heard from them again.

MocoSpace
This iOS/Android chat app was not only exposing user login information, but also the contents of their instant messages, to any potential eavesdropper. We notified the developer, who within two weeks released a new version of the app that protected credentials. However, the developer did not secure the contents of the instant messages, which remain exposed to eavesdroppers today, because they “do not claim to be a secure messaging app.”

AirG
This Android app exposed passwords in plaintext, and the developer has since addressed this vulnerability. Interestingly, the developer noted that logins for their website were to remain exposed — if they use encryption to protect passwords, then users accessing their site from feature phones (i.e., phones that are not “smart” and do not have full-fledged Web browsers) will not be able to access the content. This was first instance where a developer indicated that exposing credentials was intentional.

TriviaCrack
This Windows Phone app currently exposes users’ passwords during login. The developers have fixed this issue with iOS and Android apps, but are currently unable to fix it on Windows Phone because they used a third-party vendor to develop the app and that vendor will not give them an ETA for remediation. If anything, this demonstrates the danger of relying on outside services to manage software that might have critical security vulnerabilities.

The Silent
We contacted WapLog, RV Parks, TalkBox, and Qunyou to notify them of password vulnerabilities more than three months ago. To this day we have yet to receive a single response. We decided to go public with these vulnerabilities because it was clear that the developers were not protecting users’ credentials, and the best/only way to mitigate their risk of exposure was to announce it publicly to dissuade use of the apps (and encourage users to change their passwords).

 

The Way Forward: Continuous Transparency
Our experience with password vulnerabilities was generally positive: most of the cases are now fixed and developers in general took corrective action within reasonable time frames. However, our study highlights an important issue — password vulnerabilities will not all disappear overnight, and it is likely that more will appear over time.

We were able to find these vulnerabilities because we started to look in places where most users and researchers previously could not. We have been, metaphorically, turning over rocks in the soil to expose the creatures and bugs that hide out of plain sight. We believe that for a more secure mobile Internet experience, the only way forward to is to continue this approach of improving transparency for users and for the developers of apps who unknowingly put users’ privacy and security at risk.

To that end, we have made our ReCon system available to the public, and plan to continue growing this project to support more users and more network environments (e.g., in home networks to control PII leaked by “Internet of Things” devices). To learn more, visit http://recon.meddle.mobi, or contact the author at choffnes@ccs.neu.edu.

ReCon identifies passwords exposed by popular apps

Do you use the dating app Match or the medical reference app Epocrates? If so, your password may have been exposed to third parties.

The ReCon research team is publicly disclosing two cases of popular apps sending users’ passwords over the network in plaintext (unencrypted). Collectively, these apps boast millions of users worldwide. Users were vulnerable when using public WiFi access points (as their passwords could be seen by anyone else in range of the user’s device) or when using untrusted networks (e.g., subject to surveillance).

Our team followed responsible disclosure principles and worked with developers to address the security vulnerability before making this announcement. Specifically, we notified Epocrates on November 16th, 2015 and they released a new version of the app addressing the problem on November 21st, 2015. We also notified Match on November 10th and 30th (only the latter elicited a response), and they released a new version of the app that fixed the issue sometime in January. (They did not notify us of the exact date.)

These are just two of several cases of password leaks that ReCon has identified based on our measurements from experiments and real users. To check what other personal information is transmitted from your apps, check out our App Report. ReCon allows you to view and block cases of personal information like this exposed by apps, and it works on all mobile device OSes. To sign up to use it, visit the project page at http://recon.meddle.mobi.

App for Detecting Net Neutrality Violations

As part of the Meddle project, we have released an app for Android that tests whether your network is speeding up (or slowing down) download speeds for certain apps. This kind of behavior is now illegal under the FCC’s new rules, and our app is the first that you can use on stock Android devices to rigorously test for violations in the mobile environment. To test it out, visit this site: dd.meddle.mobi

Data leaks found from using Meddle in FCN (Fall 2014 edition)

As part of a bi-annual tradition, we have used the Meddle project in Northeastern University’s Fundamentals of Computer Networking course. We give students access to raw packet traces gathered from their devices, and ask them to find interesting information leaks in plain text.

Last semester’s winner was the following: The mobile app Gaana was leaking users’ account information (username/password) in plaintext. This is a serious breach of security: any eavesdropper in an unencrypted (e.g., public) WiFi access point will be able to learn users’ credentials!

We notified Gaana and waited 2 months for their acknowledge (for responsible disclosure) before posting this information. We are unaware of if/when this security flaw will be fixed.