Skip to content
Info disclosure Write-up Beginner

How I found a simple bug in Facebook without any Test

A user who had left a closed group or been blocked still received notifications about events in that group, including the event's last updated name. This could let a former member or blocked user learn information about a group they should no longer have access to.

Sarmad Hassan Follow

Published on medium.com

{{media:0}}

Sarmad Hassan (Juba Baghdad), on 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. 4 min read.

Context

Facebook's notification system delivers alerts to users about activity in groups and events they are connected to. The feature at the centre of this write-up is the notification an event generates, and specifically the event name carried inside that notification. The report describes a case where a notification about an event in a closed group reached someone who was no longer entitled to see that group's content.

Setup

The researcher did not use any tooling for the initial discovery. The report's title says the bug was found without any test: it appeared in the researcher's own News feed. The only preparation described is a personal test closed group, which the researcher used afterwards to reproduce and characterise the behaviour. No accounts, roles, versions or special configuration are listed beyond that.

Finding it

On 28 August 2018 the researcher was checking the News feed and received a notification that looked wrong. The notification concerned an event belonging to a closed group that had been deleted.

The notification was for an event in a closed group, and the researcher was an ex-member of that group, having left it. Leaving a closed group means the group and its contents are no longer accessible. So a notification about an event in that group should not have arrived at all.

Within seconds the researcher treated it as a security bug, and two follow-up questions came to mind:

  • What about blocked users?
  • If an event name is changed and the event is then deleted, is it possible to see the last updated name of the event, after users have been blocked or have left the group?

Exploitation

Step 1: Observe the notification

The starting point is the notification itself, received without any action on the researcher's part. It announced an event belonging to a closed group the researcher had left, and the group had been deleted. The report does not include the notification's markup, endpoint or parameters; the screenshot above is the only record of it.

Step 2: Reproduce in a test closed group

The researcher then worked with a personal test closed group to confirm the behaviour under controlled conditions. No requests are shown for this stage. The observations were:

  1. Blocked users and users who had left the group could still receive a notification carrying the last updated name of the event.
  2. The behaviour worked in all kinds of events (accounts, pages, even Workplace), not only in closed groups.

Step 3: Report

The researcher reported the issue directly to the Facebook Security Team, who accepted it as a valid bug. The report does not describe the contents of the submission beyond that.

Root cause

The report does not analyse the code. What it establishes is the observable behaviour: the notification path delivered the event's last updated name to users who were blocked from, or had left, the group that owned the event. The report does not explain why the notification was delivered.

Impact

The exposure is of the last updated name of an event, delivered to blocked users and to users who had left the group, including after the event was deleted. The behaviour was not limited to closed groups: it applied to events across accounts, pages and Workplace. The report gives no indication of scale, of how many users or groups were affected, or of any further data beyond the event name.

Fix

The timeline records the bug as fixed on 31 January 2019, with the fix confirmed the same day.

Date Event
28 Aug 2018 Initial report
31 Aug 2018 Report triaged
19 Dec 2018 Bounty awarded
31 Jan 2019 Bug fixed
31 Jan 2019 Fix confirmed

Variants to test

  • Notifications for objects you have left. Join a closed group, leave it, then have another member update and delete an event. A positive result is a notification arriving with the updated event name after you have left.
  • Notifications after blocking. Block a user or group member who owns an event, then have the event renamed. A positive result is the new name reaching you despite the block.
  • Other object types. Repeat the same pattern on events owned by accounts, pages and Workplace rather than groups, since the report says the behaviour was not confined to closed groups. A positive result is the same leak on any of those surfaces.
  • Deleted objects. Delete the event after renaming it and check whether the last updated name still appears in a notification. A positive result is the final name surviving deletion.

The researcher's closing note is worth keeping: sometimes you do not need tools or the browser's developer console to find a valid bug.

Image for post
Image for post From the original on medium.com

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. 7 min read.

What happened, in plain words

A security researcher was scrolling through his own Facebook News feed one day in August 2018 when a notification appeared that should never have reached him. The notification was about an event belonging to a closed group. He had left that group, and the group had been deleted. A closed group is a group whose posts and contents are only visible to its members, so once you leave it you lose access to everything inside it. Getting a notification from it was therefore wrong.

That notification carried the event's name, and specifically its most recently updated name. The researcher then reproduced the same behaviour in a test group of his own and found that blocked users and users who had left a group could still receive notifications containing the latest name of an event, even after the event was deleted. He reported it to Facebook's security team, they accepted it as a valid bug, and a bounty was awarded.

The important part for a beginner is this: he found it by simply using Facebook and noticing something that did not make sense. No special tools, no hacking software, no developer console. The report's own takeaway says exactly that.

Sarmad Hassan (Juba Baghdad)
Sarmad Hassan (Juba Baghdad) From the original on medium.com

The pieces you need to understand first

Before walking through the story, here are the ideas it relies on, explained from scratch.

  • News feed: the main stream of posts and notifications you see when you open Facebook. It is assembled by Facebook's servers and shown to you in your browser.
  • Notification: a short alert that something happened, for example that an event was created or changed. Notifications are generated on the server and delivered to the people the server thinks should see them.
  • Group: a space on Facebook where a set of people share posts. A closed group is one where only members can see the contents. If you are not a member, the group's contents are supposed to be invisible to you.
  • Event: a Facebook object representing something happening at a time and place, such as a meetup. An event has a name, and that name can be edited later. Events can belong to a group, a personal account, a page, or a Workplace space.
  • Blocking: telling Facebook you do not want a particular person to interact with you. A blocked user is supposed to lose the ability to see your content.
  • Authorisation: the process of deciding whether a particular person is allowed to do or see a particular thing. When a server hands out information, it is supposed to check, every time, whether the person asking is still allowed to have it. A broken authorisation bug is when that check is missing or wrong, so someone sees something they should not.
  • Bounty: a reward, usually money, that a company pays a researcher who reports a security bug responsibly instead of abusing it.
  • Triaged: a report has been looked at by the security team and confirmed as a real issue worth working on.
  • PoC (proof of concept): a demonstration that the bug is real, often a short video or a set of steps.

