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

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
php-cve-2026-115560-kit — Local-only PoC lab for CVE-2026-115560 (PHP session upload-progress serialize-handler confusion) — two-request PoC on the PHP CLI built-in server (no Docker) + fleet audit implementing the advisory's decision tree. | Kitploit
工具/GitHubGitHub/slabbdev/php-cve-2026-115560-kit
Vulnerability AnalysisExploitationWeb Application ExploitationConfiguration AuditingSecurity VirtualizationWeb SecurityPenetration TestingMisconfigurationLearning & EducationLabs & Practice
GitHub
228天前尚未审核
slabbdev/php-cve-2026-115560-kit

php-cve-2026-115560-kit

Local-only PoC lab for CVE-2026-115560 (PHP session upload-progress serialize-handler confusion) — two-request PoC on the PHP CLI built-in server (no Docker) + fleet audit implementing the advisory's decision tree.

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

cve-115560-kit — local lab for the PHP session serialize-handler confusion

Companion lab for the black box article on CVE-2026-115560 (PHP session.upload_progress, informational advisory, 2026-10-23). Part 2 of the php2shell story (part 1: CVE-2026-109618/109619).

Local target only (127.0.0.1). Never aimed at third-party systems.

The combo (all three legs required, per php.net)

  1. session.serialize_handler = php_binary or php_serialize in configuration;
  2. application code switches it back to php at runtime with ini_set() before session_start();
  3. session.upload_progress.enabled still on.

PHP calls this setup "unlikely in practice" — the advisory is informational, the fix ships in the regular cycle. The mitigation is the same as GHSA-6wmf-4rv5-p3rp (CVE-2026-109619): session.upload_progress.enabled=0.

The lab

No Docker needed — the PHP CLI's built-in server is the whole stack, and the serializer grammar is not version-specific. Requires php and python3 on $PATH.

$ ./run.sh          # starts 127.0.0.1:8899 (or ./run.sh PORT) and runs the PoC

What the two requests do:

  1. POST a small multipart upload whose PHP_SESSION_UPLOAD_PROGRESS value is the attacker-chosen key p|O:8:"DemoVuln":1:{...}. The progress hook stores the entry with the configured handler (php_binary: length-prefixed key, no | semantics). session.upload_progress.cleanup=0 keeps the entry after the upload completes — no race.
  2. GET /?a=read: the target does ini_set('session.serialize_handler','php') then session_start(). The php grammar splits entries at the first | — which the attacker planted — and unserializes attacker bytes. DemoVuln::__wakeup fires.

Expected output (PHP 8.5.10):

[1] upload POST — writes the progress entry under the crafted key…
     HTTP/1.1 200 OK
[2] read GET — ini_set to `php`, session_start()…
     HTTP/1.1 200 OK
    > [CVE-2026-115560] DemoVuln::__wakeup — attacker-controlled unserialize executed, note=pwned-1
    > read OK — session keys: []
RESULT: INJECTION CONFIRMED

Two details in that output are the lab's teaching points:

  • read OK — session keys: [] — the decoder fails on the trailing progress-array bytes that follow the injected object, and destroys the session. The gadget still ran.
  • the server logs PHP Warning: session_start(): Failed to decode session object — that warning is your detection artifact: a session store written under one grammar and read under another shows up exactly there.

Audit your own fleet instead

$ ./audit-cve-2026-115560.sh -s /path/to/src -c /path/to/config

Implements the advisory's decision tree: scans ini files for non-default session.serialize_handler (leg 1), greps sources for the runtime ini_set switch (leg 2, tests/vendor excluded), reads the effective config for each SAPI (CLI vs FPM — the "fixed the wrong ini" trap; php -i in CLI proves nothing for php-fpm), and checks the branch version against the 2026-10-21 patched releases (8.5.12 / 8.4.27 / 8.3.36 / 8.2.35). Exit codes: 0 nothing to do · 1 mitigate now · 2 patches missing · 64 usage. --json for CI. Read-only.

On this very kit's target it reports ACTION — as it should: the demo ships all three legs.

Mitigation

  • Applied the Tuesday mitigation (session.upload_progress.enabled=0)? Keep it. No further action.
  • Never call ini_set() on session.serialize_handler? You can keep upload progress enabled.
  • You do switch handlers at runtime? Set session.upload_progress.enabled=0 now, watch for the full advisory with the next regular release.
  • One ini file per SAPI — verify the FPM pool's effective config, not the CLI's.

Files

filerole
run.shbinds 127.0.0.1, launches the vulnerable target + the PoC
target/index.phpthe combo: php_binary in config, ini_set() to php on the read path
target/DemoVuln.phpthe gadget (__wakeup) standing in for a real POP chain
exploit.pythe two-request PoC (raw sockets, no dependencies)
audit-cve-2026-115560.shfleet audit implementing the advisory's decision tree

Sources

  • php.net informational advisory (2026-10-23): https://www.php.net/archive/2026.php
  • GHSA-6wmf-4rv5-p3rp (CVE-2026-109619, the shared mitigation): https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp
  • Article (black box series): The "BREAKING" unpatched PHP RCE that wasn't
  • Part 1 lab: https://github.com/slabbdev/php2shell-cve-2026-109618-109619

最受欢迎

查看全部 →

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

  • 1

    OsintHunter

    letox4/osinthunter

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

    1.1k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    594
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    387
  • 4

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    322
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

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

    308
  • 6

    redforge

    cybersecurity91/redforge

    浏览器端红队工具包,包含 102 个离线工具,用于侦察、载荷生成、凭据攻击、加密、编码和交战报告。

    275

探索所有工具

浏览我们的工具集合

查看所有工具 →
下载工具