Summery

CVE-2023-49147 is a vulnerabiulity about the MSI installer of PDF24 Creator contains a privilege escalation vulnerability. This enables an attacker with GUI access to a system, where PDF24 Creator is installed via MSI, to escalate the privileges to SYSTEM level.

Affected versions:
11.15.1 and all earlier versions

Exploitation

This article covers the steps for exploitation. I followed it to solve the Lock box.

In the simplest of steps:

  1. Look for the PDF24 .msi installer file. You can search for it with Get-ChildItem -Path C:\ -Filter 'pdf24*.msi' -Recurse -Force -ErrorAction SilentlyContinue
  2. Download the newest releast of SetOpLock.exe and upload it onto the target host
  3. Run .\SetOpLock.exe "C:\Program Files\PDF24\faxPrnInst.log" r in one terminal
  4. Execute msiexec.exe /fa <PATH TO INSTALLERFILE>\pdf24-creator-<VERSION>-x64.msi in another terminal
  5. Follow the installation steps. In “Automatically close applications” prompt select OK, in “Setup was unable to close all requested applications” prompt continue with OK.
  6. When the installation finishes, a new window will pop-out. Right click the top bar of that terminal window and click “Properties”
  7. Under the main options find the “Legacyconsolemode” link, it can be named a little different than that
  8. Open it with a browser that isn’t Explorer or Edge
  9. In the browser window press CTRL+o to open the open local file window
  10. Type “cmd.exe” in the top bar (the one that shows the filepath, not where you input the file name)