Skip to content
Access control Write-up Advanced

Lenovo Update Your Privileges

Two privilege escalation flaws existed in Lenovo update software: a batch file in a user-writable directory was run with elevated rights, and a privileged process recursively deleted a user-writable directory. An attacker could modify the batch file or abuse the deletion to run code as an administrator or SYSTEM.

Raphael Rosenast Follow

Published on blog.compass-security.com

A journey into the discovery of two privilege escalation vulnerabilities in the Lenovo update functionality.

Raphael Rosenast, on blog.compass-security.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.

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 update components performed privileged operations on files and directories that any authenticated user could modify.

Impact

A local attacker could gain administrator or SYSTEM privileges; the text notes that the chosen techniques were detected by Microsoft Defender for Endpoint, so stealthier variants may exist.

What the attacker needed

Local access to the Windows machine; Lenovo System Update installed; ThinkPad Hybrid Dock for CVE-2022-4569; C:\Config.Msi must not exist for CVE-2022-4568

The fix

Lenovo remediated both vulnerabilities, and the underlying fix is to avoid privileged operations on user-writable paths.

How it was found

  1. Append commands to the batch file in the writable driver directory.
  2. Start the Lenovo update service and trigger an update.
  3. For the second flaw, set up a tool that waits for the Config.Msi folder to be deleted.
  4. Create a pseudo-symlink from the writable TvsuSession folder to Config.Msi.
  5. Run Lenovo System Update so the privileged process deletes Config.Msi.
  6. Open the On-Screen Keyboard to load the planted DLL and get a SYSTEM prompt.

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.

Some Lenovo update tools ran with high privileges but used folders that ordinary users could change. A local attacker could put their own commands in those folders, and the update tool would run them as an administrator. This is called privilege escalation: going from a normal user to a more powerful one.

What is Access control?

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.

More from Lenovo

View all

The newest disclosed reports for this program.

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.