Skip to content

Local only · Runs in this tabLocal only

Runs in your browser

Desync lab

Two real HTTP request parsers, compiled to WebAssembly, read the same bytes. See where each one decides a request ends, and where they stop agreeing.

Skip to About this tool
This is the parser, not your configuration
The page runs two parsing libraries at exact versions. It does not run your proxy, your load balancer or your application, and their settings change what they accept. A difference here says the libraries differ on these bytes. It does not say your systems can be desynchronised, and agreement here does not say they cannot.

Choose two parsers and a request

llhttp as released, with none of its lenient flags set. Node.js parses requests with llhttp.

A Go http.Server handed the bytes as one connection. This is what a Go service runs.

Each request in the set is followed by a plain second request, so where a parser ends the first decides what it takes the second to be.

Every byte is written out: \r \n \t \0 \\, and \xNN for any other byte. Line breaks in this box are layout and are not sent. 145 bytes.

What the two parsers make of it

One parser is not loaded yet.

The Go parser is a separate module, between 2 and 3 MB to download. Load it below to compare.

Nothing you type leaves this tab. The parsers run in a worker in your browser; the page requests only the parser modules and their provenance files from this site.

Where each parser ends the request

Parser A

llhttp, no lenient flag

Fetching and checking the module…

Parser B

Go net/http, http.Server

This parser is a separate module: between 2 and 3 MB to download, 10.5 MB once unpacked. It is fetched only when you ask for it.

The request set, for this pair

Load the Go parser to see how the set comes out for this pair.

RequestParser A ends requests atParser B ends requests atOutcome

What this could not see

  1. Two libraries at two exact versions. Other versions, other parsers and the products built on them may read the same bytes another way.
  2. No proxy, no load balancer, no application. Request smuggling happens between two systems; this page shows two parsers side by side, not one forwarding to the other.
  3. HTTP/1.x only, and all bytes handed over at once. How a parser behaves when a request arrives in pieces, or after a timeout, is not exercised. Input stops at 65,536 bytes.
  4. llhttp is built without SIMD, so its scalar code runs. The Go module runs under a small WASI layer written for this page, with a clock that only moves forward in steps and no network.
  5. The modules were compared with the real servers on the 31 requests of the set only: the server in Node 26.13.0, which ships llhttp 9.4.3, and a natively built Go 1.27.3 server. They agreed on all of them. That is a statement about 31 inputs, not about every input.
  6. The check against the provenance file catches a release whose files do not belong together. It cannot protect you from this site: the same server sends the module, the record and the page. The build scripts and pinned toolchains are in the site's repository for anyone who wants to rebuild the modules.
  7. Tried in Chromium and Firefox. Other browsers have not been tried with this page.

About this tool

Why this matters. A proxy and the server behind it each decide where a request ends. When they decide differently, one of them is reading bytes the other never saw as a request.

Key terms 3
Request smuggling
An attack in which two systems handling the same connection disagree on where one HTTP request ends, so part of one request is read as the start of the next.
Message framing
How the end of an HTTP/1.1 message body is found: a Content-Length header, chunked transfer coding, or the close of the connection.
Chunked transfer coding
A body sent as a series of chunks, each preceded by its size in hexadecimal, ending with a chunk of size zero.