> For the complete documentation index, see [llms.txt](https://breakpoint-journal.gitbook.io/breakpoint/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://breakpoint-journal.gitbook.io/breakpoint/windows/windows-privilege-escalation/lolbas/cve-2019-1388.md).

# CVE-2019-1388

[CVE-2019-1388](https://nvd.nist.gov/vuln/detail/CVE-2019-1388) was a privilege escalation vulnerability taking advantage of a hyperlink issue in the Windows Certificate Dialog. Microsoft released a patch in November 2019. You can see all vulnerable Windows versions [here](https://web.archive.org/web/20210620053630/https://gist.github.com/gentilkiwi/802c221c0731c06c22bb75650e884e5a).&#x20;

First right click on the `hhupd.exe` executable and select `Run as administrator` from the menu.

<figure><img src="https://2618442973-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGhYQRY1OEeL4zywZ9zS%2Fuploads%2FTZCWb63mrKP3P9HcDOtC%2Fimage.png?alt=media&amp;token=d7165d73-3650-47b3-84c8-d8a8acf6dba2" alt=""><figcaption></figcaption></figure>

Next, click on `Show information about the publisher's certificate` to open the certificate dialog. Here we can see that the `SpcSpAgencyInfo` field is populated in the Details tab.

<figure><img src="https://2618442973-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGhYQRY1OEeL4zywZ9zS%2Fuploads%2F8zqn2cceuhIAAPvr2yly%2Fimage.png?alt=media&amp;token=8a51a002-439a-49c4-a421-7f0cfbb7129c" alt=""><figcaption></figcaption></figure>

Next, we go back to the General tab and see that the `Issued by` field is populated with a hyperlink. Click on it and then click `OK`, and the certificate dialog will close, and a browser window will launch.

<figure><img src="https://2618442973-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGhYQRY1OEeL4zywZ9zS%2Fuploads%2FO2z8xaHjzwg3SwGAftRM%2Fimage.png?alt=media&amp;token=6bb351a2-2a6a-4073-9128-56b9bd807470" alt=""><figcaption></figcaption></figure>

If we open `Task Manager`, we will see that the browser instance was launched as SYSTEM.

<figure><img src="https://2618442973-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGhYQRY1OEeL4zywZ9zS%2Fuploads%2FxnXf15UbNnY8fUENa1E1%2Fimage.png?alt=media&amp;token=8bb9c5d9-620f-49d0-9486-8af2aadc5877" alt=""><figcaption></figcaption></figure>

Next, we can right-click anywhere on the web page and choose `View page source`. Once the page source opens in another tab, right-click again and select `Save as`, and a `Save As` dialog box will open.

<figure><img src="https://2618442973-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGhYQRY1OEeL4zywZ9zS%2Fuploads%2FO0MTPs7jr0SuJgdu23We%2Fimage.png?alt=media&amp;token=06dd19d5-4c86-4e61-91c7-1ce7d15123d3" alt=""><figcaption></figcaption></figure>

At this point, we can launch any program we would like as SYSTEM. Type `c:\windows\system32\cmd.exe` in the file path and hit enter. If all goes to plan, we will have a cmd.exe instance running as SYSTEM.

<figure><img src="https://2618442973-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGhYQRY1OEeL4zywZ9zS%2Fuploads%2FL9P0MOhYc8CLz16yxhIN%2Fimage.png?alt=media&amp;token=08292597-ca39-45ec-af89-ede3d1cf4040" alt=""><figcaption></figcaption></figure>
