OpenLiteSpeed duplicate Cookie skips litespeed_role 403
OpenLiteSpeed 1.9.3 still 403s a single Cookie: litespeed_role= (1.8.2.1). HTTP/1 duplicate Cookie is not 400. The second line skips the scan and lsphp still gets HTTP_COOKIE. Labbed on 1.9.3-lsphp84. $_COOKIE was empty. No CVE yet.
- Name
- OpenLiteSpeed duplicate Cookie skips litespeed_role 403
- Type
- 0-day analysis
- CVE
- n/a
- CVE Risk
- high
- Disclosure Status
- public
- Vendor
- OpenLiteSpeed (LiteSpeed Technologies)
- Affected
- OpenLiteSpeed 1.9.3 (edbe7f7) HTTP/1.1 plus lsphp. HTTP/2 scans every Cookie header and is not this leftover. Single Cookie is still 403.
- Published
- 08 Oct 2026
- Updated
- 12 Oct 2026
- Tags
- 0-day, openlitespeed, cookie, privilege-leftover, cwe-693, cwe-436, unauthenticated
Duplicate Host is 400. Duplicate Cookie is not.
I am @abraxas_null. The proof of concept is on GitHub: abraxas/openlitespeed-dup-cookie-litespeed-role (loopback client). The lab stack is lab/: Dockerfile, docker-compose.yml, run.sh, poc.py. Authorized lab only. It talks to loopback.
This is OpenLiteSpeed v1.9.3 (edbe7f7db12577e905291955a6d416200942fb8b). No CVE yet. CWE-693 / CWE-436. 7.5 High (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N). Unauthenticated HTTP/1.1 plus lsphp. Remote privilege leftover of the 1.8.2.1 cookie block.
OpenLiteSpeed 1.8.2.1 taught the origin to 403 any client Cookie that contains litespeed_role=. That control is still there. A single Cookie header is still 403. HTTP/2 still scans every Cookie header. HTTP/1.1 duplicate Cookie is not 400. The second line is demoted to unknown, the scan never runs, IS_BL_COOKIE stays unset, and lsphp still receives HTTP_COOKIE. The 403 is a protection mechanism that only looks at the first common header. The second line is an interpretation conflict with every client that still sends two Cookie lines, which is legal HTTP/1.
After Caddy and lighttpd, the next HTTP server
I had just finished unpublished Crit/High hunts of Caddy v2.11.7 and lighttpd 1.4.85. Caddy came back empty at this bar. Named GHSAs on that pin already held: Windows %5c, copy_headers, FastCGI Unicode and case-fold split_path, mTLS fail-open, the CVE-2026-30852 bypass. Default admin is still localhost. lighttpd on Unix was the same kind of empty. The leftover that survived there is native _WIN32 staticfile ..%20/ - tail-only strip, buffer_path_simplify only folds ../, _wstati64 without \\?\. Unix is not that class.
The next HTTP server was OpenLiteSpeed. C++ origin, lsphp in the same install, HTTP/2 and HTTP/3 in the same process, a history of request-smuggling and cookie-role patches, and a typical production stack that is WordPress plus LiteSpeed Cache. That is a different animal from Caddy's Go listeners and lighttpd's small Unix static server.
I only wanted Critical or High. Local is in-scope. Medium stays on the floor unless it chains. A finding on this hunt needed a leftover of a named 1.8.x / 1.9.x guard, unauth mutating admin, CGI/lsphp RCE, path traversal off the docroot, or a privilege control that still 403s the request the docs told operators to block and then forwards the blocked bytes to PHP anyway.
Pinning v1.9.3
Latest stable. Not an RC. Release log dates 1.9.3 to 2026-09-29. GitHub's tag object showed up a day later. HEAD landed on edbe7f7db12577e905291955a6d416200942fb8b. dist/VERSION says 1.9.3. That is the pin.
1.9.3 is the header/URL pass, the CGI hardening, the update-script SHA-256, lsquic 4.10.0. If a leftover of 1.8.2.1 still fires here, it is not a stale minor.
The skip list is half the hunt
Before you look for leftovers, you write down what is already public so you do not "discover" a CVE with a press release. On 1.9.3 the interesting ones were already closed:
- CVE-2026-104474
lsup.shunverifiedautoupdate/as root. 1.9.3 stages intoadmin/updatemode 0700 andverify_package_sha256before./install.sh. - CVE-2026-31386 WebAdmin command injection as admin through 1.9.0. Ext App
pathnow goes throughcheck_cmd_invalid_strthenSUExec::buildArgv/execve, not/bin/sh -c. - 1.9.0 HTTP/2 request smuggling, HTTP/3 engine remote exploits,
UnsafeAllow3F. Request-line unpack rejects. Vendored lsquic is 4.10.0. Rewrite capture?re-encodes to%3Funless the operator opts in. - 1.9.1 / 1.9.2 general code hardening and H2/H3 protocol and header validation.
- 1.8.3.1 TE then CL, and TCP mTLS Host-vs-SNI. Both orders of Transfer-Encoding plus Content-Length are 400. TCP
SslConnection::verifyContextis pointer equality on the handshake CTX. - 1.8.2.1 block
litespeed_rolecookie. Single Cookie is still 403. That is the control this leftover walks around, not the leftover. - Older: CVE-2024-31617 chunked before 1.8.1, CVE-2023-40518 header validation before 1.7.18, CVE-2018-19791 Range amplification, the 2022 search-path LPE / RCE chain, WebAdmin URL and External App LPEs.
CVE-2026-49975 HTTP/2 Bomb: vendor says OLS is not vulnerable. LiteSpeed Cache WordPress CVEs, including CVE-2024-28000, are a different tree. I am not re-filing the plugin.
Twenty surfaces, default Example empty
I split the tree. Request parser. CGI / lsphp / FastCGI. Proxy. WebSocket. HTTP/2. HTTP/3 / lsquic. Rewrite %3f. WebAdmin. lsup.sh. Chunked leftover of CVE-2024-31617. Staticfile / context. Auth / htpasswd. SSI. ACME / TLS leftover of 1.8.3.1. Namespace. Internal redirect. Node.js. Cache / recaptcha / Lua. Range leftover of CVE-2018-19791. 1.8.x / 1.9.x patch siblings.
Most of that is OpenLiteSpeed doing what 1.9.3 said it would do.
TE other than exactly chunked is 501. Duplicate TE, CL, Host, Authorization are 400. Proxy is 400 (HTTPoxy). () { in a value is 400 (shellshock). URI decode then GPath::clean fail-closes /../. SCRIPT_FILENAME is the real file from the stat walk. Range parse saturates at INT64_MAX. CGI uid-0 env strip plus lscgid v2 keyed MAC. CONTINUATION exclusive, 64 KiB cap. Rapid reset trips HTTP/2 off. WebAdmin mutating PHP still wants CAuthorizer::Authorize() plus CSRF.
Stock dist/conf/httpd_config.conf.in listens on *:%HTTP_PORT% (install default 8088), maps Example, auto-starts lsapi:lsphp for suffix php, quicEnable 1, cache check-only. Example vhost is static HTML plus /cgi-bin. clientVerify default is None. WebAdmin binds *:7080 with password auth.
Default Example unpublished Crit/High: NONE. Named 1.9.x guards hold. I am not filing "port 8088 serves index.html."
Two leftovers survived. They are not the default Example.
G1 is HTTP/3 mTLS. 1.8.3.1 bound client-cert Require to the handshake CTX on TCP. QuicStream inherits HioCrypto::verifyContext that always returns true. Complete a QUIC handshake with SNI of a CTX that does not demand a client certificate, send :authority of a vhost whose SSL is Client Verification Require, and the request is served. HTTP/1.1 and HTTP/2 over TCP still 403 that Host. It needs a shared HTTPS listener, two names, and clientVerify Require on one of them. quicEnable defaults on. clientVerify defaults off. CyberPanel and WordPress-on-OLS almost never require client certs. Mixed-mTLS-on-shared-443 is a real minority layout. That is why 1.8.3.1 existed. It is not this post.
G2 is this cookie leftover. Stock OLS wires lsphp. Official litespeedtech/openlitespeed:*-lsphp* images, CyberPanel, and the WordPress-on-OLS guides land on lsphp plus LiteSpeed Cache. G2 is the typical production stack. G1 is not.
Why 1.8.2.1 exists
LiteSpeed Cache for WordPress has a crawler. The crawler pre-warms cache as a logged-in role. The original design put that identity on the request as two cookies: litespeed_role (a user id) and litespeed_hash (a shared secret). On init, historical LSCWP is_role_simulation read $_COOKIE['litespeed_role'] and $_COOKIE['litespeed_hash'] and, if the hash matched, called wp_set_current_user.
Patchstack, August 2024: the hash was mt_srand on microseconds, six characters, one million known values, generated even when the crawler was off, via an unauthenticated async_litespeed ajax. CVE-2024-28000. Fixed in LSCWP 6.4. Highest WordPress bounty they had paid at the time.
Hosts were also told to 403 the cookie at the server. That is the defense-in-depth 1.8.2.1 is. OLS does not grant a WordPress role. OLS memmems the Cookie header for the 15-byte litespeed_role= (case-sensitive, = required), sets IS_BL_COOKIE, and processNewReqData returns 403 before PHP runs. Current LSCWP 6.4+ is supposed to hold the hash itself. Older LSCWP behind patched OLS still depends on that 403. The 403 is also the only thing OLS itself does with that name. Cache in OLS core does not read it.
A leftover of 1.8.2.1 is not "WordPress still has a crawler." A leftover of 1.8.2.1 is "the origin still 403s the cookie on the path the patch authors wrote, and does not 403 it on a second Cookie line the patch authors did not write."
The 400 list, and the header that is not on it
HTTP/1 processHeaderLines classifies each name with HttpHeader::getIndex. First occurrence of a common header is stored and processHeader runs. A second occurrence of the same common index hits a small denylist:
if (index == HttpHeader::H_HOST)
{
LS_INFO(getLogSession(), "Status 400: duplicate Host "
"header!");
return SC_400;
}
else if (index == HttpHeader::H_CONTENT_LENGTH)
{
LS_INFO(getLogSession(), "Status 400: duplicate content-length!");
return SC_400;
}
else if (index == HttpHeader::H_TRANSFER_ENCODING)
{
LS_INFO(getLogSession(), "Status 400: duplicate "
"Transfer-Encoding header!");
return SC_400;
}
else if (index == HttpHeader::H_AUTHORIZATION)
{
LS_INFO(getLogSession(), "Status 400: duplicate "
"Authorization header!");
return SC_400;
}
index = HttpHeader::H_HEADER_END;httpreq.cpp:1204-1230. Host, Content-Length, Transfer-Encoding, Authorization: 400. Everything else, including Cookie: rewrite the index to H_HEADER_END and treat the line as unknown.
Unknown is not drop. Unknown is "not a common header." processUnknownHeader looks at Upgrade, CF-Connecting-IP, HTTPoxy Proxy. It never looks at cookies.
The litespeed_role= scan lives in processHeader on the first common Cookie only:
case HttpHeader::H_COOKIE:
if (len > 15 && memmem(pCur, len, "litespeed_role=", 15) != NULL)
m_iReqFlag |= IS_BL_COOKIE;
break;httpreq.cpp:1562-1565. Second line never gets here. IS_BL_COOKIE stays 0.
The 403 is later, and only if the flag is set:
if (m_iReqFlag & IS_BL_COOKIE)
{
LS_INFO(getLogSession(), "Forbidden cookie detected, access denied.");
return SC_403;
}httpreq.cpp:1782-1786. No flag, no 403, request continues into lsphp.
CGI export then walks known headers and, separately, unknown headers. Unknown names get an HTTP_ prefix, - becomes _, and the value is pEnv->add'd. A demoted Cookie line is exported as HTTP_COOKIE:
httpcgitool.cpp:919-947. LSAPI last-wins. PHP $_SERVER['HTTP_COOKIE'] is the second line.
parseCookies / parseOneCookie only walk the first common Cookie (and the HTTP/2 merged cookies). OLS cache does not read litespeed_role. The 403 is the whole control. Skip the 403 and the worker still has the bytes.
Cookie2 is a known header and is not scanned. PHP does not fill $_COOKIE from HTTP_COOKIE2. Not this leftover.
There is no unit test that sends two Cookie headers. httpreqtest.cpp covers duplicate Host, TE, Authorization, TE+CL both orders, HTTP/1.1 Host required. Cookie is not in that list. The 1.9.3 "improve header/URL handling" pass hardened the framing primitives and left Cookie as a bag.
HTTP/2 already looks at every Cookie
Unpacked HTTP/2 parsing does this per Cookie header, inside the loop, before it concatenates:
if (index == HttpHeader::H_COOKIE)
{
if (begin->val_len > 15
&& memmem(value, begin->val_len, "litespeed_role=", 15) != NULL)
m_iReqFlag |= IS_BL_COOKIE;httpreq.cpp:1389-1393. Every Cookie. HTTP/3 unpacked cookies take the same path. This leftover is HTTP/1.1.
That is the same shape as a Unix launcher that got the FileStream exclude and a Windows launcher that did not. Two parsers, one security fix, one of them got the per-header scan.
The lab is HTTP/1.1 raw sockets because Python urllib and http.client merge Cookie headers. You write two Cookie: lines in a Request and the library helpfully emits one. The 403 then fires on the merged value, which is the patched path, which is the wrong experiment. requests does the same. So does every browser. The interesting client is anyone who still speaks HTTP/1 with two Cookie lines: a script, a proxy, a raw socket, an HTTP/1 smuggler that already knows how to emit duplicate headers. RFC 9110 does not forbid it. OLS 400s the duplicates that change framing. Cookie does not change framing. Cookie changes identity for one plugin family.
The image listens on 80
Dist Example is 8088. Official Hub litespeedtech/openlitespeed:1.9.3-lsphp84 is 80. Docroot is /var/www/vhosts/localhost/html, not the Example HTML tree. If you point a PoC at 8088 on that image you wait for a timeout and then write a FAIL that is about the lab, not the leftover.
The lab binds 127.0.0.1:18750:80. Compose project openlitespeed-dup-cookie-litespeed-role. Oracle is www/cookie.php copied into that docroot. It prints HTTP_COOKIE= from $_SERVER['HTTP_COOKIE'], prints litespeed_role= only if $_COOKIE['litespeed_role'] is set, and prints the witness if either view contains it. No WordPress. No LSCWP. The leftover is the 403 skip plus what lsphp sees. If the oracle needs a plugin to light up, you are labbing the plugin.
run.sh pulls 1.9.3-lsphp84, falls back to 1.9.3-lsphp83 if Hub blinks, waits until a raw GET to /cookie.php returns HTTP/, then runs poc.py. poc.py execs cat /usr/local/lsws/VERSION and refuses to proceed unless it starts with 1.9.3. Then three requests, same path, raw HTTP/1.1, Connection: close.
The lab
Single Cookie litespeed_role=OLS-DUP-COOKIE-LITESPEED-ROLE-WITNESS. Status 403 Forbidden. Body is the OLS HTML error page. PHP did not run. No HTTP_COOKIE= line. 1.8.2.1 still holds on the first header.
Single Cookie dummy=1. Status 200. Body HTTP_COOKIE=dummy=1. PHP ran. No witness. The oracle is not printing the string because it is in the source file.
Two Cookie lines, dummy=1 then litespeed_role=OLS-DUP-COOKIE-LITESPEED-ROLE-WITNESS. Status 200. Body:
HTTP_COOKIE=litespeed_role=OLS-DUP-COOKIE-LITESPEED-ROLE-WITNESS
OLS-DUP-COOKIE-LITESPEED-ROLE-WITNESSbypass-php-cookie-role is empty. how=php-http-cookie. LSAPI parsed the first header into the cookie table. Env last-wins. $_SERVER['HTTP_COOKIE'] is the second line. $_COOKIE['litespeed_role'] stayed empty.
Last line:
SUCCESS openlitespeed-dup-cookie-litespeed-role single-cookie=403 dummy=200 dup-cookie=200 php-sees-role=yes how=php-http-cookie OLS-DUP-COOKIE-LITESPEED-ROLE-WITNESSReplay:
cd lab && ./run.shOr from a fresh clone:
git clone https://github.com/abraxas/openlitespeed-dup-cookie-litespeed-role
cd openlitespeed-dup-cookie-litespeed-role/lab
./run.shBind it to loopback. The loopback client is lab/run.sh with a banner on it.
Wrong turns, in the order I made them
Treating Caddy empty and lighttpd Unix empty as "HTTP servers are done." Caddy 2.11.7 is a Go reverse proxy with a closed GHSA list. lighttpd 1.4.85 Unix is a small origin with closed 1.4.81-1.4.83 guards. OpenLiteSpeed is lsphp plus HTTP/3 plus a cookie-role 403 that exists because of a WordPress plugin. Different product, different leftover class.
Pinning an RC or an Enterprise tree. LiteSpeed Web Server Enterprise is closed source. OLS 1.9.3 is the public GA. 1.9.2 is older. The pin is the tag that closed CVE-2026-104474.
Re-filing 1.8.2.1. Single Cookie is still 403. The skip list item is the first-header memmem. The leftover is the second line, which that patch and the 1.9.3 duplicate-header 400 list never cover.
Re-filing CVE-2024-28000. LSCWP 6.4 changed the hash. That is the plugin. This is the origin 403 that hosts were told to keep even after the plugin patch. Different tree.
Scoring duplicate Cookie below High without a lab. The patch-siblings hunt called it a possible LSCWP miss, not OLS core RCE, and left it on the floor. PHP $_COOKIE "normally comes from the known Cookie header." That sentence is true and incomplete. The 1.8.2.1 control is the 403, not PHP's cookie table. Skip the 403 and lsphp still gets HTTP_COOKIE. High is the leftover of a High control, then you lab what PHP actually saw.
Expecting the Hub image to be dist Example. 8088 is the tarball. 80 is the container. Docroot is /var/www/vhosts/localhost/html. The first compose that mapped 8088 was a lab of Docker Hub documentation, not of httpreq.cpp.
Sending two Cookie headers through urllib. The library merges them. Merged dummy=1; litespeed_role=WITNESS is one Cookie, memmem hits, 403, and you have just proved 1.8.2.1 works. Raw sockets, or it did not happen.
Expecting $_COOKIE to follow HTTP_COOKIE last-wins. The oracle printed the witness from $_SERVER['HTTP_COOKIE'] and left $_COOKIE['litespeed_role'] empty. LSAPI filled the cookie table from the first header. Env last-wins. Historical LSCWP is_role_simulation reads $_COOKIE. Apps that parse HTTP_COOKIE themselves, or that use a SAPI which rebuilds $_COOKIE from the last env, see the role. The SUCCESS line records how=php-http-cookie so nobody can pretend the lab populated $_COOKIE.
Putting WordPress in the compose so the leftover "looks High." That labs LSCWP. The leftover is OLS skipping a 403 and forwarding the cookie. Witness in HTTP_COOKIE is the oracle. WordPress ATO is a different paper, on a different pin, with a plugin hash the 2024 patch already changed.
Claiming G1 is the typical leftover. HTTP/3 mTLS Require on one name of a shared listener is the 1.8.3.1 victim model. It is uncommon. lsphp plus LSCWP is what people actually run. G2 is the one I labbed.
A reverse shell. Theatre. The oracle is a witness string in a PHP body on loopback.
Calling default Example this bug. Example is static HTML. Stock scriptHandler add lsapi:lsphp php is present, which is why dropping cookie.php into the Hub docroot is enough. Default Example unpublished Crit/High is still NONE. This leftover is HTTP/1.1 plus lsphp, which is how OLS is shipped when it is used as a PHP origin.
What an attacker can do
Reach the public HTTP/1.1 listener. No login. Send two Cookie headers on one request. The first is harmless. The second carries litespeed_role=.
OpenLiteSpeed 403s that name on a single Cookie header and on every HTTP/2 Cookie header. Duplicate HTTP/1 Cookie skips the 403. lsphp still sees the role in HTTP_COOKIE. The 1.8.2.1 control was supposed to drop that cookie before PHP. It does not, on this path.
Apps that parse HTTP_COOKIE get the value the origin was meant to keep off the worker. Apps that only read $_COOKIE['litespeed_role'] did not see it in this lab. Historical LSCWP is_role_simulation is in the second camp. That is an honest limit, not a reason to call the 403 skip a parser curiosity. The leftover identity is what LSCWP used for crawler / role simulation. OLS does not grant a WordPress role. A client-supplied role cookie reaches the app.
| Privilege | Method / path | Lab-proven or inferred |
|---|---|---|
| Skip the 1.8.2.1 403 and land 200 on lsphp (integrity of the cookie block) | HTTP/1.1 Cookie: dummy=1 plus Cookie: litespeed_role=WITNESS |
Lab-proven. dup-cookie=200 php-sees-role=yes |
Deliver the role name to PHP $_SERVER['HTTP_COOKIE'] (integrity of CGI env) |
LSAPI last-wins on the second Cookie line | Lab-proven. Body HTTP_COOKIE=litespeed_role=OLS-DUP-COOKIE-LITESPEED-ROLE-WITNESS |
Populate $_COOKIE['litespeed_role'] |
PHP cookie table | Lab-proven closed. Stayed empty |
| Same skip on HTTP/2 | Duplicate Cookie on h2 | Lab-proven closed. HTTP/2 scans every Cookie |
| WordPress ATO / RCE / file read | OLS does not eval cookie bytes or grant a WP role | Closed on this leftover |
Not WordPress ATO in the lab. Not RCE. Not a file read. Not a crash. Privilege leftover of the 1.8.2.1 control. Integrity of a defense-in-depth 403, C:N I:H A:N, unauthenticated, UI none. HTTP/2 is not this leftover. Single Cookie is still 403. Same pin leftover: openlitespeed-h3-mtls-verifycontext.
Current LSCWP 6.4+ is supposed to hold the hash itself. Older LSCWP behind patched OLS still depends on that 403. Any other app that keys on a client litespeed_role in HTTP_COOKIE is in scope the moment it sits behind this origin.
I am not going to print a curl you can paste at someone else's :80. The missing Cookie line in the 400 list is the useful part. If you own the origin, run the proof of concept against loopback.
The fix
Scan every HTTP/1 Cookie header the way HTTP/2 already does. Or 400 duplicate Cookie the way Host is 400.
Until then, the 1.8.2.1 sentence is only true for one Cookie line and for HTTP/2. HTTP/1 clients that emit two Cookie headers still deliver litespeed_role= to lsphp. Merge at a trusted proxy. Or reject duplicate Cookie in a front-end that already 400s duplicate Host.
Do not take "LSCWP 6.4 holds the hash" as a reason to skip the origin 403. The 403 is the server-side half of a 2024 incident that involved five million WordPress sites. Half a control is how leftovers look when they ship.
References
- Proof of concept: abraxas/openlitespeed-dup-cookie-litespeed-role · openlitespeed-dup-cookie-litespeed-role-Abraxas-Labs.py
- Lab:
lab/· Dockerfile · docker-compose.yml · run.sh · poc.py - @abraxas_null · github.com/abraxas · abraxaslabs.tech · abraxas.null@proton.me
- CWE-693 · CWE-436 · 7.5 High
- Tree: litespeedtech/openlitespeed v1.9.3 (
edbe7f7db12577e905291955a6d416200942fb8b) ·httpreq.cppduplicate common headers · first-Cookie scan ·IS_BL_COOKIE403 · HTTP/2 per-Cookie scan ·httpcgitool.cppunknownHTTP_COOKIEexport - 1.8.2.1 block
litespeed_rolecookie · Patchstack 2024 LSCWP role simulation · OLS 1.9.x release log