Skip to content
Business logic Write-up Beginner

Unremovable Tags In Facebook Page Reviews

A Facebook page review feature allowed a malicious user to tag a victim in a review, and the victim could not remove the tag, receiving an error. An attacker could use this to permanently associate a victim with spam or embarrassing content.

Max Pasqua Follow

Published on medium.com

Bounty$500 View original

Facebook pages have a feature to leave reviews on them. When making a review a malicious user could tag a victim and it would render the tag unremovable.

Max Pasqua, 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.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

Facebook pages let visitors leave reviews on them. When a user writes a review, they can tag another person in it, and that tag is normally something the tagged person can remove. Max Pasqua found that a malicious user could tag a victim in a page review in a way that made the tag impossible to remove: when the victim tried to remove it, the action returned an error. The result is that the victim stays permanently tagged in the review.

The researcher frames the impact around what an attacker can do with a tag the victim cannot shed. Because the victim cannot detach themselves, an attacker could point the stuck tag at spam posts or at embarrassing information, and the victim has no way to remove themselves from the post.

The proof of concept is three steps:

  1. Browse to the page you want the tag stuck on. The researcher suggests using a page the attacker owns, so that the page owner will not simply delete the post.
  2. Create a review and tag the victim.
  3. The victim can no longer remove the tag.

The report includes a video demonstrating the behaviour but no request, response, parameter or header. The timeline it gives is:

Event Date
Submitted October 13th, 2018
Triaged October 18th, 2018
Bounty awarded ($500) December 14th, 2018

The report does not state a severity rating, a CVSS score, a weakness classification or the fix that was applied.

Root cause

The report does not describe the underlying flaw. What it shows is that the removal path fails for a tag created in this way: the victim's attempt to untag themselves produces an error rather than removing the tag. The likely cause is a mismatch between how the tag is created and how the removal logic identifies or authorises it, so the removal request is rejected or cannot find the relationship it is meant to delete. The report does not confirm this.

Impact

The impact is a persistent unwanted association between the victim's profile and content the victim did not choose. The report's own framing is that an attacker could combine the stuck tag with massive spam posts or embarrassing information, and the victim would be unable to remove himself from the post. The researcher suggests using a page the attacker owns, so the page owner will not remove the post. The report does not claim account takeover, data exposure or any effect beyond the tag itself.

How this kind of bug works

Many platforms model a tag as a relationship between a piece of content and a user, with the tagged user granted the right to delete that relationship. Creation and deletion are usually handled by different code paths, and the deletion path has to re-derive which relationship to remove from the identifiers the client sends. Bugs appear when those two paths disagree: the creation path stores a reference in one form (for example, a different object type, a different identifier, or a nested structure for page reviews versus ordinary posts), while the deletion path looks for another form and finds nothing, or fails an ownership check and returns an error.

A second common cause is an authorisation check that treats the tag as owned by the content author rather than the tagged user, so the tagged user's removal request is refused. A third is a state inconsistency: the tag is written but the bookkeeping that marks it as removable is not, leaving the relationship in a state the UI cannot act on.

The defences are the same shape as the bug: the removal endpoint must resolve the tag from the same canonical representation the creation endpoint wrote, must authorise the tagged user (not only the content author or page owner), and must be idempotent so a retry after a partial failure still succeeds. Server-side validation of the tag target at creation time, plus tests that create a tag through every entry point and then remove it as the tagged user, catch most of these.

How to test for it

Look for features where one user can associate another user's identity with content: tags in posts, reviews, photos, comments, mentions, check-ins, collaborative objects. The interesting surface is the removal action, not the creation action.

  1. Create two accounts, an attacker and a victim, and, where the feature allows it, a page or object owned by the attacker.
  2. Perform the association through each entry point the product offers (different content types, different clients, different creation flows), tagging the victim.
  3. As the victim, attempt removal through the normal UI and record the exact request: method, path, body and any identifiers.
  4. Replay that request, and also try variations: removing by the tag identifier versus the content identifier, removing from a different session, removing after the content author edits the post.
  5. A positive result is a removal request that returns an error or a success response while the tag remains visible to the victim and to other users after a reload. Confirm persistence with a fresh session and, ideally, a second account viewing the content.

