A Tale of 2nd $xxx Bounty from Facebook
A co-host page admin could become an unremovable co-host on a Facebook event by deleting their page after accepting the co-host invite, because Facebook still treated the deleted page's admins as co-hosts internally. This allowed the attacker to edit or delete the event and its content without a visible co-host role, and the event owner could not remove them.
Published on medium.com
{{media:0}}
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.
Context
Facebook Events let a Page admin create an event on their Page. The admin who creates the event becomes the primary host, and a host can add multiple co-hosts, both Pages and profiles. When a Page is added as a co-host and accepts the invitation, that Page automatically becomes an admin of the event, which is the intended behaviour.
The bug described here is a logic flaw in how co-host Pages are handled when they are deleted. The report was submitted to Meta / Facebook, triaged, fixed and rewarded with a bounty, and disclosed on 10 February 2021. The author is Kunjan Nayak, who describes it as his 14th report and second valid one.
Setup
Two accounts and two Pages are involved:
| Role | Account | Page |
|---|---|---|
| Victim | userOne | pageOne |
| Attacker | userTwo | pageTwo |
userOne is the admin of pageOne and creates the event. userTwo is the admin of pageTwo and performs the attack from the FB4A app (the Facebook for Android client). The report notes that pageTwo was a test page, so it could easily be deleted.
Finding it
The researcher was doing basic testing on Facebook Events and noticed an unusual behaviour: he was not listed in the co-host list, yet he still had all co-host permissions. That mismatch between the visible role and the effective permissions is what made the behaviour look wrong.
Exploitation
Step 1: create the event and invite the co-host
userOne, as admin of pageOne, creates an event on pageOne and adds pageTwo as a co-host on that event.
Step 2: open the invitation
Logging in as userTwo, an invitation for the co-host role arrives as "PageOne is invited to PageTwo for the eventOne". The notification is opened from there.
Step 3: save the event, accept, then delete the Page
userTwo saves the event, then accepts the invitation. To become a hidden co-host, userTwo then deletes the whole of pageTwo, which makes him permanently unremovable.
The report notes that in practice an attacker would not delete his whole Page, because it makes the attack very limited. In practice an attacker with a co-host role would simply create a fake Page and add that fake Page as a co-host, which achieves the same hidden state without giving up a real Page.
Step 4: keep moderating the event
pageTwo is no longer a co-host, but userTwo, navigating to the event from FB4A where it was saved in step 3, can still see the event's "Edit" button and can delete any discussion posts, including on the event itself.


The report states that in practice it was impossible to remove the deleted co-host Page from the event, and that FB4A still treats the admins of the deleted Page as co-hosts internally. That is why userTwo remained effectively immortal on the event and could still moderate it.

