Skip to content
Race condition Disclosed report Beginner

Race Condition in Flag Submission

The flag submission endpoint did not prevent the same flag from being submitted multiple times in quick succession, so an authenticated user could earn repeated points from a single solved challenge. This inflated the user's score and increased their chances of being invited to a private program.

dropper Follow

Originally disclosed on HackerOne

  • Paid in 45 days
  • Disclosed after 8 months

Summary:

This report describes a Race Condition Vulnerability which allow an authenticated user to submit the same Flag multiple times. Increasing the user points and therefore the chances to get an invitation to a private program.

Steps To Reproduce

To reproduce this bug, you need to:

  1. Login with a valid user account
  2. Solve one of the challenges and get a Flag. It can be the Trivial one (worth 1 point).
  3. Go to the submit page, put the Flag that was found and intercept the POST request that is sent during the Flag submission. You can use Burp Suite for that, for example.
  4. Then, you just have to submit the POST several times in a short time frame. I recommend a script with multi threads or "Race The Web" tool that I will mention below.
  5. Enjoy your extra points with the same flag.

Tool Used During PoC

To the PoC I used "Race The Web", available at: https://github.com/insp3ctre/race-the-web With this tool we can send the requests faster than we could with Burp Intruder. Getting better results.

Supporting Material/References (Screenshots)

The outcome is shown below:

ctfhackerone.png
ctfhackerone.png From the original on HackerOne

I've used the Trivial Flag 70 times and earned 2 invitations.

Note

I've created a new user to do this PoC. In case you want to delete, the e-mail is: ███████

Impact

An attacker could use this Race Condition vulnerability to earn extra points and increase the chances to get invited to a private program without the need to solve other chalanges available.

The original report as published on HackerOne, by dropper. 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 server checked whether a flag had already been submitted and then awarded points as separate steps, without making that check-and-award sequence atomic, so concurrent requests could all pass the check.

Impact

An attacker could earn extra points and improve their chances of being invited to a private program without solving additional challenges.

What the attacker needed

A valid user account; one solved challenge and its flag; ability to intercept and resend requests

How it was found

  1. Log in with a valid user account.
  2. Solve a challenge and obtain its flag.
  3. Intercept the POST request sent when submitting the flag.
  4. Send that POST request many times in a short time frame, for example with a multi-threaded script or a race tool.
  5. Observe extra points awarded for the same flag.

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 let the same flag be submitted many times at once, so it counted again and again and gave extra points.

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 HackerOne

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.