Skip to content
Path traversal Write-up Intermediate

CVE-2023–4632: Local Privilege Escalation in Lenovo System Updater

The Lenovo System Update privileged process looked for a configuration XML file in a directory any low-privileged user could create on the root of the C: drive. By planting a crafted XML file there, an attacker could make the privileged process write an arbitrary file, overwriting a service binary and gaining code execution as NT AUTHORITY\SYSTEM.

Matt Nelson Follow

Published on posts.specterops.io

The Lenovo System Update application is designed to allow non-administrators to check for and apply updates to their workstation. During the process of checking for updates, the privileged Lenovo Update application attempts to utilize C:SSClientCommonHelloLevel95800.xml, which doesn’t exist on the filesystem.

Matt Nelson, on posts.specterops.io

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 privileged updater loaded a configuration file from a user-writable location and trusted path values inside it, including directory traversal, without validating them.

Impact

An attacker with only low privileges could overwrite a service binary and execute code as NT AUTHORITY\SYSTEM, fully escalating privileges on the machine.

What the attacker needed

Local low-privileged access to Windows; ability to create folders under C:\; user opens the updater and checks for updates

The fix

The vulnerability was fixed in the latest version of the Lenovo System Updater application.

How it was found

  1. Create the missing directory and place a crafted XML file in it.
  2. Create a subdirectory holding the attacker's executable.
  3. In the XML, set a source path to the attacker's executable and a destination path using directory traversal to the service binary.
  4. Open Lenovo System Update and check for updates so the privileged process runs.
  5. The privileged process moves and parses the XML, then copies the attacker's executable over the service binary.
  6. Close and reopen the updater so the replaced binary runs as SYSTEM.

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.

On Windows, ordinary users can create folders directly under C:\, and this updater ran a helper with high privileges that trusted a file in such a folder. Because the file was missing, an attacker could create it first and control what the privileged program did. The crafted file told the program to copy the attacker's program over a service binary, so the attacker's code later ran with the highest system rights.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from Lenovo

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.