A useful everyday comparison: think of a closed group as a members-only club room. When you cancel your membership, the door should no longer open for you, and the club should stop sending you the newsletter. Here, the newsletter kept arriving with the latest news inside it.

Finding it

On 28 August 2018 the researcher was checking his News feed. A notification appeared that he describes as weird. It was a notification for an event belonging to a closed group that had been deleted.

Why was it weird? Two reasons, both stated in the report:

  1. The notification was about an event in a closed group.
  2. He was an ex-member of that group. He had left it, which means he could no longer access the group or see its contents.

So the question he asked himself was simple: why did a notification from that group arrive at all, when he was no longer a member?

Within seconds he treated it as a security bug. He then asked himself two follow-up questions, which are the seed of any good bug report because they turn one odd observation into a testable idea:

  • What about blocked users? If blocking is supposed to cut off content, does a blocked user still get these notifications?
  • If an event's name is changed and the event is then deleted, can someone who was blocked or who left the group still see the last updated name of the event?

Notice the thinking style: he did not immediately try to break anything. He noticed one wrong thing, then asked where else the same wrong thing might happen.

Reproducing it in a test group

A single odd notification could be a glitch. To be sure it was a real, repeatable bug, the researcher set up his own test closed group and played with it. This is the security habit called reproduction: make the thing happen again on purpose, under conditions you control, so you know exactly what causes it.

The report does not show any requests, URLs or parameters for this stage. What it records are two observations:

  1. Blocked users and users who had left the group could receive a notification carrying the last updated name of the event.
  2. It worked in all kinds of events (accounts, pages, even Workplace), not just in closed groups.

The second observation is what turns a small glitch into a broader bug: the same faulty behaviour appears on several different surfaces of the product, not only the one where he first saw it.

Reporting it

The researcher reported the issue directly to the Facebook Security Team. They accepted it as a valid bug and paid a bounty. The report does not describe what was written in the submission beyond that.

He also thanks, with humour, the admin of the group who deleted the event, because that deletion is what triggered the notification he noticed.

Image for post
Image for post From the original on medium.com

Why it happened

The report does not analyse Facebook's code, so we can only describe the behaviour it establishes: the notification path delivered the event's last updated name to people who were blocked from, or had left, the group that owned the event.

A name captured at the moment the event was updated then travelled to recipients who should no longer have received anything from that group.

What the impact was

What leaked was the last updated name of an event, delivered to blocked users and to users who had left the group, including after the event was deleted.

The behaviour was not limited to closed groups: it applied to events across accounts, pages and Workplace. The report gives no indication of scale, of how many users or groups were affected, or of any data beyond the event name.

The fix and the timeline

The bug was fixed on 31 January 2019, and the fix was confirmed the same day.

Date Event
28 Aug 2018 Initial report
31 Aug 2018 Report triaged
19 Dec 2018 Bounty awarded
31 Jan 2019 Bug fixed
31 Jan 2019 Fix confirmed

How you could look for the same pattern

These are the same ideas the researcher explored, written so that a beginner can try them on their own account. They are tests of your own account's behaviour, not attacks on other people.

  • Notifications for things you have left. Join a closed group, leave it, then have another member update and delete an event. A positive result is a notification arriving with the updated event name after you have left.
  • Notifications after blocking. Block a user or group member who owns an event, then have the event renamed. A positive result is the new name reaching you despite the block.
  • Other object types. Repeat the same pattern on events owned by accounts, pages and Workplace rather than groups, since the report says the behaviour was not confined to closed groups. A positive result is the same leak on any of those surfaces.
  • Deleted objects. Delete the event after renaming it and check whether the last updated name still appears in a notification. A positive result is the final name surviving deletion.

The researcher's closing note is worth keeping: sometimes you do not need tools or the browser's developer console to find a valid bug.

Glossary

  • News feed: the main stream of posts and alerts Facebook shows you when you open the site.
  • Notification: a short server-generated alert about something that happened, such as an event being created or changed.
  • Group: a space on Facebook where members share posts.
  • Closed group: a group whose contents are visible only to its members.
  • Ex-member: someone who has left a group and therefore no longer has access to it.
  • Event: a Facebook object representing something happening at a time and place, with a name that can be edited.
  • Blocking: a setting that stops a user from interacting with you and from seeing your content.
  • Authorisation: the check of whether a particular person is allowed to see or do a particular thing.
  • Broken authorisation: a bug where that check is missing or wrong, so someone sees something they should not.
  • Reproduction: making a bug happen again on purpose, under controlled conditions, to confirm it is real.
  • Bounty: a reward a company pays for a responsibly reported security bug.
  • Triaged: a report has been reviewed and confirmed as a real issue by the security team.
  • PoC (proof of concept): a demonstration, often a short video, that the bug is real.
  • Workplace: Facebook's product for organisations, mentioned in the report as another place where the behaviour appeared.
  • Developer console: the built-in browser panel used to inspect pages and requests; the researcher notes he did not need it.

More by Sarmad Hassan

View all

6 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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.