Common false positives: a cached UI that still shows the tag after a successful removal, a removal that succeeds only after a delay, or a tag that reappears because the attacker re-tags rather than because removal failed. Always verify server state, not just the rendered page, and check that the victim, not the content author, is the one attempting removal.

How it is fixed

Standard fixes are to make the removal endpoint resolve tags through the same canonical model used at creation, to authorise the tagged user explicitly, and to return a clear error only when removal genuinely is not permitted. Where the tag is stored as a separate relationship, the fix usually involves repairing existing inconsistent records so already-stuck tags become removable. Adding regression tests that create a tag via every entry point and remove it as the tagged user prevents recurrence.

Hunting notes

This class hides in features that were bolted onto an existing object model: reviews on pages, tags in comments, mentions in new content types. Recon signals include multiple creation paths for the same relationship, separate mobile and web clients, and endpoints whose identifiers differ between create and delete. To make a report land, demonstrate persistence with a second account and a fresh session, show the exact failing removal request, and describe the realistic abuse (spam, harassment, unwanted association) rather than the tag alone.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 8 min read.

What happened, in plain words

Facebook pages are public profiles for businesses, brands and public figures. Visitors can leave a review on a page, and when they write that review they can tag another person, meaning they attach that person's name to the post. Normally the tagged person can remove themselves from a post. Max Pasqua found that a malicious user could tag a victim in a page review in a way that made the tag impossible to remove: when the victim tried to remove it, the action returned an error. The victim stays permanently tagged.

Why does that matter? A tag links your name and profile to a piece of content. If you cannot remove it, someone else decides what your name is attached to. The researcher explains the impact this way: because the victim cannot detach themselves, an attacker could point the stuck tag at spam posts or at embarrassing information, and the victim has no way to remove themselves from the post.

The proof of concept is three steps:

  1. Browse to the page you want the tag stuck on. The researcher suggests using a page the attacker owns, so that the page owner will not simply delete the post.
  2. Create a review and tag the victim.
  3. The victim can no longer remove the tag.

Step 1 matters because the researcher suggests a page the attacker owns, so the page owner will not remove the post. Step 2 is creating a review and tagging the victim. Step 3 is the bug: the victim follows the normal untag action and gets an error instead of being detached.

The report includes a video demonstrating the behaviour but no request, response, parameter or header. The timeline it gives is:

Event Date
Submitted October 13th, 2018
Triaged October 18th, 2018
Bounty awarded ($500) December 14th, 2018

"Triaged" means the security team looked at the report, confirmed it was worth investigating and passed it to the right people. The report does not state a severity rating, a CVSS score, a weakness classification or the fix that was applied.

Root cause

The report does not describe the underlying flaw. What it shows is that the removal path fails for a tag created in this way: the victim's attempt to untag themselves produces an error rather than removing the tag. The likely cause is a mismatch between how the tag is created and how the removal logic identifies or authorises it, so the removal request is rejected or cannot find the relationship it is meant to delete. The report does not confirm this.

Impact

The impact is a persistent unwanted association between the victim's profile and content the victim did not choose. The report's own framing is that an attacker could combine the stuck tag with massive spam posts or embarrassing information, and the victim would be unable to remove himself from the post. The researcher suggests using a page the attacker owns, so the page owner will not remove the post. The report does not claim account takeover, data exposure or any effect beyond the tag itself.

In general, how this kind of bug works

Many platforms model a tag as a relationship between a piece of content and a user, with the tagged user granted the right to delete that relationship. Think of a name badge clipped to a noticeboard: the board owner pins the notice, but the person named on the badge is allowed to unclip their own badge. Creation and deletion are usually handled by different code paths, and the deletion path has to work out again which relationship to remove from the identifiers the client sends. Bugs appear when those two paths disagree: the creation path stores a reference in one form, for example a different object type, a different identifier, or a nested structure for page reviews versus ordinary posts, while the deletion path looks for another form and finds nothing, or fails an ownership check and returns an error.

A second common cause is an authorisation check that treats the tag as owned by the content author rather than the tagged user, so the tagged user's removal request is refused. A third is a state inconsistency: the tag is written but the bookkeeping that marks it as removable is not, leaving the relationship in a state the interface cannot act on.

The defences are the same shape as the bug: the removal endpoint must resolve the tag from the same canonical representation the creation endpoint wrote, must authorise the tagged user and not only the content author or page owner, and must be idempotent, meaning a retry after a partial failure still succeeds. Server-side validation of the tag target at creation time, plus tests that create a tag through every entry point and then remove it as the tagged user, catch most of these.

