HTTP request smuggling

The fix that matched one word

Two servers read the same request and disagreed about where it ended. The second request in the gap was written by the attacker.

Qlik Sense Enterprise for Windows is a data analytics platform, which means it usually holds database credentials and has a route into the internal network. Its users reach it through a proxy service that authenticates them and forwards their requests to backend services, adding a header that tells the backend who the user is. The backend trusts that header because only the proxy is supposed to set it.

Praetorian found that the proxy forwarded a request body according to its Content-Length header, while the backend Repository service honoured Transfer-Encoding: chunked. Send both, and the two disagree about where the first request ends: whatever is left over is read by the backend as a second request that never went through the proxy’s checks. Combined with a path traversal that granted an anonymous session (CVE-2023-41266), Praetorian used it to impersonate the internal sa_repository service account and create a task that ran commands on the server. Qlik patched both on 29 August 2023.

The fix removed Content-Length when Transfer-Encoding was exactly “chunked”. Praetorian diffed the patch and sent ,tchunked, instead: the proxy’s exact comparison did not match it, and the Repository service still treated the request as chunked. Qlik issued a second fix on 20 September 2023 as CVE-2023-48365. On 28 November 2023 Arctic Wolf reported a Cactus ransomware campaign gaining initial access through these Qlik Sense vulnerabilities.

CVE
CVE-2023-41265, bypassed as CVE-2023-48365; chained with CVE-2023-41266
Product
Qlik Sense Enterprise for Windows up to May 2023 Patch 3 (and earlier tracks); the bypass affected releases up to August 2023 Patch 1.
Class
Inconsistent interpretation of HTTP requests, or HTTP request smuggling (CWE-444).
Severity
CVSS 3.1: 9.6 (Critical) from Qlik; 9.9 (Critical) from NVD.
Timeline
First fix 29 August 2023; bypass fixed 20 September 2023; Cactus ransomware campaign reported 28 November 2023; CVE-2023-41265 added to CISA KEV 7 December 2023, CVE-2023-48365 on 13 January 2025.
Fix
Upgrade to August 2023 Patch 2, November 2023 IR or a later release on your track, which include all three fixes.

The root cause, in one sentence

Two components parsed the same bytes into different requests, and the one that enforced security was not the one that acted on them.

The impact came from what the backend trusted. The proxy blocked users from sending the identity header themselves, then added it to every request it forwarded; a smuggled request skipped that step and could name whichever user it liked. The first fix also shows why this class is hard to patch by denylist: there are many ways to write a header that one parser normalises and another does not.

We are not publishing a smuggling request. Qlik’s advisory lists the fixed releases for each track. This post is about the bug class and how to test for it safely.

The five shapes request smuggling takes

1. CL.TE

The front end uses Content-Length and the back end uses Transfer-Encoding, as in the original Qlik bug. Bytes the front end counts as body, the back end reads as the start of the next request.

2. TE.CL

The reverse: the front end honours chunked encoding and the back end counts bytes. The effect is the same, from the other direction.

3. TE.TE obfuscation

Both sides support chunked encoding, but one can be persuaded to ignore an obfuscated Transfer-Encoding header — odd spacing, duplicates, extra values. Qlik’s bypass was exactly this.

4. HTTP/2 downgrades

A front end that speaks HTTP/2 to the browser and HTTP/1.1 to the back end has to rewrite each request. If it passes through a content-length or transfer-encoding header it should have rejected, the rewrite can create the ambiguity.

5. Trusted headers behind the proxy

Smuggling is most damaging where the back end trusts headers the proxy sets: user identity, client IP, “internal request” flags. Those turn a parsing quirk into impersonation or access to internal-only routes.

A denylist is not a parser. Rejecting one spelling of a dangerous header leaves every other spelling. The robust fix is to reject any request with ambiguous length headers outright, and to make the back end re-check identity rather than trust a header.

How we test for it

  1. Map the chain. We identify every hop between the browser and the application — CDN, load balancer, proxy, application server — because smuggling lives between two of them.
  2. Detect with timing, not poisoning. We start with timing-based probes that reveal a disagreement without leaving a request queued for someone else.
  3. Confirm on our own connection. Confirmation uses requests whose only visible effect lands on our own test session, and only in the agreed testing window.
  4. Agree the risk first. Smuggling can affect other users of a shared connection, so we agree with you whether confirmation runs on production, on staging, or not at all.
  5. Check what the back end trusts. We list headers the proxy adds and test whether the back end would accept them from anyone else.
  6. Report the precise fix. Which hop disagrees, on which header, and the configuration that makes both reject ambiguous requests.

These findings are only useful if your team can see which component to change. Our reporting approach shows how we write them.

Six things to check in your application this week

  • Make sure every proxy, load balancer and server in the chain rejects requests carrying both Content-Length and Transfer-Encoding.
  • Use HTTP/2 end to end where you can, and reject transfer-encoding in HTTP/2 requests.
  • List the headers your proxy injects, and make sure the back end strips or ignores the same headers from clients.
  • Prefer verifiable identity, such as a signed token, over a plain user header between internal services.
  • Keep every hop patched, including the managed load balancer or CDN configuration.
  • Apply vendor fixes in full, and re-check after a fix in case a later patch revises it, as happened with Qlik.

Request smuggling is invisible to anyone looking at one server at a time. We test the chain as a whole, the way an attacker sees it.

Build your quote