Skip to content
Access control Write-up Intermediate

Microsoft Windows MSI Installer - Repair to SYSTEM - A detailed journey

A local low-privileged user can trigger the repair function of certain MSI installers, which run as SYSTEM and may spawn a visible console window. By interacting with that window, the attacker can open a browser and then a command prompt with SYSTEM privileges, achieving privilege escalation.

Michael Baer Follow

Published on sec-consult.com

Repair functions of Microsoft Windows MSI installers can be vulnerable in several ways, for instance allowing local attackers to escalate their privileges to SYSTEM rights. This vulnerability is referenced as CVE-2024-38014.

Michael Baer, on sec-consult.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 installer executes a console application during an elevated repair without hiding its window, allowing user interaction.

Impact

A local attacker could escalate privileges to SYSTEM, but the exploit requires GUI access and a supported browser (Firefox or Chromium); newer Edge and Internet Explorer do not work.

What the attacker needed

Local low-privileged user; GUI access; Firefox or Chromium installed; browser not already running

The fix

Microsoft released a patch on 10th September 2024 that triggers a UAC prompt when an installer runs an elevated action, and package authors should also start console programs without a visible window.

How it was found

  1. Close the browser.
  2. Start the repair process as a low-privileged user, e.g. via msiexec.exe /fa <path/to/installer.msi>.
  3. When a console window appears, right-click its title bar and select Properties, or select an area inside the window, to stop it from closing.
  4. Click 'legacy console mode' to open a browser selection dialog.
  5. Select Firefox (or Chrome), then press Ctrl+O to open a file dialog.
  6. Type cmd.exe in the file dialog and press Enter to open an elevated command 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.

When you repair an installed program on Windows, the repair sometimes runs with high system rights. If that repair opens a black command window that you can click on, you can use it to open other programs that also run with those high rights. This lets a normal user become the all-powerful SYSTEM account.

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 by Michael Baer

View all

1 more disclosed report, best first.

More from Microsoft (Windows)

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.