Skip to content
Business logic Write-up Beginner

Admin of group chat cannot remove deactivate user

Aashish Jung Kunwar Follow

Published on imajk.medium.com

Bounty$500 View original

Aashish Jung Kunwar πŸ‡³πŸ‡΅

Aashish Jung Kunwar πŸ‡³πŸ‡΅, on imajk.medium.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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

This is a write-up of a functional security issue reported to the Facebook Security Team, the author's third bounty from Facebook. The product area named in the submission is FBLite, the lightweight Facebook app, and the feature involved is group chat membership: specifically, the ability of a group chat admin to remove a member from the group.

Normally an admin of a group chat can remove a member from that group. The report describes a case where that removal does not work against a user who has deactivated their Facebook account but continues to use Messenger.

Setup

The report defines the following test setup:

  • Users: UserB, GroupA, AdminA.
  • Environment: UserB and AdminA are members of GroupA, where AdminA is admin. UserB deactivated Facebook but is using Messenger.
  • App version: Facebook Lite.

Later in the conversation the author gives the exact build and device:

Text
App version : 253.0.0.8.119
Phone Model : Samsung Galaxy J4

The author also notes that the issue cannot be reproduced with Facebook test accounts (FBDL test accounts, as the triager calls them): with test accounts it is not possible to deactivate Messenger only, and reactivating Messenger automatically reactivates the Facebook account. Real accounts are therefore a precondition for reproducing the behaviour.

Finding it

The author noticed that an admin of a group chat cannot remove a user who has deactivated Facebook while keeping an active Messenger account. The deactivated user stays in the group as a member permanently, and the admin has no way to remove them.

The submission was titled:

Text
ADMIN CANNOT REMOVE DEACTIVATE USER FROM GROUP CHAT

with product area FBLite. The stated impact was that a dead Facebook user with an active Messenger remains a group member permanently, so an admin should have access to remove a deactivated user too.

Exploitation

Step 1: Admin attempts removal

AdminA tries to remove UserB from GroupA.

Step 2: Removal fails

UserB is not removed. The member remains in the group despite the admin's action.

That is the whole reproduction as submitted: two steps, no requests or responses shown. The report contains no HTTP traffic, no parameters and no error output, only the setup and the two steps above.

The triage conversation

Facebook replied in less than one hour, saying they were having a hard time reproducing the issue and asking for reproduction instructions, images and video. They said that in their testing they were able to remove deactivated users, and asked the author to verify with a new group and a few test accounts.

The author replied with a proof of concept of the reproduction. The conversation continued, and the triager again said they could not reproduce: removal worked fine in FBLite using FBDL test accounts. They asked which build version and phone model the author used, whether test or real accounts were involved, and for a video PoC if the issue could be reproduced with FBDL test users.

The author answered that test accounts cannot be used, because with test accounts it is not possible to deactivate Messenger only, and reactivating Messenger automatically reactivates the Facebook account. The build and phone model quoted above were provided at this point.

The report was then closed as informative, on the grounds that it did not meet the bar for a monetary reward. The reasoning given was that the user still appears in the member list, so users in the chat can choose not to send messages they do not want that user to see. The triager added that if the user had been hidden from the members list when they deactivated their account, that would have been a valid issue. The issue was considered low impact and not eligible for a monetary reward.

The author was not satisfied and pushed back. The argument was that the deactivated member can easily see every message in the group and can chat in the group easily, because only Facebook was deactivated, not Messenger. That is why nobody can remove them from the group, which the author argued makes it a high impact issue. The author also raised the case of a deactivated user who is an admin: the admin cannot be removed from the group, producing irremovable group chat admins and members.

After this further explanation the report was triaged and sent to the appropriate product team for investigation. The author confirmed the report was being forwarded and said they looked forward to updates.

Facebook later reported that the vulnerability had been patched and asked the author to say if the patch did not resolve the issue, promising a follow-up on bounty decisions. The author confirmed the vulnerability seemed to be patched on their side.

Reward

The bounty was awarded with a bonus:

With $25 as bonus:

From the original on imajk.medium.com

The platform record for this write-up lists the bounty as 500.00 USD.

Timeline

