Skip to content
Race condition Write-up Advanced

Beyond the Limit: Expanding single-packet race condition with a first sequence sync for breaking the 65,535 byte limit

The single-packet attack technique for exploiting race conditions is limited to about 1,500 bytes per packet, restricting the number of simultaneous requests. The author developed a method using IP fragmentation and TCP sequence number reordering to send up to 10,000 requests simultaneously, bypassing rate limiting on a one-time token authentication.

ryotak Follow

Published on flatt.tech

Hello, I’m RyotaK (@ryotkak ), a security engineer at Flatt Security Inc.

RyotaK, on flatt.tech

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

Likely the rate-limiting mechanism on the one-time token authentication did not properly handle multiple simultaneous requests, allowing more attempts than intended.

What the attacker needed

Ability to send raw TCP packets; server supports HTTP/2 over plaintext; high SETTINGS_MAX_CONCURRENT_STREAMS

How it was found

  1. Establish a TCP connection with the server and open HTTP/2 streams.
  2. Send request data except for the last byte of each request, so the application waits.
  3. Create large TCP packets containing the last bytes of requests and send them using IP fragmentation, except for the packet with the first sequence number.
  4. Send the TCP packet with the first sequence number last, causing the server to process all requests simultaneously.

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.

A race condition happens when a system does two things at once and the timing lets an attacker slip in extra actions. The single-packet attack sends many requests at the same moment to exploit this, but it was limited to small packets. This article shows how to send many more requests at once by splitting them across network packets and reordering them so the server processes them all together.

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 by ryotak

View all

6 more disclosed reports, best first.

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.