ZeroQlik: Achieving Unauthenticated Remote Code Execution via HTTP Request Tunneling and Path Traversal
The Qlik Sense proxy service forwarded requests to backend services using the Content-Length header while also passing the Transfer-Encoding header, allowing an attacker to smuggle a second request that impersonated a privileged service account. Combined with a path traversal that bypassed proxy authentication, an unauthenticated attacker could create an administrative user and execute arbitrary commands via external program tasks.
Published on praetorian.com
In an effort to safeguard our customers, we perform proactive vulnerability research with the goal of identifying zero-day vulnerabilities that are likely to impact the security of leading organizations. Recently, we decided to take a look at Qlik Sense Enterprise, a data analytics solution similar to Tableau.
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 service prioritised the Content-Length header over Transfer-Encoding when forwarding requests, and it did not normalise paths before checking authentication, so a crafted path could reach internal REST endpoints.
Impact
An unauthenticated attacker could impersonate a privileged service account, add an administrative user, and execute arbitrary commands, though a load balancer in front of the instance may break the request tunnelling payload.
What the attacker needed
Network access to the Qlik Sense proxy; no authentication required; load balancer may block the tunnelling payload
The fix
The vulnerabilities were fixed in a security update that addressed both CVE-2023-41265 and CVE-2023-41266.
How it was found
- Decompile the proxy service and review its request forwarding logic.
- Identify that the proxy checks Content-Length before Transfer-Encoding when forwarding requests.
- Test backend services directly to find one that processes multiple requests when both headers are present.
- Craft a request that smuggles a second request to an internal endpoint that does not expect a body.
- Use a path beginning with the allowed font path and ending in .ttf to bypass proxy authentication.
- Send the smuggled request to create an administrative user or an external program task for command execution.
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.
The Qlik Sense web proxy and the services behind it disagreed about where one HTTP request ended and the next began. By crafting a request that looked like one thing to the proxy but contained a hidden second request, an attacker could make the backend service believe the request came from a trusted internal account. A separate path traversal trick let the attacker reach that backend without logging in, so no account was needed.
What is Smuggling / CRLF?
A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.