Exploiting the bug, the attacker changed the event name.
Root cause
When a co-host Page is deleted, Facebook does not remove that Page's admins from the event. On FB4A and on the mobile version of Facebook, the admins of the deleted Page are still assumed internally to be co-hosts. The co-host therefore becomes hidden, while the permissions attached to it remain active. Because the deleted Page cannot be removed from the event, the owner and admin of the event cannot remove the person behind it either.
The report does not describe the server-side code or the specific check that failed, so the exact mechanism is only implied by the observed behaviour.
Impact
An admin of a deleted co-host Page can edit the event without holding a visible co-host role, and the owner or admin of the event cannot remove them. The report frames the security issue this way: the creator of an event has permission to modify, edit, delete and remove any user including co-hosts, so a co-host who cannot be removed can carry out malicious activities without being removed by the admin, because the co-host is hidden by the bug.
The report also states the limit plainly: reproducing the issue requires a co-host role, so the impact is limited.
Fix
Facebook fixed the issue; the report does not describe what was changed. The timeline records the fix on 8 January 2020 (as written in the report) and the bounty on 13 January 2021.
Timeline
- 2 September 2020: report sent.
- 15 September 2020: pre-triaged after further explanations.
- 2 October 2020: triaged.
- 15 October 2020: closed as informative, with an invalid reason given.
- 15 October 2020: the researcher objected, saying the reason was not valid for closing the report.
- 13 November 2020: triaged again after further impacts were shown.
- 8 January 2020 (as written): fixed by Facebook.
- 13 January 2021: bounty rewarded.
The whole process took around four months, with nearly 35 emails exchanged. Even after the report was closed several times, the researcher managed to get it accepted as a valid issue and received a bounty.
Variants to test
- Delete a co-host Page after accepting an event co-host invitation, then check from the mobile app whether the deleted Page's admins still see the Edit button and can delete discussion posts. A positive result is a hidden co-host that the event owner cannot remove.
- Instead of deleting a real Page, create a throwaway fake Page, add it as co-host, accept, and delete it. A positive result is the same persistence without sacrificing a real Page.
- Compare the co-host list on the web version against the mobile app and FB4A after the Page is deleted. A positive result is a role that is absent from the list but still enforced on one client.
- Try the same delete-after-accept sequence on other objects that grant roles to Pages, such as groups or other admin-managed resources, and check whether the deleted Page's admins retain permissions. A positive result is any permission that survives the deletion of the Page that granted it.
- After the deleted Page's admin changes the event name or deletes posts, check whether the event owner can remove that admin through any interface. A positive result is an admin who cannot be removed by the owner.
What happened, in plain words
Facebook lets a Page (a public profile for a business, brand or group) create an event, such as a party, a meetup or a product launch. The person who runs the Page and creates the event becomes the main host. A host can invite other Pages or personal profiles to help run the event as co-hosts. When a Page accepts a co-host invitation, that Page is supposed to get admin powers over the event: it can edit details, delete posts and so on. That part is normal and intended.
The bug is about what happens when a co-host Page is deleted. Facebook did not clean up properly. The admins of the deleted Page were still treated, internally, as co-hosts of the event, even though the Page itself was gone and no longer appeared in the co-host list. So the person behind the deleted Page kept their powers but became invisible in the list. The event owner could not remove them, because there was no visible co-host entry to remove. The researcher calls this a hidden, unremovable co-host, or persistence: the attacker stays on the event permanently.
The report was sent to Meta / Facebook, went through a long back and forth, was fixed, and paid a bounty. It was disclosed on 10 February 2021. The author is Kunjan Nayak, who describes it as his 14th report and his second valid one.
A quick word on the type of bug: this is a logic flaw. Most security bugs are about breaking something technical, like crashing a server or stealing a password. A logic flaw is different: the software works exactly as programmed, but the rules it follows are wrong or incomplete. It is like a building where the door lock works perfectly, but the rule says the cleaner's key still opens the door after the cleaner is fired. Nothing is broken; the rule is just wrong. Here, the rule that should have said "when a Page is deleted, remove its admins from the event" was missing.
Setup
Two accounts and two Pages are involved. Think of each account as a person and each Page as a company they manage.
| Role | Account | Page |
|---|---|---|
| Victim | userOne | pageOne |
| Attacker | userTwo | pageTwo |
userOne is the admin of pageOne and creates the event. userTwo is the admin of pageTwo and performs the attack from the FB4A app. FB4A simply means Facebook for Android, the mobile app. The report notes that pageTwo was a test page, so it could easily be deleted.
Finding it
The researcher was doing basic testing on Facebook Events, just clicking around and trying normal things, and noticed something odd. He was not listed in the co-host list, yet he still had all the co-host permissions. In other words, the label said he was not a co-host, but the software still treated him as one. That mismatch between what is shown and what is actually allowed is what made the behaviour look wrong. This is a useful habit for beginners: when the screen says one thing and the buttons say another, stop and investigate.
Exploitation
Step 1: create the event and invite the co-host
userOne, as admin of pageOne, creates an event on pageOne and adds pageTwo as a co-host on that event. This is the normal, intended flow: the owner invites help.
Step 2: open the invitation
Logging in as userTwo, an invitation for the co-host role arrives as "PageOne is invited to PageTwo for the eventOne". The notification is opened from there. The wording is a little confusing in the report, but the meaning is that pageOne is inviting pageTwo to co-host eventOne.
Step 3: save the event, accept, then delete the Page
userTwo saves the event, then accepts the invitation. Saving the event matters because it puts the event into the app's saved list, which the attacker will use later to get back to it. Then, to become a hidden co-host, userTwo deletes the whole of pageTwo. The idea is that once the Page is gone, Facebook should remove its admins from the event, but it does not, so the admin stays attached invisibly.
The report notes that in practice an attacker would not delete his whole Page, because it makes the attack very limited. In practice an attacker with a co-host role would simply create a fake Page and add that fake Page as a co-host, which achieves the same hidden state without giving up a real Page. That is the more realistic version of the attack.
Step 4: keep moderating the event
pageTwo is no longer a co-host, but userTwo, navigating to the event from FB4A where it was saved in step 3, can still see the event's "Edit" button and can delete any discussion posts, including on the event itself.


The screenshots are captioned to show the malicious admin has permission to edit and delete. The report states that in practice it was impossible to remove the deleted co-host Page from the event, and that FB4A still treats the admins of the deleted Page as co-hosts internally. That is why userTwo remained effectively immortal on the event and could still moderate it.

