Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
php2shell — Unauthenticated RCE toolkit for PHP 5.4–8.4.26 (CVE-2026-109619/109618) — pure-HTTP chain, JA3 impersonation, prpenetration-testingoof-of-access design | Kitploit
工具/GitHubGitHub/aarsaputra/php2shell
ReconnaissanceVulnerability ScannersWeb Vulnerability ScannersExploitationWeb Application ExploitationInformation GatheringPenetration TestingAnti-BotLabs & Practice
GitHubaarsaputra/php2shell

php2shell

1537112天前Kitploit 审核通过
分享

Unauthenticated RCE toolkit for PHP 5.4–8.4.26 (CVE-2026-109619/109618) — pure-HTTP chain, JA3 impersonation, prpenetration-testingoof-of-access design

查看仓库
内容在请求的语言中不可用。显示英文版本。
php2shell in action

💀 P H P 2 S H E L L

Unauthenticated RCE chain for PHP 5.4 → 8.4.26

Pure HTTP · zero target-side requirements · JA3 fingerprint impersonation · proof-of-access design

PHP CVSS Tests Platform License: GPL‑3.0 Docker Landing Page

Landing Page · Install · Quick start · Lab vs Live · Modes · Repo sources · Research credits · How it works · Stealth · FAQ · Disclaimer

🌐 Landing Page & Web UI: an interactive documentation page and simulation are available at docs/index.html. This static page can be served locally with python3 -m http.server inside the docs/ folder.


❖ What is this?

php2shell is a reproduction and research toolkit for two critical PHP vulnerabilities, CVE-2026-109619 and CVE-2026-109618 (CVSS 4.0 9.2 Critical, unauthenticated, fixed in 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12).

It turns the bug into a fully remote, HTTP-only exploit chain against mod_php + Apache prefork with zero target-side requirements:

  • ❌ no session_start() needed on the target page
  • ❌ no file upload feature needed
  • ❌ no credentials, no cookie, no header trick
  • ✅ the target page can be literally <?php echo "OK\n"; ?>

The toolkit is proof-of-access by design: commands are capped at 14 bytes, limited to identity commands (id, whoami, …), bash/nc/curl are permanently blocked, and evidence is retrieved automatically — it demonstrates impact without being a drop-in backdoor.


❖ The bugs

CVE-2026-109619CVE-2026-109618
Classstale global state → UAFOOM bailout corruption → longjmp
Triggersession.upload_progress multipart callbacks run before RINIT; OOM leaves PS(http_session_vars) / PS(id) dangling → the next request on the same worker calls zval_ptr_dtor on freed memoryzend_bailout() mid-allocation leaves half-built structures in global state
Requests2 (producer + consumer)1
Fix8.2.35 / 8.3.36 / 8.4.27 / 8.5.12same
Status in this toolkit✅ implemented: full 0→RCE chain⛔ intentionally not implemented (detect/preflight only)

Version semantics — if your PHP is below the fix-floor, it is vulnerable and exploitable. Every release from the fix-floor up patches all of these issues. PHP ≤ 8.1 is EOL: no backports, vulnerable forever.

Branchlast vulnerablefixed
8.28.2.348.2.35
8.38.3.358.3.36
8.48.4.268.4.27
8.58.5.118.5.12
≤ 8.1all (EOL)never

Highest impact: mod_php + prefork (cross-request worker reuse). php-fpm is a strong mitigation (the worker dies per request). CDN-hidden versions? Detection is information, not a gate: preflight reports what it can see, and the chain proceeds anyway.

Post-release advisory (verified 2026-10-24, primary sources)

  • The patches were rebuilt on 22 Oct 2026: 8.5.12 and 8.4.27 carry ChangeLog entries dated 22 Oct (Avoid state corruption via bailout), but the version numbers did not change. The same 8.4.27 can mean the 21 Oct build (not final) or the 22 Oct build (final). Check the package build date, not just the version string.
  • A third CVE exists: CVE-2026-115560 (Session upload progress). Reserved, full advisory to follow in a regular release. It needs session.serialize_handler set to php_binary/php_serialize and switched to php at runtime via ini_set() before session_start(), plus session.upload_progress.enabled=On. Mitigate with session.upload_progress.enabled=0. NOT closed by the fix-floor below. See the callout right after this list.

CVE-2026-115560 (2026-10-23, not yet patched): the fix-floor above does not close the session serialize_handler mismatch bug (object injection via app-side ini_set). patched + upload_progress=On ≠ safe — detect prints this caveat automatically. Details: docs/CVE-2026-115560.md.

  • memory_limit=-1 is NOT a complete mitigation (GHSA-w8hw-w9fx-j79w). If a base allocation fails, longjmp() can still happen while request memory is reachable. Only upgrading is complete.
  • session.upload_progress.enabled=0 only closes 109618 (+115560). It does not close 109619.
  • In-the-wild exploitation predates the patch: first attempts 17 Oct 2026, four days before release, from anonymized/VPN IPs against honeypots (Amazon Threat Intelligence). No confirmed successful compromise is public as of 2026-10-23.

Run php2shell version --advisories for this list from the CLI.


❖ Install

git clone https://github.com/aarsaputra/php2shell.git
cd php2shell
bash install.sh        # venv + deps + smoke-tests + global `php2shell` command
Manual install (no installer)
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt     # curl_cffi (JA3) + bcrypt (webshell mode)
python php2shell.py --help

Every dependency and why it exists: REQUIREMENTS.md.


❖ One-command lab

The repo ships the author's exact vulnerable lab configuration, so reproducing the research environment takes one command, not an afternoon:

bash lab/lab_docker.sh start
# → pulls official php:8.4.26-apache
# → mounts docker/php.ini + docker/apache.conf + docker/www (author's config)
# → single prefork worker, KeepAlive Off, upload_progress tuned
# → http://127.0.0.1:8095/index.php

❖ Quick start

# 0) fresh binary offsets (required after every image change)
python3 docker/offsets.py          # → out/offsets.env

# 1) run the chain with automatic proof retrieval
php2shell exploit \
    -u http://127.0.0.1:8095/index.php --force --yes \
    --allow-private-target --exploit-profile bookworm -c 'id>/out/p1'
下载工具

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    961
  • 2

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    914
  • 3

    wifit3

    derv82/wifit3

    Wifite 但仅限 USB 且跨平台。

    713
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer是一个开源的特权访问管理(PAM)平台,为DevOps和IT团队提供通过Web浏览器按需安全访问SSH、RDP、Kubernetes、数据库和RemoteApp端点的能力。

    471
  • 5

    SafeLine

    chaitin/safeline

    自托管WAF和反向代理,可过滤恶意HTTP流量、阻止SQL注入、XSS和机器人攻击,具备速率限制和动态HTML/JS加密功能。

    417
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI原生网络安全的行动系统——在这里,意图转化为受治理的执行,证据沉淀为运营记忆,每一次操作都让下一次更出色。

    391

探索所有工具

浏览我们的工具集合

查看所有工具 →