Skip to content
Cache bugs Write-up Advanced

Race Condition leads to Cache Poisoning ?!

A race condition between a valid request and a poison request on a single connection allowed the poison request to bypass malformed-request detection and be processed by the server, potentially poisoning the cache. An attacker could use this to cause cache poisoning denial of service.

LTiDi Follow

Published on ltidi.medium.com

I have been researching about cache poisoning attack these days. While hoping to learn as much as possible and catch up with others top cache poisoning hunters / researchers as fast as I can, I discovered an edge use case of race condition which could potentially leads to Cache Poisoning DoS.

LTiDi, on ltidi.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.

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 proxy or middleware checks requests individually but fails to properly validate when a valid and a malicious request are processed concurrently on the same connection.

Impact

This could lead to cache poisoning denial of service, though the author only demonstrates a single sample and notes the behaviour is not rare.

What the attacker needed

Ability to send concurrent requests; target uses a cache and a proxy/middleware

How it was found

  1. Create a Repeater group containing the valid request first and the poison request second.
  2. Send the group using the single connection option.
  3. Observe that the poison request reaches a cacheable state.

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 is when two actions happen at almost the same time and interfere with each other. Here, sending a normal request and a malicious request together on one connection tricked the server into accepting the malicious one, which could then be stored in the cache and served to other users.

What is Cache bugs?

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.

Similar reports

View all

Same bug class and techniques, clearest first.

Web cache poisoning and deception

The lesson behind this report.

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.