Skip to main content

WhatsApp group chat security flaw: What you need to know

Whatsapp welcome screen
Whatsapp welcome screen (Image credit: Android Central)

A lot of talk went down recently about a new way to exploit WhatsApp and bypass the end-to-end encryption the company likes to mention that it has whenever it can. I've seen tweets and comments that run the gamut from "it's FUD" to talking about some backdoor that Facebook had installed.

The good news is that it's neither. In fact, it's not really one of those things you need to be concerned about and instead is one of those things that make you wonder how it ever happened in the first place because it's pretty sloppy. But don't worry — it will be fixed long before anything happens.

What it is

Researchers Paul Rösler, Christian Mainka, and Jörg Schwenk at Ruhr-Universität in Bochum, Germany released a research paper (.pdf link) that found a peculiar flaw in WhatsApp's group chat administration. WhatsApp offers the same end-to-end encryption for group chats that it does for individual chats, and that usually means we should be able to feel safe in knowing that the things we say won't be read by anyone who shouldn't be reading it unless one of the group members lets it happen.

Apparently, it's theoretically possible for a stranger to add themselves to a group chat on WhatsApp. "Theoretically" and "possible" being the key words here. I'll explain.

WhatsApp offers group messaging that uses strong end-to-end encryption.

In a WhatsApp group chat one or more of the original members is an administrator. From the server's point of view, that means that these people are able to add and remove people from the group. Everything is good so far, even though the way it works — an administrator sends a signal to every member of the group with his or her signing keys and in return, each member sends a return message with their signing keys then the originator of the message notifies each member that there is now a new person in the group — is a bit of a kludge in order to create a good user interface. If you're not an administrator, the only thing you know is that you see a message that Jerry is now a member of the group. You can either accept that or leave the chat.

A similar flaw was found with group messaging through Signal.

The problem is that WhatsApp isn't properly authenticating these group management requests on its own servers. A WhatsApp server needs to properly ID the sender of a message that would add a person to a group chat. The person sends a message that IDs both the group and the member it wishes to add and the server checks to make sure the person who sent it is actually a chat administrator. These messages aren't end-to-end encrypted, and instead use standard transport encryption — the message coming from a chat administrator and going to a server that requests a user be added to a chat is not signed by the sender with their encryption key.

This means a WhatsApp server can add any user it wants to any group, at any time. The server can, not another user. That's important, and it means any privacy expected in a WhatsApp group chat depends solely on trusting the WhatsApp chat server. That defeats the entire purpose of end-to-end encryption, which is designed so that privacy is guaranteed even if a server is compromised because only the sender and recipient can decrypt a message.

And then the internet loses its collective mind because that's what the internet is really good at doing.

This won't happen but still needs fixing

The only way this flaw can be exploited is by someone with access to the server doing it. That means a server gets compromised, or an employee goes rogue, or a three-letter government agency files a warrant. Any of those things could happen, might have happened in the past, and could even be happening right now. But one other thing needs to be considered — you'll know if it happens to your chat.

You are notified whenever a person is added to a group chat, encrypted or not.

The first thing that a server does after a member is added is notify every other member of the group that "Jerry was added to the chat." You will see the message telling you someone was added, and so will everyone else. When Jerry arrives to the private chat party with his bad jokes and cheap beer, and nobody invited him, that's going to be a sign that something's wrong and nobody should consider anything they are about to type as private. Pack up and move to another chat without Jerry and maybe even a different service that won't let him crash.

So nobody is going to be able to secretly check out your encrypted group chat, but this still undermines end-to-end encryption in every possible way. It needs to be fixed right away, and maybe even the whole group management method needs to be revamped. At the bare minimum, we all need to scratch our heads and wonder how something like this slips by programmers and code auditors. It's a ridiculous premise that will never be exploited, but still.

What you need to do

Nothing, really. Appreciate the work done by Rösler, Mainka, and Schwenk in finding this flaw because security researching is a thankless and often mind-numbing job, but past that you don't really need to change your routine at all. A method of authenticating the request to add a member to an encrypted group chat will be sorted out by the folks who keep WhatsApp's wheels spinning shortly and this will change from a flaw that will never be exploited to a flaw that can no longer be exploited at all.

What's important is that you were paying attention, because the next flaw might very well be one that does need action on your part. And there will be another flaw, so make sure you keep paying attention.

Jerry Hildenbrand
Jerry Hildenbrand

Jerry is an amateur woodworker and struggling shade tree mechanic. There's nothing he can't take apart, but many things he can't reassemble. You'll find him writing and speaking his loud opinion on Android Central and occasionally on Twitter.

14 Comments
  • How exactly does an app like Whatsapp make money? The app is free and there are no ads... Obviously a lot of work goes into this...
  • Data mining and reselling it is profitable.
  • First of all, it wasn't always for free, even though it is now. Now, they are trying to open up whatsapp to companies to contact and chat with their clients, which won't be free for the company. Ofc Facebook might also data mine to improve their user data, I didn't read into if they currently do that.
  • So you're telling me that they filter through all of the messages?
    Is there any form of texting that is actually private?
    Honestly I'm not how sure how I actually feel about the whole data mining thing... I mean if this is simply to advertise products to me then I really don't see any harm in it. On the other hand... What else is being done with the information?
  • They don't filter through all the messages. Messages on WhatsApp are encrypted end to end
  • WhatsApp needs a phone number. If you are a Facebook user, this phone number is associated with your Facebook account. Nothing else is done and no messages can be read, no messages or spam or ads are sent to you by Facebook, but they know your phone number even if you didn't give it to them when you made a Facebook account. I'm not sure why, but this is valuable to Facebook. Valuable enough that they spent 19 billion to buy WhatsApp a few years ago and are spending big bucks to improve the service.
  • Jerry, thanks for that clear explanation.
  • Your welcome! Great to see that it helped somebody :)
  • You mention a brief line about signal... care to expand for me please? Are you saying signal has the exact same and existing vulnerability and same group protocol? I always love your posts BTW.
  • Signal uses basically the same method to add a member, except that every member of a chat is an administrator, and there is a group ID that is associated with every member's personal signing key. When a request to add a member is sent, the server authenticates the message as valid and signed by the correct key, but it doesn't check to see if the sender is actually a member of the group. Anyone with a valid signal account (will have a key to encrypt and decrypt Signal's pairwise protocol messages) AND has a valid group ID can add members to that group even if they are not a member of it. It's no big deal because the group IDs are long, long hex numbers and change often, so only the chat servers can know a valid group ID. To me, the most interesting thing here is that people were quick to claim WhatsApp was "hacked" but nobody was talking about Signal. My guess is that the association with Facebook makes WhatsApp seem less trustworthy, even though WhatsApp uses very good encryption techniques and has group policies just as strong as Signal (as we see here lol). Looking into it this deep makes me trust WhatsApp just as much as I do Signal and Allo, which I use now.
  • Thanks for this! Although I would suspect that when it comes to Metadata and trust, signal is indeed in a different place than FB, whatsapp and allo no? As always.. Appreciate the post and in this case also the feedback.
  • 👍🏼👍🏼
    I just started using the AC app...
    Is there any way to follow comments on specific posts here or get a notification?
  • Just noticed that heart up there lol
  • If you have BBM (Blackberry Messengers) you don't have to worry about people having your phone #.
    Thats why im still using BBM, more secure, reliable and NO one has your phone #.
    If people ask me if i use Whatsup i tell them NO i use BBM or Whatsdown.