News: 1619079366

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Apple, you've AirDrop'd the ball: Academics detail ways to leak contact info of nearby iThings for spear-phishing

(2021/04/22)


Apple's AirDrop has a couple of potentially annoying privacy weaknesses that Cupertino is so far refusing to address even though a solution has been offered.

A bug-hunting team at Technische Universität Darmstadt in Germany reverse engineered AirDrop – iOS and macOS's ad-hoc over-the-air file-sharing service – and found that senders and receivers may leak their contact details in the process. More than a billion people are said to be at risk of this, in that there are now more than a billion active iPhones at any one time. Despite the team alerting Apple to the oversight in May 2019, and suggesting ways to address it last October, the iGiant hasn't issued a fix.

"We started looking at the protocols in 2017," Dr Milan Stute at the uni's Secure Mobile Networking Lab told The Register on Wednesday. "We reverse engineered a lot of stuff and found two major issues."

[1]

AirDrop sets up a TLS-encrypted direct peer-to-peer Wi-Fi connection between Apple gear for sharing files. The Darmstadt team analyzed the proprietary Wi-Fi link-layer protocol, known as the [2]Apple Wireless DirectLink , and the Bluetooth connections AirDrop uses, and found a way to potentially obtain victims' contact details – typically their phone number or email address.

AirDrop hole deposits stealth malware on all pre-iOS 9 Apple devices [3]FROM THE ARCHIVE

When an AirDrop connection is attempted between a sender and a receiver, the sender transmits over the air a message containing a hash, or digital fingerprint, of its user's email address or phone number as part of an authentication handshake. In response, if the sender is recognized, the receiver transmits back its hash.

The hashing function should act as a form of one-way encryption: you shouldn't be able to deduce what the original data was, just that it generated the given fingerprint. Unfortunately, Apple uses the 20-year-old SHA-256 algorithm to perform the hashing. Thus, it's possible to crack the SHA-256 hash of an AirDrop user's phone number and discover the original digits in milliseconds, Christian Weinert, of the university's Cryptography and Privacy Engineering Group, told us.

Email address hashes are harder to break, though one could use databases of leaked email addresses and dictionary attacks on @gmail.com, @yahoo.com, and similar addresses to relatively quickly reverse an email address hash to the original.

[4]

"We don't have concrete numbers on email hash cracking time, but look at the Facebook leak: there's over 500 million addresses that could be used," he said. "There are also online services that will do this for you."

The upshot is that these two scenarios are possible, it is claimed:

A miscreant could set up a system that listens out for iPhones, iPads, and Macs scanning for nearby AirDrop-enabled devices. When one of these iOS and macOS machines scans the area, it sends out a message containing its user's contact information as a hash, which can be recorded and cracked. This contact information could then be used for spear-phishing, say, in a targeted environment.

A miscreant seeking to work their way into a targeted environment could figure out an email address or phone number likely to be recognized by nearby devices – it could be a boss's office phone number, for example. The miscreant transmits AirDrop requests to receivers in the vicinity, and sends that common contact detail as a hash in the handshaking message. The nearby receivers recognize the hashed contact detail and reply with a message containing their contact details as hashes. Bingo, you can now determine the email addresses and phone numbers of surrounding AirDrop-capable devices from harvested hashes, again for spear-phishing purposes.

These are arguably rather esoteric vulnerabilities, and not something for the public at large to really worry about, but annoying nonetheless.

Observing responsible disclosure guidelines, the team notified Apple in May 2019 about the shortcomings, and Cupertino said it would look into it. A few months later, the Apple Bleee project also [5]discovered one of the vulnerabilities. In July last year, Apple said it did "not have any updates on new features or any changes to mitigate the underlying issue.”

Funnily enough, the Darmstadt team did, and three months later sent Apple a solution for the issue, publishing the code as [6]PrivateDrop on GitHub. Their approach thwarts hash cracking and typically adds less than a second to the time needed to establish an AirDrop connection.

[7]

The Darmstadt team's paper

[8]PDF

on the above is now published, and will be [9]presented at the USENIX Security '21 conference in August. Apple has received a full copy of the paper, and apparently told the team it appreciates "the updates and working with researchers such as yourself.”

Unfortunately, the PrivateDrop code isn't something the average Apple user can just install to protect themselves. "Basically what we did was proof of concept code, but to deploy you would need the help of Apple," Weinert said. "It's not that we can provide an app, this needs to be put in the operating systems." ®

Members of the AirDrop privacy paper are also behind [10]another USENIX Security '21 study into other vulnerabilities in Apple's wireless protocols, demonstrating how they can be disrupted, hijacked, and more.

Get our [11]Tech Resources



[1] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_security/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2YIFJPLD5G0bn@tp27-yPLAAAAIE&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[2] https://owlink.org/wiki/#what-is-apple-wireless-direct-link-awdl

[3] https://www.theregister.com/2015/09/16/airdrop_hole_malware_pre_ios_9/

[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_security/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33YIFJPLD5G0bn@tp27-yPLAAAAIE&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[5] https://hexway.io/research/apple-bleee/

[6] https://privatedrop.github.io/

[7] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_security/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44YIFJPLD5G0bn@tp27-yPLAAAAIE&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[8] https://www.usenix.org/system/files/sec21fall-heinrich.pdf

[9] https://www.usenix.org/conference/usenixsecurity21/presentation/heinrich

[10] https://www.usenix.org/conference/usenixsecurity21/presentation/stute

[11] https://whitepapers.theregister.com/

Quite a feat

Pascal Monett

Reverse-engineering a comms protocol to uncover a privacy-invading bug, that's some impressive work.

Finding a solution when the vendor says there isn't one, that is downright awesome.

Go Team Darmstadt !

Re: Quite a feat

FlamingDeath

Put into context, its easier to just get a pastebin db dump from compromised sites, plenty to choose from, and some mind boggling huge datasets too

In any case, if someone is too muppet to turn off shit when its not in use, stupid them

I’ve come to learn that nothing is secure, what is it now, 30+ Years of ‘computing’ and we (they) still cant get it right?

You know, the lock on your front door can be picked?

Your car is not safe either, window can be smashed

FlamingDeath

https://xkcd.com/538/

One of the major difficulties Trillian experienced in her relationship with
Zaphod was learning to distinguish between him pretending to be stupid just
to get people off their guard, pretending to be stupid because he couldn't
be bothered to think and wanted someone else to do it for him, pretending
to be so outrageously stupid to hide the fact that he actually didn't
understand what was going on, and really being genuinely stupid. He was
renowned for being quite clever and quite clearly was so -- but not all the
time, which obviously worried him, hence the act. He preferred people to be
puzzled rather than contemptuous. This above all appeared to Trillian to be
genuinely stupid, but she could no longer be bothered to argue about.
-- Douglas Adams, _The Hitchhiker's Guide to the Galaxy_