Event Date
Initial report 7 June 2021
Closed as informative (bug did not meet bar of monetary reward) 8 June 2021
Triaged (after further discussion) 8 June 2021
Fixed 18 June 2021
Bounty awarded 23 July 2021

Root cause

The report does not describe the underlying code or design mistake. What it establishes is the observable behaviour: the removal action available to a group chat admin does not take effect against a member whose Facebook account is deactivated while their Messenger account remains active. The report does not confirm this.

The reason the existing checks did not catch it is also not stated. What the conversation does show is that the behaviour depends on a state that Facebook's own test accounts cannot produce: a deactivated Facebook account with an active Messenger. The triager's attempts with FBDL test accounts succeeded in removing the user, while the author's real-account setup did not.

Impact

As described in the report, a deactivated Facebook user with an active Messenger remains a group member permanently, and the admin cannot remove them. The deactivated member can still see every message in the group and can still chat in the group, because only Facebook was deactivated, not Messenger. If the deactivated user is an admin, they cannot be removed from the group either, leaving irremovable admins and members.

Facebook's initial assessment was that the impact is low, because the user still appears in the member list and other users can choose not to send messages they do not want that user to see. The report was triaged after the author argued that the deactivated member retains full read and write access to the group chat. The conditions are specific: the affected user must have deactivated Facebook while keeping Messenger active, and the issue is in FBLite.

Fix

Facebook stated that the vulnerability had been patched and asked the author to report if the patch did not resolve the issue. The author confirmed the issue appeared to be patched on their side. The report does not say what was changed.

Variants to test

  • Deactivated account with an active companion app: on other platforms with linked messaging and social products, deactivate one side only and check whether group or channel admins can still remove the account. A positive result is a member who remains listed and reachable after a removal attempt.
  • Deactivated admin: make the deactivated account an admin of a group and try to remove or demote it. A positive result is an admin that cannot be removed or demoted by other admins.
  • Test-account parity: check whether the platform's own test accounts can reproduce the deactivated-but-active-messaging state. If they cannot, as here, reproduction requires real accounts, and a report should say so explicitly to avoid a not-reproducible triage.
  • Membership list visibility: check whether a deactivated member is hidden from the member list. Per the triager, a hidden deactivated member would have been a valid issue, so this is the boundary worth probing.
  • Removal of deactivated members across clients: repeat the removal from the full app and from the lite client, and compare. A difference in behaviour between clients points at a client-specific membership handling bug.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

A security researcher found a bug in Facebook Lite, the lightweight version of the Facebook app. In a group chat, an admin (a person with special powers in the group) is supposed to be able to remove other members. But if a member had deactivated their Facebook account while still using Messenger, the admin could not remove them. The researcher argued the person stayed in the group and could still read and send messages. The researcher reported this to Facebook's security team. At first Facebook closed the report as informative, saying it fell below the bar for a monetary reward. The researcher explained more clearly why it mattered, After further discussion Facebook triaged the report, fixed the bug, and paid a bounty plus a 25 USD bonus. This is the story of that report, written for someone who has never done security work before.

Background: what is a group chat and what is an admin?

A group chat is a conversation with more than two people. In Facebook, a group chat is called a group or a group chat. Each group has one or more admins. An admin is a member with extra permissions: they can add people, remove people, change the group name, and so on. A normal member cannot remove anyone.

When you deactivate your Facebook account, your profile disappears from Facebook. Friends cannot see your timeline, you cannot post, and so on. But Facebook and Messenger are separate apps that share one account. You can deactivate Facebook and keep using Messenger. In that state, your Facebook profile is gone, but your Messenger account is still active, so you can still send and receive messages, and you still appear in the member lists of your group chats.

That combination, a deactivated Facebook account with an active Messenger, is the key to this bug.

The setup used to test

The researcher described a small test world with three things:

  • UserB: the person who deactivates Facebook but keeps Messenger.
  • GroupA: the group chat.
  • AdminA: the admin of GroupA.

UserB and AdminA are both members of GroupA, and AdminA is the admin. UserB has deactivated Facebook but is still using Messenger. The app used is Facebook Lite.

Later in the conversation the researcher gave the exact app version and phone model:

