Skip to content
Race condition Disclosed report Intermediate

Race condition while removing the love react in community files.

The server-side handler for removing a 'love' reaction on community pages had a race condition, so sending many simultaneous requests let one user remove more reactions than they were allowed to. The issue was already known and fixed in the repository before the report, and the fix reached production the day after triage.

amir-sadaqah Follow

Originally disclosed on HackerOne

Bounty$150 Low View original
  • Triaged in 5 days
  • Fixed in 8 days
  • Paid in 5 days
  • Disclosed after 9 days

Summary by the program

The researcher found that the server-side code for handling the "unlike" function for community pages was vulnerable to a race condition. While logically one person is only allowed to remove the one like they had, a hundred requests at the same time could allow one person to do a hundred unlikes. We were already aware of this bug and it was already fixed in our repository. The fix was pushed to production the day after triaging. Since we want to encourage high quality reports, we still paid out for a bug that we already knew about and had fixed.

The original report as published on HackerOne, by amir-sadaqah. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the unlike handler checked the user's existing reaction and then deleted it without making that check-and-delete atomic, so concurrent requests all passed the check.

What the attacker needed

A community page with reactions; ability to send many requests at once

The fix

The fix was already in the repository and was pushed to production the day after triage.

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 report has not been written yet. The Original tab links to the source.

A race condition happens when a program checks something and then acts on it, but many requests arrive in between, so the check is passed more times than it should be. Here, one person should only be able to remove their own single reaction, but firing many requests at once let them remove many. The company already knew about this and had a fix ready.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More from Figma

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.