# sfewer-r7/cve-2026-123007 architecture

> Architecture diagram of the GitHub repository sfewer-r7/cve-2026-123007, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sfewer-r7/cve-2026-123007
- Repository: https://github.com/sfewer-r7/cve-2026-123007

## Overview

This repository is a proof-of-concept for triggering and exploiting an NGINX HTTP/2 vulnerability, with a minimal trigger script and a staged exploit for a narrowly profiled local target. The main workflow validates a target and profile, bootstraps the HTTP/2 state, reaches the wrapped-window condition, prepares and reclaims heap state, captures disclosures and forges objects, then dispatches a payload. Profiles and the native bulk sender support that workflow. Edges reflect the runner and shown module references; unsampled details are omitted rather than inferred.

Main entry points: [`exploit/nginx_rce/cli.py`](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/cli.py) (CLI and Validation), [`exploit/nginx_rce/bootstrap.py`](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/bootstrap.py) (HTTP/2 Bootstrap), [`exploit/nginx_rce/reclaim.py`](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/reclaim.py) (Heap Reclaim and Dispatch), [`exploit/nginx_rce/protocol.py`](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/protocol.py) (HTTP/2 and TLS)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and Configuration"]
  node_trigger["Minimal Trigger"]
  node_launcher["Exploit Launcher<br/>[exploit.py]"]
  node_cli["CLI and Validation<br/>[cli.py]"]
  node_target["Target Runtime<br/>[target.py]"]
end

subgraph group_wire["HTTP/2 Transport"]
  node_bulk["Bulk Sender Supervisor<br/>[bulk.py]"]
  node_streamer["Native Streamer<br/>[streamer.c]"]
  node_protocol["HTTP/2 and TLS<br/>[protocol.py]"]
  node_constants["Protocol Constants<br/>[constants.py]"]
end

subgraph group_stages["Exploit Stages"]
  node_runner["Stage Orchestrator<br/>[runner.py]"]
  node_bootstrap["HTTP/2 Bootstrap<br/>[bootstrap.py]"]
  node_memory["Disclosure and Forgery<br/>[memory.py]"]
  node_reclaim["Heap Reclaim and Dispatch<br/>[reclaim.py]"]
end

subgraph group_support["Profiles and Payload"]
  node_profiles["Profile Validation<br/>[profiles.py]"]
  node_profile_tool["Profile Tool<br/>[profile_tool.py]"]
  node_profile_data["Profile Data"]
end

node_user(("Operator"))
node_nginx["Vulnerable NGINX"]

node_user -->|"runs trigger"| node_trigger
node_user -->|"runs exploit"| node_launcher
node_launcher -->|"delegates to"| node_cli
node_cli -->|"configures target"| node_target
node_cli -->|"loads profile"| node_profiles
node_cli -->|"starts run"| node_runner
node_profile_tool -->|"loads and validates"| node_profiles
node_profile_tool -->|"fingerprints target"| node_target
node_profile_data -.->|"supplies profile data"| node_profiles
node_runner -->|"bootstraps"| node_bootstrap
node_runner -->|"runs reclaim stages"| node_reclaim
node_bootstrap -.->|"uses sender"| node_bulk
node_bulk -->|"launches process"| node_streamer
node_bootstrap -->|"uses transport"| node_protocol
node_reclaim -->|"uses sessions"| node_protocol
node_reclaim -->|"uses memory routines"| node_memory
node_bootstrap -->|"sends HTTP/2 traffic"| node_nginx
node_protocol -.->|"exchanges frames"| node_nginx
node_reclaim -->|"dispatches payload"| node_nginx
node_constants -.->|"defines limits"| node_protocol