Text
App version : 253.0.0.8.119
Phone Model : Samsung Galaxy J4

This is a text block, not code. It records two facts: the build number of Facebook Lite installed on the phone, and the phone model. Security reports often include these because a bug may exist only in one version of an app or on one type of device. If the person reviewing the report uses a different version, they may not see the bug.

The researcher also explained that the bug cannot be reproduced with Facebook's own test accounts. Facebook gives test accounts (called FBDL test accounts by the person who replied) to people who report bugs, so they can experiment without using real people's data. But with a test account, you cannot deactivate Messenger alone. If you try to reactivate Messenger, the Facebook account comes back too. So the special state, Facebook off and Messenger on, cannot be created with a test account. You need real accounts. This detail matters because it explains why Facebook's team kept failing to reproduce the bug.

Finding the bug

The researcher noticed that when AdminA tried to remove UserB from GroupA, UserB was not removed. The removal action simply did not work against a user in that deactivated-Facebook-but-active-Messenger state. The user stayed in the group permanently.

The report was submitted with this title:

Text
ADMIN CANNOT REMOVE DEACTIVATE USER FROM GROUP CHAT

This is plain text, the title of the report. It says exactly what the bug is: an admin cannot remove a deactivated user from a group chat.

The product area was listed as FBLite, meaning the bug is in the Facebook Lite app. The stated impact was that a dead Facebook user with an active Messenger remains a group member permanently, so an admin should be able to remove a deactivated user too. In security language, this is a logic flaw: the app follows its rules, but the rules themselves are wrong or incomplete for this situation. Nothing crashes and no data is stolen; the app simply allows a state it should not allow.

How to reproduce it

The reproduction had two steps.

  1. AdminA tries to remove UserB from GroupA.
  2. UserB is not removed.

That is the whole reproduction as submitted. There are no web requests, no parameters, no error messages, and no screenshots in the original submission. The report only gives the setup and these two steps. This is common for logic flaws in mobile apps: the bug is in what the app does, not in a specific network request that can be copied.

The conversation with Facebook

Facebook's security team replied in less than one hour. They said they were having a hard time reproducing the issue and asked for reproduction instructions, images, and video. They said that in their testing they were able to remove deactivated users, and asked the researcher to check again using a new group and a few test accounts.

The researcher replied with a proof of concept of the reproduction. A proof of concept, or PoC, is a demonstration that the bug is real: usually screenshots or a video showing the steps and the result. The conversation continued, and the person from Facebook, named Tyler in the replies, again said they could not reproduce it. Removal worked fine in FBLite when using FBDL test accounts. Tyler asked which build version and phone model the researcher used, whether test or real accounts were involved, and for a video PoC if the bug could be reproduced with FBDL test users.

The researcher answered that test accounts cannot be used, because with test accounts you cannot deactivate Messenger only, and reactivating Messenger automatically reactivates the Facebook account. The build and phone model quoted above were provided at this point.

The report was then closed as informative. In bug bounty programmes, informative means the report was read and is considered useful information, but it does not qualify for a reward. The reason given was that the user still appears in the member list, so people in the chat can choose not to send messages they do not want that user to see. Tyler added that if the user had been hidden from the members list when they deactivated their account, that would have been a valid issue. In this case the issue was considered low impact and not eligible for a monetary reward.

The researcher was not satisfied and pushed back. The argument was that the deactivated member can easily see every message in the group and can chat in the group easily, because only Facebook was deactivated, not Messenger. That is why nobody can remove them from the group, which the researcher argued makes it a high impact issue. The researcher also raised the case of a deactivated user who is an admin: the admin cannot be removed from the group, producing irremovable group chat admins and members.

After this further explanation the report was triaged. Triaged means the security team accepted the report as a real issue and sent it to the engineers who can fix it. The researcher confirmed the report was being forwarded and said they looked forward to updates.

Facebook later reported that the vulnerability had been patched and asked the researcher to say if the patch did not resolve the issue, promising a follow-up on bounty decisions. The researcher confirmed the vulnerability seemed to be patched on their side.

The reward

The bounty was awarded with a bonus:

With $25 as bonus:

From the original on imajk.medium.com

The platform record for this write-up lists the bounty as 500.00 USD.

