I Blocked Them, But They Could Still See Me: A Simple Privacy Logic Flaw
A privacy logic flaw allowed a blocked user to still see the victim's 'Last Seen' timestamp when the victim's visibility was set to 'Everybody'. An attacker could track a user who had blocked them, undermining the block's safety purpose.
Published on medium.com
In the world of bug hunting, we often go looking for complex “movie-style” hacks. But sometimes, the most impactful bugs are just simple logic errors hiding in plain sight.
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
The application checked the general visibility setting ('Everybody') before or without checking the block relationship, so the block was ignored.
Impact
A blocked user could still see the victim's last seen timestamp, allowing them to track the victim's activity despite the block, which is a privacy failure.
What the attacker needed
Victim and attacker are contacts; victim sets last seen to Everybody; victim blocks attacker
The fix
The platform implemented a server-side check to ensure that if a block relationship exists, it takes the highest priority, regardless of general privacy settings.
How it was found
- The victim and attacker were initially contacts on the platform.
- The victim set 'Who can see my last seen' to 'Everybody' in privacy settings.
- The victim then blocked the attacker.
- The attacker, now blocked, navigated to the victim's profile and could still see the 'Last Seen' timestamp.
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.
When you block someone on a social app, you expect them to see nothing about you. Here, the app checked a general 'who can see my last seen' setting before checking if the viewer was blocked, so a blocked person could still see when you were last online. This is a logic mistake: the block should always override other privacy settings.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.