For hackers, scanning for an open â€œportâ€â€”a responsive, potentially vulnerable internet connection on a would-be victimâ€™s machineâ€”has long been one of the most basic ways to gain a foothold in a target company or agency. As it turns out, thanks to a few popular but rarely studied apps, plenty of smartphones have open ports, too. And those little-considered connections can just as easily give hackers access to tens of millions of Android devices.
A group of researchers from the University of Michigan identified hundreds of applications in Google Play that perform an unexpected trick: By essentially turning a phone into a server, they allow the owner to connect to that phone directly from their PC, just as they would to a web site or another internet service. But dozens of these apps leave open insecure ports on those smartphones. That could allow attackers to steal data, including contacts or photos, or even to install malware.
â€œAndroid has inherited this open port functionality from traditional computers, and many applications use open ports in a way that poses vulnerabilities,â€ says Yunhan Jia, one of the Michigan researchers who reported their findings at the IEEE European Symposium on Security and Privacy. â€œIf one of these vulnerable open port apps is installed, your phone can be fully taken control of by attackers.â€
Port of Call
To determine the full scope of the port problem, the Michigan researchers built a software tool they call OPAnalyzer (for Open Port Analyzer) that they used to scan the code of around 100,000 popular apps in the Google Play app store.
They found that 1,632 applications created open ports on smartphones, mostly intended to allow users to connect to them from PCs to send text messages, transfer files, or use the phone as a proxy to connect to the rest of the internet. Of those, they identified 410 as potentially having no protection or only weak protectionâ€”such as a hardcoded password that can be derived from the code and used by any hackerâ€”meant to control who can access those open ports. And of that subset, they manually analyzed 57 that they confirmed left ports open and exploitable by any hacker on the same local Wi-Fi network, another app on the same device (even one with restricted privileges), or more disturbing, a script that runs in the victimâ€™s browser when they merely visit a website.
And that may just be a partial list of exploits, says Zhiyun Qian, a computer scientist at the University of California at Riverside who has followed the Michigan researchersâ€™ work. When a phoneâ€™s IP address is publicly visible on the internetâ€”a situation that depends on whether the phone is connected to Wi-Fi and the userâ€™s carrierâ€”the attacker can simply scan for open ports from anywhere, and start attacking that vulnerable phone. In those cases, â€œthis is completely, remotely exploitable,â€ says Qian. â€œItâ€™s definitely serious.â€
Of the 57 apps they identified as the most vulnerable to the open port attacks, two struck the researchers as particularly dangerous. One app with more than 10 million downloads called Wifi File Transfer allows users to connect to an open port on their phone via Wi-Fi, and access files like photos, application data, and anything stored on the phoneâ€™s SD card. But Jia says that due to the appâ€™s lack of any authentication like a password, an intruder who connects to that open port can also get full access to the same sensitive files. â€œThatâ€™s intended functionality for the user, but because of that poor authentication it allows anyone to do it,â€ Jia says.
The researchers also point to AirDroid, a similarly popular app with an eight-digit number of downloads, designed to allow users full control of their Android phone from their PC. Researchers found that AirDroid had an authentication flaw that also lets malicious intruders access ports. But in AirDroidâ€™s case, that flaw only allowed for the hijacking of existing connections. To perform the attack, malware on the phone would likely have had to intercept the userâ€™s attempt to establish that legitimate connection. And when the Michigan researchers say that AirDroidâ€™s developers patched the problem quickly after being notified.
The developers behind Wifi File Transfer, by contrast, havenâ€™t fixed their appâ€™s security problem even after the researchers contacted them, Michiganâ€™s Jia says. WIRED reached out several times to Smarter Droid, the company that makes the app, but didnâ€™t get a response.
â€˜The User Can Do Nothingâ€™
In the videos below, the researchers demonstrate attacks on two other apps, PhonePal and Virtual USB, both of which Jia says remain vulnerable. Neither has nearly as many downloads as Wifi File Transfer, howeverâ€”Virtual USB has less than 50,000, and PhonePal has only a few hundred. Neither company responded to WIREDâ€™s request for comment.
Aside from those four apps, the researchersâ€™ full paper details analyses of half a dozen othersâ€”several of which are mostly popular in the Chinese marketâ€”that are also vulnerable to varying degrees to open port attacks. More than half the 1,632 apps that create open ports on phones have more than 500,000 downloads, the researchers found.
To test just how widespread the most vulnerable apps might be, they at one point even scanned their local university network and immediately found devices with open, potentially hackable ports. â€œThat so many developers have made this mistake is already an alarming sign,â€ says UC Riversideâ€™s Qian. â€œThere will be other apps they havenâ€™t looked at, or that other people build in the future that will have the same problem.â€
The notion that smartphone apps can open ports and leave them vulnerable has come to light before: In late 2015, the Chinese company Baidu revealed that a software development kit it had developed left open ports on devices where it was installed. Other major Chinese businesses, including Tencent and Qihoo, had already adopted the code, affecting more than 100 million users in total. After Baiduâ€™s admission of the vulnerability the vulnerable apps all released security fixes.
Clearly, though, the problem of open ports in mobile devices persists. And the Michigan researchers suggest that fixing it will require developers to think twice before they open a gaping entry point in your device for remote hackers. â€œThe user can do nothing. Google can do nothing,â€ says Jia. â€œThe developer has to learn to use open ports correctly.â€
Of course, there actually is one thing you can do: Uninstall the vulnerable apps like Wifi File Transfer that the researchers name. You may lose the convenience of moving files to and from your mobile device at will. But youâ€™ll lock out the unwelcome guests whoâ€™d use that convenient backdoor, too.
from Wired Top Stories http://ift.tt/2oE2t8E