CVE-2021-24964 LiteSpeed Cache < 4.4.4 - IP Check Bypass to Unauthenticated Stored XSS

Medium 6.1 Published Updated

Unauthenticated attackers can inject malicious scripts via stored XSS in the LiteSpeed Cache plugin when specific settings are enabled, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2021-24964?

CVE-2021-24964 is a medium-severity cross-site scripting vulnerability in Unknown LiteSpeed Cache, published on 3 Jan 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The LiteSpeed Cache WordPress plugin before 4.4.4 does not properly verify that requests are coming from QUIC.cloud servers, allowing attackers to make requests to certain endpoints by using a specific X-Forwarded-For header value. In addition, one of the endpoint could be used to set CSS code if a setting is enabled, which will then be output in some pages without being sanitised and escaped. Combining those two issues, an unauthenticated attacker could put Cross-Site Scripting payloads in pages visited by users.

Weakness: CWE-79

Which versions are affected by CVE-2021-24964?

It affects 1 product.

Products include Litespeedtech Litespeed Cache.

How do I fix CVE-2021-24964?

No fix has been published for CVE-2021-24964 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-24964 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-24964 exists.

Sources

Also known as GHSA-fg4h-vrcg-56rq.

Is CVE-2021-24964 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free