Skip to content
Access control Write-up Intermediate

Local Privilege Escalation via MSI Installer

The MSI installers of SoftMaker Office and FreeOffice spawned a console window running as SYSTEM during the repair function, and an attacker could use the console's properties to open a browser and launch a SYSTEM-level command prompt. This allowed a local low-privileged user to escalate to SYSTEM.

sec-consult.com

Published on sec-consult.com

SoftMaker Office 2024 / NX before revision 1214, FreeOffice 2021 Revision 1068, FreeOffice 2024 before revision 1215

The author, 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 MSI repair process launched a console application with SYSTEM privileges without restricting user interaction, allowing the console's properties dialog to spawn a browser and then a command prompt with inherited SYSTEM rights.

Impact

A local low-privileged attacker with GUI access could escalate to SYSTEM, but the exploit required using Chrome or Firefox (not Edge or IE) and ensuring those browsers were not already running.

What the attacker needed

SoftMaker Office or FreeOffice installed via MSI; Local low-privileged user with GUI access; Chrome or Firefox available and not running; Ability to set an oplock on a file

The fix

The vendor released service pack revision 1214 for SoftMaker Office 2024/NX and revision 1215 for FreeOffice 2024, which fix the issue; FreeOffice 2021 remains unsupported and unfixed.

How it was found

  1. Install SoftMaker Office or FreeOffice using the MSI installer.
  2. Start the repair of the software by double-clicking the installer (no UAC prompt).
  3. Set an oplock on the file that the installer reads (7z.exe or OneCoreCommonProxyStub.dll) to block the process.
  4. Release the lock by pressing ENTER several times until a console window appears.
  5. Right-click the window's top bar, open Properties, click the 'new console features' link, and open it with Firefox or Chrome.
  6. In the browser, press CTRL+O, type cmd.exe, and press Enter to get a SYSTEM shell.

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 install software, the installer sometimes runs with high privileges to copy files to protected places. Here, the installer started a console window with the highest Windows privileges (SYSTEM). A normal user could interact with that window and use a built-in feature to open a browser, then launch a command prompt that also had those high privileges, effectively becoming the system administrator.

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.

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.