In general, how to test for it

Look for features where one user can associate another user's identity with content: tags in posts, reviews, photos, comments, mentions, check-ins, collaborative objects. The interesting surface is the removal action, not the creation action.

  1. Create two accounts, an attacker and a victim, and, where the feature allows it, a page or object owned by the attacker.
  2. Perform the association through each entry point the product offers, such as different content types, different clients and different creation flows, tagging the victim.
  3. As the victim, attempt removal through the normal interface and record the exact request: method, path, body and any identifiers. A request is simply the message your browser sends to the server when you click something, and the identifiers are the internal numbers or strings that name the post and the tag.
  4. Replay that request, and also try variations: removing by the tag identifier versus the content identifier, removing from a different session, removing after the content author edits the post.
  5. A positive result is a removal request that returns an error or a success response while the tag remains visible to the victim and to other users after a reload. Confirm persistence with a fresh session and, ideally, a second account viewing the content.

Common false positives: a cached interface that still shows the tag after a successful removal, a removal that succeeds only after a delay, or a tag that reappears because the attacker re-tags rather than because removal failed. Always verify server state, not just the rendered page, and check that the victim, not the content author, is the one attempting removal.

In general, how it is fixed

Standard fixes are to make the removal endpoint resolve tags through the same canonical model used at creation, to authorise the tagged user explicitly, and to return a clear error only when removal genuinely is not permitted. Where the tag is stored as a separate relationship, the fix usually involves repairing existing inconsistent records so already-stuck tags become removable. Adding regression tests that create a tag via every entry point and remove it as the tagged user prevents recurrence.

In general, hunting notes

This class hides in features that were bolted onto an existing object model: reviews on pages, tags in comments, mentions in new content types. Recon signals include multiple creation paths for the same relationship, separate mobile and web clients, and endpoints whose identifiers differ between create and delete. To make a report land, demonstrate persistence with a second account and a fresh session, show the exact failing removal request, and describe the realistic abuse, such as spam, harassment or unwanted association, rather than the tag alone.

Glossary

  • Tag: a link that attaches a person's profile to a piece of content, so their name appears on it.
  • Page: a public profile on Facebook for a business, brand or public figure, which visitors can review.
  • Review: a public comment left on a page, which can include a tag of another person.
  • Proof of concept (PoC): a short set of steps that reproduces a bug so someone else can confirm it.
  • Request: the message a browser sends to a server when you click or submit something, containing a method, a path and often a body.
  • Response: the server's reply to a request, which can be a success or an error.
  • Endpoint: the specific address on a server that handles one action, such as creating or removing a tag.
  • Parameter: a named value sent with a request, such as an identifier or a piece of text.
  • Header: extra information attached to a request or response, such as the type of content being sent.
  • Identifier: the internal number or string that names an object, such as a post or a tag.
  • Session: the logged-in state a server keeps for your browser, usually tied to a cookie.
  • Cookie: a small piece of data your browser stores and sends back to a site so the server recognises you.
  • Authorisation: the check that decides whether a given user is allowed to perform an action.
  • Authentication: proving who you are, usually by logging in; authorisation is what you are then allowed to do.
  • Root cause: the underlying programming mistake that produces a bug.
  • Idempotent: an action that gives the same result whether you perform it once or several times.
  • Canonical representation: the single standard form in which a piece of data is stored and looked up.
  • State inconsistency: a situation where stored data and the bookkeeping around it disagree, leaving an object in a state the interface cannot handle.
  • False positive: a result that looks like a bug but is not, for example a stale page that still shows something already removed.
  • Cache: a stored copy of a page or response that can be shown after the underlying data has changed.
  • Regression test: an automated test that checks a fixed bug stays fixed.
  • Recon: the early research stage where you map a product's features and entry points before testing.
  • Entry point: any place in a product where a user can trigger an action, such as a web form or a mobile app screen.
  • Triaged: the stage where a security team has reviewed a report and confirmed it deserves investigation.
  • CVSS: a standard scoring system for rating the severity of a security issue.
  • Severity: a rating of how serious a bug is.
  • Bounty: a payment a company makes to a researcher who reports a valid security bug.

More by Max Pasqua

View all

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

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.