Skip to content
Access control Write-up Advanced

Hot Potato – Windows Privilege Escalation

The Hot Potato exploit combines NBNS spoofing, a fake WPAD proxy server, and HTTP-to-SMB NTLM relay to escalate privileges from a low-privilege user to NT AUTHORITY\SYSTEM on Windows. An attacker with local access can run the exploit to execute arbitrary commands as SYSTEM.

foxglovesecurity.com

Published on foxglovesecurity.com

Hot Potato (aka: Potato) takes advantage of known issues in Windows to gain local privilege escalation in default configurations, namely NTLM relay (specifically HTTP->SMB relay) and NBNS spoofing.

The author, on foxglovesecurity.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

Windows falls back to NBNS for name resolution and automatically attempts WPAD proxy detection, allowing a local attacker to spoof responses and relay NTLM authentication to a local SMB service.

Impact

A low-privilege local attacker can execute arbitrary commands as NT AUTHORITY\SYSTEM, potentially leading to lateral movement and full domain compromise; the exploit may be unreliable and require waiting for WPAD refresh, and it is unclear whether SMB signing would prevent it.

What the attacker needed

Local low-privilege access to Windows host; ability to run code on the target; Windows default configuration

The fix

Microsoft has not fully fixed these issues due to backward compatibility concerns; mitigation would involve disabling NBNS and WPAD or enforcing SMB signing, though the text notes uncertainty about SMB signing's effectiveness.

How it was found

  1. Run the Potato.exe tool with the appropriate command-line switches for the target Windows version.
  2. The tool starts an NBNS spoofer that floods the local machine with fake responses for the hostname WPAD, pointing to 127.0.0.1.
  3. A local HTTP server is started to serve a WPAD proxy configuration file that redirects all HTTP traffic through the attacker's server.
  4. The tool triggers a Windows service (such as Windows Defender or Windows Update) to make an HTTP request, which is redirected to a local endpoint that requests NTLM authentication.
  5. The NTLM credentials are relayed to a local SMB listener, which creates a new system service running the user-specified command with SYSTEM privileges.

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.

This is a way for someone with a normal user account on a Windows computer to become the all-powerful SYSTEM user. It tricks Windows into sending login credentials to the attacker, who then uses them to run commands as an administrator. The attack works because Windows automatically tries to find proxy settings and authenticate to network services in ways that can be faked.

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.