Skip to content
Race condition Write-up Intermediate

A Race condition bug in Facebook chat groups

A race condition in Facebook group conversations allowed a user who was rapidly removed and re-added to become invisible to other members while still able to read and write messages. An attacker could use this to spy on private group chats without being seen.

Seif Elsallamy Follow

Published on seekurity.com

Hi Folks, Long time no see, it’s Seif Elsallamy, Remember me ? if not 🙁 you may go through my previous blogs Stored XSS in the heart of the Russian email provider giant (Mail.ru) , Rolling around and Bypassing Facebook’s Linkshim protection on iOS

Seif Elsallamy (@seifelsallamy), on seekurity.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the group conversation membership logic did not properly handle concurrent remove and add operations, leaving the user in an inconsistent state where they were not shown as a member but still had access.

Impact

An attacker could spy on private group conversations without other members knowing they were present.

What the attacker needed

A Facebook account; ability to create a group conversation; ability to invite and remove users

How it was found

  1. Create a group conversation and invite several users.
  2. Choose one invited user and rapidly remove and re-add them multiple times.
  3. The user becomes invisible in the conversation but can still read and write messages.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A race condition happens when two actions occur at almost the same time and the system handles them in an unexpected order. Here, quickly removing and re-adding a user confused Facebook's group chat system, leaving the user hidden from the member list but still able to see and send messages. This let someone secretly listen in on a private conversation.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More by Seif Elsallamy

View all

3 more disclosed reports, best first.

More from Meta

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.