git404hub

ekomssavior/green_plasma_ctf

14C++Audience · researcherComplexity · 5/5ActiveSetup · hard

tl;dr

Public proof of concept for CVE-2022-37962, a Windows CTF protocol privilege escalation from low-privilege user to NT AUTHORITY SYSTEM on Windows 10 1903.

vibe map

mindmap
  root((Green_plasma_ctf))
    Inputs
      ntdll API addresses
      EPROCESS offsets
      Named NT section
    Outputs
      SYSTEM shell
      Brute-forced offsets
      Token-stealing shellcode
    Use Cases
      Reproduce CVE-2022-37962 in a lab
      Study Windows CTF protocol bugs
      Compare to Windows 11 24H2 mitigations
    Tech Stack
      C
      C++
      MinGW
      Visual Studio
      Windows NT API
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what people make with this

VIBE 1

Reproduce CVE-2022-37962 privilege escalation in an isolated Windows 10 1903 VM

VIBE 2

Brute-force EPROCESS offsets on an unknown Windows build using the helper tool

VIBE 3

Study how an NT symbolic link can hijack a winlogon-mapped section

VIBE 4

Compare why the shellcode succeeds on Windows 10 1903 but fails on Windows 11 24H2

stack

CC++MinGWVisualStudioWindowsNTAPI

setup vibes

Difficulty · hard time til it works · 1day+

You need a sandboxed Windows 10 1903 VM, MinGW or Visual Studio, and willingness to deal with offsets that only land cleanly on one specific build.

in plain english

Green_plasma_ctf is a public security research project that publishes a working proof of concept for a Windows privilege escalation chain the author calls GreenPlasma. The goal of the exploit, demonstrated on Windows 10 builds, is to take an account with no administrator rights and end up running code as NT AUTHORITY SYSTEM, the highest-privilege user on Windows. The README is framed as research building on an earlier skeleton by another researcher that intentionally left out the final code path, and on prior work by several named authors who are credited at the top of the file. The bug being exploited is tracked as CVE-2022-37962, a flaw in the Windows CTF protocol, which is the inter-process channel that powers the Microsoft Text Services Framework. The PoC abuses an NT object manager symbolic link to redirect a CTF-related object that the winlogon process opens, so that winlogon ends up mapping a memory section the unprivileged process controls. The README documents the phases plainly: load NT API addresses from ntdll, look up known EPROCESS offsets, create and map a named section, replace the CTF session symlink with one that points to that section, plant a callback pointer and shellcode in the mapped memory, then call SwitchDesktop so winlogon executes the callback. The author notes the current status: the symlink primitive is confirmed on Windows 10 and 11, but the token-stealing shellcode only runs cleanly on Windows 10 build 1903. On Windows 11 24H2, the callback fires but the shellcode itself does not succeed, and research continues. The repository contains three C source files: greenPLASMA_Final.c, the main exploit, GreenPlasma_Brute.c, a helper that cycles through plausible EPROCESS offset combinations and reports any that produce a SYSTEM process, and GreenPlasma_legacy.cpp, the older PoC kept for reference. The README also lists MinGW and Visual Studio compile commands, expected output, and a short troubleshooting section.

prompts (copy fr)

prompt 1
Walk me through compiling greenPLASMA_Final.c with MinGW and running it inside a Windows 10 1903 VM
prompt 2
Explain how the NT object manager symlink primitive redirects the winlogon CTF mapping
prompt 3
Outline the phases of the exploit from ntdll resolution to SwitchDesktop callback
prompt 4
Suggest defensive detections a blue team could deploy to spot this exploit pattern
peek the repo → explain another one

← ekomssavior on gitmyhub — every repo by this author, as a profile.

double-check against the repo, no cap.