Skip to content
Access control Write-up Intermediate

CVE-2024–28000 LiteSpeed Cache açığı

Older versions of the LiteSpeed Cache plugin for WordPress lacked proper permission checks in its role simulation feature, so a request could be treated as coming from the administrator. An attacker with no account at all could then create a new administrator account and take control of the site.

medium.com

Published on medium.com

Cybersecurity

Turap ÇOHADAR, on medium.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 2 min read.

Context

CVE-2024-28000 is a vulnerability in the LiteSpeed Cache plugin used on WordPress sites. LiteSpeed Cache is a plugin used to speed up WordPress sites and to perform caching. Normally, the operations a user is allowed to perform have to be checked, but in the older versions where this flaw exists there was not enough security control in the role simulation part, so an attacker can abuse the system.

In its simplest form, the attacker tries to present themselves as another user, and here the target is the administrator.

Setup

The affected versions are LiteSpeed Cache [redacted] and earlier. The problem is fixed in version 6.4. One of the important aspects of the flaw is that the attacker may not even have a WordPress account at the start; when the attack succeeds, they gain administrator privileges and can perform many more operations on the site.

Finding it

While looking at vulnerabilities in cyber security, we sometimes come across very complicated things, but this CVE seemed to be one that could be understood more easily. What stood out most while researching this flaw was how a small authorisation check error can turn into such a large problem.

LiteSpeed Cache is a plugin used to improve a site's performance, but a feature inside it not being checked sufficiently can give an attacker administrator privileges.

Exploitation

Step 1: Send a normal request

The attacker first sends a normal request to the system.

Step 2: Use role simulation

Then the attacker tries to use the role simulation feature inside LiteSpeed Cache. Through the hash and user information used here, they can impersonate the identity of the administrator user.

Step 3: WordPress treats the attacker as administrator

After that, WordPress can perceive the attacker as an administrator.

Step 4: Create a new admin account

In the final stage, using WordPress's user creation feature, the attacker can create a new admin account for themselves.

The flow of the event is roughly:

Text
saldırgan
↓
LiteSpeed Cache
↓
Role Simulation
↓
administrator kullanıcı id
↓
administrator yetkisi
↓
yeni admin hesabı
↓
wordpress sitesinin kontrolü

Root cause

The flaw is in the role simulation part of the plugin: in the affected older versions there was not enough security control there, so the attacker can abuse the system. The hash and user information used in role simulation allow the administrator's identity to be impersonated, and WordPress then treats the attacker as an administrator.

In my view the most important point here is that checking whether a user has logged in or not is not enough on its own; which operation they are authorised to perform also has to be checked.

Impact

When the attack succeeds, the attacker gains administrator privileges and can perform many more operations on the site. For example, they can change plugins, change themes, create new users and perform the other operations in the WordPress admin panel. So a flaw that at first looks like only an authorisation check problem can end with the control of the whole site passing to the attacker.

Fix

Keeping WordPress and the plugins used up to date is important.

Variants to test

  1. A positive result is WordPress perceiving the request as the administrator user.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

What happened, in plain words

A security researcher looked at a known security bug called CVE-2024-28000. A CVE is a public catalogue number given to a security flaw so that everyone can refer to the same issue. This one lives in a plugin called LiteSpeed Cache, which is an add-on that people install on WordPress websites. WordPress is a popular system for building and running websites, and a plugin is a small piece of software you bolt onto it to add a feature.

LiteSpeed Cache exists to make a WordPress site load faster. It does this by caching, which means keeping a ready-made copy of a page so the server does not have to build it from scratch every time someone visits. Think of it like keeping a photocopy of a document by the door instead of walking to the filing cabinet each time.

The bug is about permissions. On any website, the software has to check not only that you are logged in, but also what you are allowed to do. In the affected older versions of LiteSpeed Cache, one feature, called role simulation, did not check this properly. Role simulation is a feature of LiteSpeed Cache that the attacker abuses in this flaw. Because the check was too weak, an attacker could abuse it to pretend to be the site's administrator. The administrator is the most powerful account on a WordPress site: it can change everything.

In the simplest terms, the attacker tries to present themselves as another user, and the target here is the administrator.

Setup

The affected versions are LiteSpeed Cache [redacted] and earlier. The problem is fixed in version 6.4. A version number is like a label on the software so you can tell which release you have; "and earlier" means every release up to and including that one.

One of the important aspects of the flaw is that the attacker may not even have a WordPress account at the start. That is worth pausing on. Many attacks need you to log in first, even as a lowly user. Here, someone with no account at all can be the starting point. When the attack succeeds, they gain administrator privileges, meaning the full set of powers the administrator account has, and can perform many more operations on the site.

Finding it

While looking at vulnerabilities in cyber security, we sometimes come across very complicated things, but this CVE seemed to be one that could be understood more easily. A vulnerability is simply a weakness in software that someone can misuse. What stood out most while researching this flaw was how a small authorisation check error can turn into such a large problem. Authorisation is the part of a system that decides what a logged-in user is allowed to do, as opposed to authentication, which is about proving who you are in the first place.