Timeline

Event Date
Initial report 7 June 2021
Closed as informative (bug did not meet bar of monetary reward) 8 June 2021
Triaged (after further discussion) 8 June 2021
Fixed 18 June 2021
Bounty awarded 23 July 2021

Why the bug happened

The report does not describe the underlying code or design mistake. What it establishes is the observable behaviour: the removal action available to a group chat admin does not take effect against a member whose Facebook account is deactivated while their Messenger account remains active. The report does not confirm this.

The reason the existing checks did not catch it is also not stated. What the conversation does show is that the behaviour depends on a state that Facebook's own test accounts cannot produce: a deactivated Facebook account with an active Messenger. The triager's attempts with FBDL test accounts succeeded in removing the user, while the researcher's real-account setup did not.

Impact

As described in the report, a deactivated Facebook user with an active Messenger remains a group member permanently, and the admin cannot remove them. The deactivated member can still see every message in the group and can still chat in the group, because only Facebook was deactivated, not Messenger. If the deactivated user is an admin, they cannot be removed from the group either, leaving irremovable admins and members.

Facebook's initial assessment was that the impact is low, because the user still appears in the member list and other users can choose not to send messages they do not want that user to see. The report was triaged after the researcher argued that the deactivated member retains full read and write access to the group chat. The conditions are specific: the affected user must have deactivated Facebook while keeping Messenger active, and the issue is in FBLite.

The fix

Facebook stated that the vulnerability had been patched and asked the researcher to report if the patch did not resolve the issue. The researcher confirmed the issue appeared to be patched on their side. The report does not say what was changed.

Other situations worth testing

These are variations of the same idea that a security tester might try on other platforms or features.

  • Deactivated account with an active companion app: on other platforms with linked messaging and social products, deactivate one side only and check whether group or channel admins can still remove the account. A positive result is a member who remains listed and reachable after a removal attempt.
  • Deactivated admin: make the deactivated account an admin of a group and try to remove or demote it. A positive result is an admin that cannot be removed or demoted by other admins.
  • Test-account parity: check whether the platform's own test accounts can reproduce the deactivated-but-active-messaging state. If they cannot, as here, reproduction requires real accounts, and a report should say so explicitly to avoid a not-reproducible triage.
  • Membership list visibility: check whether a deactivated member is hidden from the member list. Per the triager, a hidden deactivated member would have been a valid issue, so this is the boundary worth probing.
  • Removal of deactivated members across clients: repeat the removal from the full app and from the lite client, and compare. A difference in behaviour between clients points at a client-specific membership handling bug.

Glossary

  • Admin: a member of a group chat who has extra permissions, such as adding or removing other members.
  • Bounty: a reward, usually money, paid by a company to someone who reports a security bug to it.
  • Bug bounty programme: a scheme run by a company that invites people to report security bugs and pays for valid ones.
  • Deactivate: to turn off an account so that the profile is hidden and unusable, while the account data is kept and the account can be reactivated later.
  • FBLite: Facebook Lite, a lightweight version of the Facebook app designed for slower networks and less powerful phones.
  • FBDL test accounts: test accounts provided by Facebook for people who report bugs, so they can experiment without using real accounts.
  • Group chat: a conversation in a messaging app with more than two participants.
  • Impact: the harm a bug can cause, such as exposing data or letting someone do something they should not be able to do.
  • Informative: a status for a bug report meaning it was read and is considered useful information, but does not qualify for a reward.
  • Logic flaw: a bug where the app follows its rules but the rules themselves are wrong or incomplete for some situation, so the app allows something it should not.
  • Messenger: Facebook's messaging app, which shares an account with Facebook but can be active while the Facebook account is deactivated.
  • Patch: a fix for a bug, usually a change to the software.
  • PoC (proof of concept): a demonstration that a bug is real, usually screenshots or a video showing the steps and the result.
  • Reproduce: to make a bug happen again by following the same steps, so that someone else can confirm it.
  • Triage: the process where a security team reviews a report, confirms it is a real issue, and sends it to the engineers who can fix it.
  • Vulnerability: a weakness in software that can be used to cause harm or break the intended behaviour.

More from Meta

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.