Skip to main content
Room Banner
Back to all walkthroughs
Room Icon

LocalPotato

Max room.

Learn how to elevate your privileges on Windows using LocalPotato (CVE-2023-21746).

medium

30 min

8,595

User profile photo.
User profile photo.
User profile photo.

To access material, start machines and answer questions login.

Set up your virtual environment

To successfully complete this room, you'll need to set up your virtual environment. This involves starting both your AttackBox (if you're not using your VPN) and Lab Machines, ensuring you're equipped with the necessary tools and access to tackle the challenges ahead.
Attacker machine
Status:Off
Lab machine
Status:Off

A local privilege escalation (LPE) vulnerability in Windows was reported to Microsoft on September 9, 2022, by Andrea Pierini (@decoder_it (opens in new tab)) and Antonio Cocomazzi (@splinter_code (opens in new tab)). The vulnerability would allow an attacker with a low-privilege account on a host to read/write arbitrary files with SYSTEM privileges.

Microsoft released a fix for the vulnerability in the January 2023 patch Tuesday, and a working Proof-of-Concept () was later released on February 10, 2023. The vulnerability was assigned -2023-21746.

While the vulnerability in itself wouldn't directly allow executing commands as SYSTEM, we can combine it with several vectors to achieve this result. Conveniently, on February 13, another privilege escalation was published by BlackArrowSec (opens in new tab) that abuses the StorSvc service, allowing an attacker to execute code as SYSTEM as long as they can write a file to any directory in the PATH.

In this room, we will look at both vulnerabilities and combine them to get arbitrary execution as the SYSTEM user.

Starting the

You will need to deploy the attached to this task by pressing the green Start Lab Machine button at the top of the task. The machine should launch in a split-screen view. If it does not, you will need to press the blue Show Split View button near the top-right of this page. All of the room can be done in split view, but if you prefer connecting to the machine via , you can use the following credentials:

THM key
Username user
Password Password123
Answer the questions below
Start the VM before continuing.