LiteSpeed Cache is a plugin used to improve a site's performance, but a feature inside it not being checked sufficiently can give an attacker administrator privileges. The lesson is that a feature added for convenience can quietly become a door if nobody checks who is allowed through it.

Exploitation

Exploitation means actually carrying out the attack, step by step, rather than just suspecting the flaw exists. The report describes four stages.

Step 1: Send a normal request

The attacker first sends a normal request to the system. A request is what your browser sends to a web server when you open a page or click a button: a message asking the server to do something and send something back. "Normal" here means nothing special or malformed, just an ordinary interaction to get into the flow of the site.

Step 2: Use role simulation

Then the attacker tries to use the role simulation feature inside LiteSpeed Cache. Through the hash and user information used here, they can impersonate the identity of the administrator user. A hash is a short fingerprint computed from some data. Impersonate means to act as that person, so the site believes the request comes from the administrator.

Step 3: WordPress treats the attacker as administrator

After that, WordPress can perceive the attacker as an administrator.

Step 4: Create a new admin account

In the final stage, using WordPress's user creation feature, the attacker can create a new admin account for themselves. In the final stage, the attacker can create a new admin account for themselves.

The flow of the event is roughly:

Text
saldırgan
↓
LiteSpeed Cache
↓
Role Simulation
↓
administrator kullanıcı id
↓
administrator yetkisi
↓
yeni admin hesabı
↓
wordpress sitesinin kontrolü

Read the diagram from top to bottom as a chain. The first line, saldırgan, is Turkish for attacker. The arrow leads into LiteSpeed Cache, the plugin. From there into Role Simulation, the feature being abused. Next comes administrator kullanıcı id, the administrator's user identifier, the number or label the site uses internally to refer to that account. Then administrator yetkisi, administrator authority, meaning the powers that come with that account. Then yeni admin hesabı, a new admin account. The last line, wordpress sitesinin kontrolü, is control of the WordPress site. Each arrow is a consequence of the one above it: one weak check at the top ends with the whole site at the bottom.

Root cause

The flaw is in the role simulation part of the plugin: in the affected older versions there was not enough security control there, so the attacker can abuse the system. The hash and user information used in role simulation allow the administrator's identity to be impersonated, and WordPress then treats the attacker as an administrator.

In my view the most important point here is that checking whether a user has logged in or not is not enough on its own; which operation they are authorised to perform also has to be checked. A useful comparison is a building where the receptionist only asks "do you have a badge?" and never looks at which doors that badge opens. Anyone with any badge gets everywhere.

Impact

When the attack succeeds, the attacker gains administrator privileges and can perform many more operations on the site. For example, they can change plugins, change themes, create new users and perform the other operations in the WordPress admin panel. A theme is the package that controls how a site looks, and the admin panel is the behind-the-scenes dashboard where a site is managed. So a flaw that at first looks like only an authorisation check problem can end with the control of the whole site passing to the attacker.

Fix

The problem is fixed in LiteSpeed Cache version 6.4. Keeping WordPress and the plugins used up to date is important. Updates are how fixes reach you; running an old version means running the version with the hole still in it.

Variants to test

These are checks you could carry out on a site you are allowed to test, to see whether the same weakness is present. Each one names what a positive result looks like.

  1. A session is the period during which the site remembers who you are, usually by handing your browser a small piece of data to send back with each request. A positive result is WordPress perceiving the request as the administrator user.

Glossary

  • CVE: a public identifier assigned to a specific security flaw so people can refer to it unambiguously.
  • WordPress: a widely used system for building and running websites.
  • Plugin: an add-on installed on WordPress to add a feature.
  • LiteSpeed Cache: a WordPress plugin that speeds up sites by caching pages.
  • Caching: storing a ready-made copy of something so it can be served again quickly.
  • Vulnerability: a weakness in software that someone can misuse.
  • Authorisation: the part of a system that decides what a user is allowed to do.
  • Authentication: the part of a system that proves who a user is.
  • Privileges: the powers an account has, such as the ability to change settings.
  • Administrator: the most powerful account on a WordPress site, able to change anything.
  • Role simulation: a LiteSpeed Cache feature that lets someone act as a different kind of user, for example to preview the site.
  • Impersonate: to act as another person so the system believes the request comes from them.
  • Hash: a short fingerprint computed from data, used to check that a value is the expected one.
  • Request: the message a browser sends to a web server asking it to do something and return a result.
  • Session: the period during which a site remembers who you are, usually via a small piece of data your browser sends back.
  • Admin panel: the dashboard where a WordPress site is managed.
  • Theme: the package that controls how a WordPress site looks.
  • Exploitation: actually carrying out an attack to make use of a flaw.
  • Version: the label identifying which release of a piece of software you have.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.