Exploiting the bug, the attacker changed the event name.
Root cause
When a co-host Page is deleted, Facebook does not remove that Page's admins from the event. On FB4A and on the mobile version of Facebook, the admins of the deleted Page are still assumed internally to be co-hosts. The co-host therefore becomes hidden: it no longer appears in the co-host list, but the permissions attached to it remain active. Because the deleted Page cannot be removed from the event, the owner and admin of the event cannot remove the person behind it either.
The report does not describe the server-side code or the specific check that failed, so the exact mechanism is only implied by the observed behaviour. In plain terms: the software forgot to do a cleanup step when a Page was deleted.
Impact
An admin of a deleted co-host Page can edit the event without holding a visible co-host role, and the owner or admin of the event cannot remove them. The report frames the security issue this way: the creator of an event has permission to modify, edit, delete and remove any user including co-hosts, so a co-host who cannot be removed can carry out malicious activities without being removed by the admin, because the co-host is hidden by the bug.
The report also states the limit plainly: reproducing the issue requires a co-host role, so the impact is limited. In other words, you cannot use this to attack an event you were never invited to help with. You need to be trusted enough to be made a co-host first.
Fix
Facebook fixed the issue; the report does not describe what was changed. The timeline records the fix on 8 January 2020 (as written in the report) and the bounty on 13 January 2021. The year 2020 for the fix looks like a typo in the report, since the report was sent in September 2020, but that is how it is written.
Timeline
- 2 September 2020: report sent.
- 15 September 2020: pre-triaged after further explanations.
- 2 October 2020: triaged.
- 15 October 2020: closed as informative, with an invalid reason given.
- 15 October 2020: the researcher objected, saying the reason was not valid for closing the report.
- 13 November 2020: triaged again after further impacts were shown.
- 8 January 2020 (as written): fixed by Facebook.
- 13 January 2021: bounty rewarded.
The whole process took around four months, with nearly 35 emails exchanged. Even after the report was closed several times, the researcher managed to get it accepted as a valid issue and received a bounty. The lesson for beginners: a closed report is not always the end. If you believe the issue is real, explain the impact more clearly and ask for it to be looked at again.
Variants to test
These are follow-up ideas in the same spirit, for anyone who wants to look for similar bugs. They are not part of the original report's steps, but they follow from it.
- Delete a co-host Page after accepting an event co-host invitation, then check from the mobile app whether the deleted Page's admins still see the Edit button and can delete discussion posts. A positive result is a hidden co-host that the event owner cannot remove.
- Instead of deleting a real Page, create a throwaway fake Page, add it as co-host, accept, and delete it. A positive result is the same persistence without sacrificing a real Page.
- Compare the co-host list on the web version against the mobile app and FB4A after the Page is deleted. A positive result is a role that is absent from the list but still enforced on one client.
- Try the same delete-after-accept sequence on other objects that grant roles to Pages, such as groups or other admin-managed resources, and check whether the deleted Page's admins retain permissions. A positive result is any permission that survives the deletion of the Page that granted it.
- After the deleted Page's admin changes the event name or deletes posts, check whether the event owner can remove that admin through any interface. A positive result is an admin who cannot be removed by the owner.
Glossary
- Page: a public profile on Facebook for a business, brand, group or public figure, managed by one or more admins.
- Admin: a person with full control over a Page or an event, including the power to edit it and remove other people.
- Event: a Facebook item for a happening with a date, such as a party or meetup, which people can be invited to and which can have hosts and co-hosts.
- Host: the person or Page that created the event and has the main control over it.
- Co-host: a Page or profile invited to help run an event, with admin-like powers over it once the invitation is accepted.
- FB4A: Facebook for Android, the official Facebook mobile app for Android phones.
- Logic flaw: a bug where the software works as programmed but the rules it follows are wrong or incomplete, so it allows something it should not.
- Persistence: in security, the ability of an attacker to keep access or a role over time, even after the normal cleanup steps.
- Hidden co-host: a co-host that no longer appears in the co-host list but whose permissions are still active.
- Triaged: the stage where the security team has reviewed a report and confirmed it is a real, valid issue worth working on.
- Pre-triaged: an earlier stage where the team has looked at the report and asked for more information or explanation before confirming it.
- Bounty: a cash reward paid by a company to a researcher who reports a valid security issue.
- Responsible disclosure: the practice of reporting a security issue privately to the company, giving them time to fix it, before talking about it publicly.
- Impact: the real-world harm a bug could cause, which is what security teams use to decide whether a report is worth acting on.