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