Facebook Portal’s business logic error
The Facebook Portal app did not properly enforce account blocking between users who shared an album. A blocked user could still view and upload new photos to the album, while the album owner could no longer see or remove that blocked user.
I had sent +50 reports to the Facebook across 3 accounts. Sadly :( all of my reports closed as informative, not-applicable, duplicate.
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 Portal is a multi functional app mainly designed for Portal devices which helps to make calls, create/share albums and photos to connected Portal devices, although it works without a Portal device too. The target here is the Facebook Portal Android application, and the feature under scrutiny is album sharing: a user creates an album, becomes its admin, and adds friends to it. The bug is a business logic error in how that album membership interacts with Facebook's account block feature.
The author, Unurbayar Amarsaikhan (@0xunuruu), frames this as his first valid bug in Facebook after more than 50 reports across 3 accounts, all closed as informative, not-applicable or duplicate. The write-up credits Abhishek Pathak's earlier Portal write-up on seeing and deleting private Portal photos as the starting point that led him to the Portal Android application.
Setup
The reproduction needs two Facebook accounts that are friends, and the Portal Android app. The report's own environment line is:
Users: [UserA, UserB; UserA is friends with UserB]
Environment: [AlbumOne with owner UserA in Portal]
Browser: [n/a]
OS: [Android]
No tooling, app version or intercepting proxy is described. The whole test is performed through the app's normal UI.
Finding it
The author first looked at the Portal Android application in December 2021, after Pathak's write-up, and judged it to have less functionality and features than other Facebook products, so he assumed it was not exploitable anymore. In April 2022 he checked it again, found nothing, and went to bed. While lying in bed he wondered how the Facebook account block feature would behave between accounts inside Portal, and decided to test it the next day.
What he found was that Facebook Portal had not implemented the account block feature properly. The report says Facebook Portal had not implemented the account block feature properly.

Exploitation
The report describes the behaviour in prose first: two accounts are created and are friends. In Facebook Portal the first account creates an album and uploads some photos. The first account then shares his album to the second account in Facebook Portal. The second account then blocks the first account in Facebook.
By blocking, the first account is no longer able to remove or see the second account from his album. At the same time, the second account is still able to see newly uploaded photos and upload new photos into the album.
Step 1: UserA creates AlbumOne
UserA creates an album in Portal and becomes its admin.
Step 2: UserA uploads a picture
UserA uploads a picture to AlbumOne.
Step 3: UserA adds UserB
UserA adds UserB to AlbumOne. UserB is now a member of the album.
Step 4: UserB blocks UserA
UserB blocks UserA in Facebook. This is the action that should sever the relationship between the two accounts.
Step 5: UserA cannot see or remove UserB
After the block, UserA can no longer see UserB in the album, and cannot remove UserB from it. The admin has lost the ability to manage a member who is still present in the album.
Step 6: UserA uploads a new picture
UserA uploads a new picture to AlbumOne, unaware that the blocked member still has access.
Step 7: UserB accesses AlbumOne
UserB opens AlbumOne.
Step 8: UserB sees the new picture
UserB can see the picture UserA uploaded after the block.
Step 9: UserB uploads a picture
UserB uploads a picture to AlbumOne. The blocked user retains write access to the admin's album.
Root cause
The report does not describe the code or the API behind the app, so the mechanism is not explained. When UserB blocks UserA, the block is applied to the friendship and to visibility in the main Facebook surfaces, but the album membership record is not revoked or hidden from the admin's view. The two checks disagree, and the block ends up protecting the blocked user from removal rather than protecting the admin.
Impact
As the report states it: the admin cannot remove and see their friends, and those friends can access the album and upload new pictures. In practice, a user who has blocked the album admin keeps access to the album, sees photos uploaded after the block, and can add photos of their own, while the admin has no way to see or remove that member. The report does not go beyond this: it does not claim access to albums the user was never added to, nor any access outside Portal.
Fix
The report records that the issue was fixed on 2022/06/09 and that the fix was confirmed by the author the same day. It does not say what was changed.
Timeline
| Date | Event |
|---|---|
| 2022/04/18 | Report submitted |
| 2022/04/21 | Acknowledged by Facebook |
| 2022/04/25 | Asked for update |
| 2022/05/01 | Asked for update |
| 2022/05/04 | Needs more info |
| 2022/05/04 | Provided another PoC |
| 2022/05/06 | More investigation |
| 2022/05/11 | Asked for update |
| 2022/05/12 | Asked for update |
| 2022/05/16 | Asked for update |
| 2022/05/17 | Bounty rewarded, 500 USD |
| 2022/06/09 | Fixed |
| 2022/06/09 | Fix confirmed by the author |
- Reverse the roles: have the album admin block a member. A positive result is that the blocked member can still open the album, see new photos and upload, while the admin's member list no longer shows them.
- Test other shared containers with the same membership model, such as shared photo sets or group-style objects in companion apps. A positive result is that a block leaves the blocked account with access to content added after the block.
- Test unblocking: after UserB unblocks UserA, check whether the membership reappears correctly for the admin. A positive result is a stale or duplicated membership entry, or a member the admin still cannot remove.
- Test removal before the block: have the admin remove the member, then have the member block the admin, and check whether the removed member regains access. A positive result is access to the album after removal.
- Test the same flow on other platforms of the same product (web or iOS) if the feature exists there. A positive result is the same divergence between the block state and album membership.
What happened, in plain words
Facebook Portal is an app made mainly for Portal devices, small screen devices that Facebook sells for video calls. The app lets you make calls and create and share albums of photos with Portal devices linked to your account. It also works without owning a Portal device. The person who found this bug, Unurbayar Amarsaikhan (@0xunuruu), tested the Android version of the Portal app. The feature he looked at is album sharing: you create an album, you become its admin (the person in charge of it), and you add friends to it so they can see and add photos.
The bug is a business logic error. That term means the program does what it was coded to do, but the rules of the real world are wrong. Think of a gym where cancelling your membership stops your card at the front door, but the locker room door still opens with the same card. Nothing crashed and no password was stolen; two parts of the system simply disagreed about who is allowed in.
Here the two parts are Facebook's block feature and Portal's album membership. The report says Facebook Portal had not implemented the account block feature properly. The result is strange: the album admin can no longer see or remove the friend who blocked them, yet that friend can still open the album, see photos uploaded after the block, and upload new photos.
This was the author's first valid bug at Facebook. He says he had sent more than 50 reports across 3 accounts and all of them were closed as informative, not-applicable or duplicate. Those are the labels a bug bounty platform uses when a report is not a real security issue, does not apply, or was already reported by someone else. He credits an earlier write-up by Abhishek Pathak about seeing and deleting private Portal photos as the starting point that led him to look at the Portal Android application.

The setup you need
To repeat the test you need two Facebook accounts that are friends with each other, and the Portal app on an Android phone. The report's own environment line is:
Users: [UserA, UserB; UserA is friends with UserB]
Environment: [AlbumOne with owner UserA in Portal]
Browser: [n/a]
OS: [Android]
Line by line:
Users: [UserA, UserB; UserA is friends with UserB]names the two test accounts. UserA and UserB are friends on Facebook before anything starts.Environment: [AlbumOne with owner UserA in Portal]says the album used in the test is called AlbumOne and belongs to UserA.Browser: [n/a]means no web browser is involved.OS: [Android]means the test runs on an Android phone.
No special tools, no app version and no intercepting proxy are mentioned. An intercepting proxy is a program that sits between an app and the internet and lets you read and change the traffic; here the whole test is done by tapping through the app's normal screens, the same way any user would.
How he found it
In December 2021, after reading Pathak's write-up, the author opened the Portal Android application. It seemed to have fewer functions and features than other Facebook products, so he assumed it was no longer exploitable and moved on.
In April 2022 he was hunting on Facebook again, checked the Portal app once more, found nothing, and went to bed. While lying in bed he wondered how the Facebook account block feature would behave between two accounts inside Portal. It was late, so he decided to test that idea the next day.
What he found was that Facebook Portal had not implemented the account block feature properly. The mismatch is between two Facebook surfaces: blocking is enforced on the main platform, but the album membership inside Portal is not brought into line with it.
Doing it, step by step
The report first describes the behaviour in prose. Two accounts are created and are friends. In Facebook Portal the first account creates an album and uploads some photos. The first account then shares his album to the second account in Facebook Portal. The second account then blocks the first account in Facebook.
By blocking, the first account is no longer able to remove or see the second account from his album. At the same time, the second account is still able to see newly uploaded photos and upload new photos into the album.
The same thing as numbered steps:
- UserA creates AlbumOne in Portal and becomes its admin.
- UserA uploads a picture to AlbumOne.
- UserA adds UserB to AlbumOne. UserB is now a member of the album.
- UserB blocks UserA in Facebook. This is the action that should cut the relationship between the two accounts.
- After the block, UserA can no longer see UserB in the album and cannot remove UserB from it. The admin has lost the ability to manage a member who is still in the album.
- UserA uploads a new picture to AlbumOne, not knowing the blocked member still has access.
- UserB opens AlbumOne.
- UserB can see the picture UserA uploaded after the block.
- UserB uploads a picture to AlbumOne. The blocked user still has write access to the admin's album.
Why each step matters:
- Steps 1 to 3 build the normal situation: an album with an owner and one invited member. Without this there is nothing to break.
- Step 4 is the trigger. A block is supposed to end contact between two accounts, so after it the member should no longer be part of the admin's album.
- Step 5 is the first half of the bug: the admin's view is affected by the block, but in the wrong direction. The admin cannot manage the member any more.
- Steps 6 to 9 are the second half: the member's access is not affected at all. They can read new content and write new content.
Why it happens
The report does not describe the code or the API behind the app, so the mechanism can only be inferred. An API (application programming interface) is the set of addresses and rules an app uses to talk to the company's servers; think of it as the service counter where the app places orders and gets answers.
The report does not describe the code or the API behind the app, so the mechanism is not explained. When UserB blocks UserA, the block is applied to the friendship and to visibility on the main Facebook surfaces, but the album membership record is not revoked or hidden from the admin's view. The two checks disagree, and the block ends up protecting the blocked user from removal rather than protecting the admin.
What it means for users
As the report states it: the admin cannot remove and see their friends, and those friends can access the album and upload new pictures. In practice, a user who has blocked the album admin keeps access to the album, sees photos uploaded after the block, and can add photos of their own, while the admin has no way to see or remove that member. The report does not go beyond this: it does not claim access to albums the user was never added to, nor any access outside Portal.
The fix
The report records that the issue was fixed on 2022/06/09 and that the author confirmed the fix the same day.
Timeline
| Date | Event |
|---|---|
| 2022/04/18 | Report submitted |
| 2022/04/21 | Acknowledged by Facebook |
| 2022/04/25 | Asked for update |
| 2022/05/01 | Asked for update |
| 2022/05/04 | Needs more info |
| 2022/05/04 | Provided another PoC |
| 2022/05/06 | More investigation |
| 2022/05/11 | Asked for update |
| 2022/05/12 | Asked for update |
| 2022/05/16 | Asked for update |
| 2022/05/17 | Bounty rewarded, 500 USD |
| 2022/06/09 | Fixed |
| 2022/06/09 | Fix confirmed by the author |
A PoC, proof of concept, is a small demonstration that shows the bug really happens, usually a set of steps or screenshots. "Needs more info" means the security team asked for more detail before deciding.
- Reverse the roles: have the album admin block a member. A positive result is that the blocked member can still open the album, see new photos and upload, while the admin's member list no longer shows them.
- Test other shared containers with the same membership model, such as shared photo sets or group-style objects in companion apps. A positive result is that a block leaves the blocked account with access to content added after the block.
- Test unblocking: after UserB unblocks UserA, check whether the membership reappears correctly for the admin. A positive result is a stale or duplicated membership entry, or a member the admin still cannot remove.
- Test removal before the block: have the admin remove the member, then have the member block the admin, and check whether the removed member regains access. A positive result is access to the album after removal.
- Test the same flow on other platforms of the same product (web or iOS) if the feature exists there. A positive result is the same divergence between the block state and album membership.
Glossary
- API: the set of addresses and rules an app uses to talk to a company's servers, like a service counter where orders are placed.
- Admin: the person who owns and manages a shared item, here the album.
- Album membership: the record that says which accounts have been added to an album and what they may do in it.
- Block (Facebook): a setting where one account stops another from interacting with it on Facebook.
- Bug bounty: a programme that pays researchers for reporting security problems to a company.
- Business logic error: a flaw where the program runs as coded but the rules it enforces are wrong, so users can do things they should not be allowed to do.
- Duplicate: a report about an issue that was already reported.
- Informative: a report closed because it is not considered a security issue.
- Intercepting proxy: a tool that sits between an app and the internet so you can read and change the traffic.
- Not-applicable: a report closed because the issue does not apply to the programme's scope.
- PoC (proof of concept): a small demonstration that proves a bug really happens.
- Portal device: a screen device made by Facebook for video calls.
- Read access: permission to see content.
- Write access: permission to add or change content.
- Revoke: to cancel a permission or membership.
- Root cause: the underlying reason a bug happens.
- Stale entry: an old record that should have been updated or removed but was not.