click node_trigger "https://github.com/sfewer-r7/cve-2026-123007/blob/main/simple-trigger-poc.py"
click node_launcher "https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/exploit.py"
click node_cli "https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/cli.py"
click node_target "https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/target.py"
click node_profiles "https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/profiles.py"
click node_profile_tool "https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/profiles/profile_tool.py"
click node_profile_data "https://github.com/sfewer-r7/cve-2026-123007/tree/main/exploit/profiles"
click node_runner "https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/runner.py"
click node_bootstrap "https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/bootstrap.py"
click node_bulk "https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/bulk.py"
click node_streamer "https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/streamer.c"
click node_protocol "https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/protocol.py"
click node_memory "https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/memory.py"
click node_reclaim "https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/reclaim.py"
click node_constants "https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/constants.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_trigger,node_launcher,node_cli,node_target toneBlue
class node_bulk,node_streamer,node_protocol,node_constants toneAmber
class node_runner,node_bootstrap,node_memory,node_reclaim toneMint
class node_profiles,node_profile_tool,node_profile_data toneRose
class node_user,node_nginx toneIndigo
```

## Components

### Entry and Configuration

- [Minimal Trigger](https://github.com/sfewer-r7/cve-2026-123007/blob/main/simple-trigger-poc.py): `simple-trigger-poc.py`
- [Exploit Launcher](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/exploit.py): `exploit/exploit.py`
- [CLI and Validation](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/cli.py): `exploit/nginx_rce/cli.py`
- [Target Runtime](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/target.py): `exploit/nginx_rce/target.py`

### HTTP/2 Transport

- [Bulk Sender Supervisor](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/bulk.py): `exploit/nginx_rce/bulk.py`
- [Native Streamer](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/streamer.c): `exploit/streamer.c`
- [HTTP/2 and TLS](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/protocol.py): `exploit/nginx_rce/protocol.py`
- [Protocol Constants](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/constants.py): `exploit/nginx_rce/constants.py`

### Exploit Stages

- [Stage Orchestrator](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/runner.py): `exploit/nginx_rce/runner.py`
- [HTTP/2 Bootstrap](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/bootstrap.py): `exploit/nginx_rce/bootstrap.py`
- [Disclosure and Forgery](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/memory.py): `exploit/nginx_rce/memory.py`
- [Heap Reclaim and Dispatch](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/reclaim.py): `exploit/nginx_rce/reclaim.py`

### Profiles and Payload

- [Profile Validation](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/nginx_rce/profiles.py): `exploit/nginx_rce/profiles.py`
- [Profile Tool](https://github.com/sfewer-r7/cve-2026-123007/blob/main/exploit/profiles/profile_tool.py): `exploit/profiles/profile_tool.py`
- [Profile Data](https://github.com/sfewer-r7/cve-2026-123007/tree/main/exploit/profiles): `exploit/profiles`

### Other components

- **Operator**
- **Vulnerable NGINX**

## Connections

- Operator → Minimal Trigger: runs trigger (evidence: `README.md`)
- Operator → Exploit Launcher: runs exploit (evidence: `README.md`)
- Exploit Launcher → CLI and Validation: delegates to (evidence: `exploit/exploit.py`)
- CLI and Validation → Target Runtime: configures target (evidence: `exploit/nginx_rce/cli.py`)
- CLI and Validation → Profile Validation: loads profile (evidence: `exploit/nginx_rce/cli.py`)
- CLI and Validation → Stage Orchestrator: starts run (evidence: `exploit/nginx_rce/cli.py`)
- Profile Tool → Profile Validation: loads and validates (evidence: `exploit/profiles/profile_tool.py`)
- Profile Tool → Target Runtime: fingerprints target (evidence: `exploit/profiles/profile_tool.py`)
- Profile Data → Profile Validation: supplies profile data (evidence: `exploit/profiles/profile_tool.py`)
- Stage Orchestrator → HTTP/2 Bootstrap: bootstraps (evidence: `exploit/nginx_rce/runner.py`)
- Stage Orchestrator → Heap Reclaim and Dispatch: runs reclaim stages (evidence: `exploit/nginx_rce/runner.py`)
- HTTP/2 Bootstrap → Bulk Sender Supervisor: uses sender (evidence: `exploit/nginx_rce/bootstrap.py`)
- Bulk Sender Supervisor → Native Streamer: launches process (evidence: `exploit/nginx_rce/bulk.py`)
- HTTP/2 Bootstrap → HTTP/2 and TLS: uses transport (evidence: `exploit/nginx_rce/bootstrap.py`)
- Heap Reclaim and Dispatch → HTTP/2 and TLS: uses sessions (evidence: `exploit/nginx_rce/reclaim.py`)
- Heap Reclaim and Dispatch → Disclosure and Forgery: uses memory routines (evidence: `exploit/nginx_rce/reclaim.py`)
- HTTP/2 Bootstrap → Vulnerable NGINX: sends HTTP/2 traffic (evidence: `README.md`)
- HTTP/2 and TLS → Vulnerable NGINX: exchanges frames
- Heap Reclaim and Dispatch → Vulnerable NGINX: dispatches payload (evidence: `README.md`)
- Protocol Constants → HTTP/2 and TLS: defines limits (evidence: `exploit/nginx_rce/protocol.py`)
