# eness/php2shell-cve-2026-109618-cve-2026-109619-poc architecture

> Architecture diagram of the GitHub repository eness/php2shell-cve-2026-109618-cve-2026-109619-poc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc
- Repository: https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc

## Overview

This repository is a php2shell security-research and mitigation toolkit: its principal runtime workflow builds a multipart request, sends it to a PHP target, and checks the response for evidence of command execution. Separate branches provide configuration, source-patch, and web-server/WAF mitigations. The PoC implementation is excerpted; mitigation relationships rely on README documentation, and the contents of mitigation files were not sampled.

Main entry points: [`poc_109618.py`](https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/poc_109618.py) (PoC client), [`README.md`](https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/README.md) (PHP configuration), [`quick-fix/run.sh`](https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/quick-fix/run.sh) (Quick-fix script), [`patch/session-upload-progress-counters.patch`](https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/patch/session-upload-progress-counters.patch) (Session source patch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_research["Exploit research"]
  node_poc["PoC client<br/>[poc_109618.py]"]
end

subgraph group_php_mitigation["PHP mitigations"]
  node_config_guide["PHP configuration<br/>[README.md]"]
  node_quick_fix["Quick-fix script<br/>[run.sh]"]
  node_source_patch["Session source patch"]
end

subgraph group_edge_mitigation["Edge mitigations"]
  node_cloudflare["Cloudflare WAF rules<br/>[README.md]"]
  node_frankenphp["FrankenPHP config"]
  node_lighttpd["Lighttpd config<br/>[php2shell.conf]"]
  node_apache_modsecurity["Apache ModSecurity"]
  node_apache_htaccess["Apache .htaccess<br/>[.htaccess]"]
end

node_operator(("Security operator"))
node_php_target["PHP target"]
node_execution(("Command execution"))

node_operator -->|"runs"| node_poc
node_poc -->|"sends request"| node_php_target
node_php_target -->|"may execute"| node_execution
node_operator -->|"applies setting"| node_config_guide
node_operator -->|"runs mitigation"| node_quick_fix
node_operator -->|"applies patch"| node_source_patch
node_operator -->|"configures rules"| node_cloudflare
node_operator -->|"applies config"| node_frankenphp
node_operator -->|"applies config"| node_lighttpd
node_operator -->|"applies rules"| node_apache_modsecurity
node_operator -->|"applies rules"| node_apache_htaccess

click node_poc "https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/poc_109618.py"
click node_config_guide "https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/README.md"
click node_quick_fix "https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/quick-fix/run.sh"
click node_source_patch "https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/patch/session-upload-progress-counters.patch"
click node_cloudflare "https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/cloudflare-rule-fix/README.md"
click node_frankenphp "https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/frankenphp/Caddyfile-snippet"
click node_lighttpd "https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/lighttpd/php2shell.conf"
click node_apache_modsecurity "https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/apache/modsecurity-php2shell.conf"
click node_apache_htaccess "https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/apache/.htaccess"

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_poc toneBlue
class node_config_guide,node_quick_fix,node_source_patch toneAmber
class node_cloudflare,node_frankenphp,node_lighttpd,node_apache_modsecurity,node_apache_htaccess toneMint
class node_operator,node_php_target,node_execution toneIndigo
```

## Components

### Exploit research

- [PoC client](https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/poc_109618.py): `poc_109618.py`

### PHP mitigations

- [PHP configuration](https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/README.md): `README.md`
- [Quick-fix script](https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/quick-fix/run.sh): `quick-fix/run.sh`
- [Session source patch](https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/patch/session-upload-progress-counters.patch): `patch/session-upload-progress-counters.patch`

### Edge mitigations

- [Cloudflare WAF rules](https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/cloudflare-rule-fix/README.md): `cloudflare-rule-fix/README.md`
- [FrankenPHP config](https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/frankenphp/Caddyfile-snippet): `frankenphp/Caddyfile-snippet`
- [Lighttpd config](https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/lighttpd/php2shell.conf): `lighttpd/php2shell.conf`
- [Apache ModSecurity](https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/apache/modsecurity-php2shell.conf): `apache/modsecurity-php2shell.conf`
- [Apache .htaccess](https://github.com/eness/php2shell-cve-2026-109618-cve-2026-109619-poc/blob/main/apache/.htaccess): `apache/.htaccess`

### Other components

- **Security operator**
- **PHP target**
- **Command execution**

## Connections

- Security operator → PoC client: runs (evidence: `README.md`)
- PoC client → PHP target: sends request (evidence: `poc_109618.py`)
- PHP target → Command execution: may execute (evidence: `README.md`)
- Security operator → PHP configuration: applies setting (evidence: `README.md`)
- Security operator → Quick-fix script: runs mitigation (evidence: `README.md`)
- Security operator → Session source patch: applies patch (evidence: `README.md`)
- Security operator → Cloudflare WAF rules: configures rules (evidence: `README.md`)
- Security operator → FrankenPHP config: applies config (evidence: `README.md`)
- Security operator → Lighttpd config: applies config (evidence: `README.md`)
- Security operator → Apache ModSecurity: applies rules (evidence: `README.md`)
- Security operator → Apache .htaccess: applies rules (evidence: `README.md`)
