Skip to content
KitploitKITPLOIT
도구익스플로잇블로그
Log in
제출
도구익스플로잇블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
checkmk_php2shell — Checkmk extension with an agent plug-in that inventories PHP binaries and Apache mod_php on Linux hosts and reports PHP2Shell (CVE-2026-109618/109619) status, backports and stale processes. | Kitploit
도구/GitLabGitLab/checkmk1/checkmk_php2shell
Defensive ToolsVulnerability ScannersVulnerability AnalysisConfiguration AuditingWeb SecurityIncident Response
GitLabcheckmk1/checkmk_php2shell

checkmk_php2shell

Checkmk extension with an agent plug-in that inventories PHP binaries and Apache mod_php on Linux hosts and reports PHP2Shell (CVE-2026-109618/109619) status, backports and stale processes.

저장소 보기
394일 전아직 검토되지 않음
공유
요청한 언어로 콘텐츠를 사용할 수 없습니다. 영어 버전을 표시합니다.

checkmk_php2shell

A Checkmk extension that shows, for every PHP installation on a Linux host, whether it is affected by PHP2Shell - the pre-authentication remote code execution vulnerabilities CVE-2026-109618 and CVE-2026-109619, disclosed and fixed on 2026-10-21 in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12.

It ships a small POSIX shell agent plug-in that only collects facts (PHP binaries, PHP libraries of Apache mod_php, NGINX Unit and FrankenPHP, versions, package changelogs, php.ini settings, processes still running a replaced binary). Whether that means "fixed" or "vulnerable" is decided by the check plug-in on the Checkmk server, so new information - another fixed release, a new CVE - only needs an updated .mkp, not a new script on every host.

Why not just compare version numbers: distributions backport the fix without changing the upstream version. Ubuntu 24.04 ships PHP 8.3.6 and AlmaLinux 9 ships 8.0.30 - both fixed, both "vulnerable" by version. The extension therefore also reads the changelog of the package that owns each binary.

Requirements

  • Checkmk >= 2.5.0 (using the current cmk_addons.plugins plugin API).
  • Monitored hosts: Linux with the Checkmk agent running as root (the plug-in runs the PHP binaries and reads /proc/<pid>/maps of all processes). Plain POSIX sh with GNU or busybox tools; package changelogs are read with dpkg, rpm or apk. Tested on the Debian family (Debian, Ubuntu), the Red Hat family (RHEL, AlmaLinux, Rocky Linux, Oracle Linux, CentOS Stream, Fedora, Amazon Linux 2023, CentOS 7) and Alpine, see below.
  • Agent bakery deployment requires a commercial Checkmk edition (Pro, Ultimate, or Ultimate with multi-tenancy). On the Community edition, copy the agent plug-in to the hosts by hand, see Manual agent plug-in deployment. The check plug-ins, rules and services work identically either way.

Tested with

Checkmk imageDateResult
checkmk/check-mk-ultimate:2.5.0p172026-10-28OK (build, cmk-validate-plugins, smoke test) - release 1.1.2
checkmk/check-mk-ultimate:3.0.0-2026.10.28 (daily)2026-10-28OK (build, cmk-validate-plugins, smoke test) - release 1.1.2
checkmk/check-mk-ultimate:2.5.0p172026-10-27OK (build, cmk-validate-plugins, smoke test, install + discovery + check + agent bake)
checkmk/check-mk-ultimate:3.0.0-2026.10.27 (daily)2026-10-27OK (build, cmk-validate-plugins, smoke test, install + discovery + check + agent bake)

The agent plug-in was run against the distributions' own PHP packages on 2026-10-27 (scripts/test_agent_plugin.sh). Where a target starts the web SAPIs (FPM, Apache mod_php where the distribution still ships it, NGINX Unit, FrankenPHP), the FPM binary and libphp were replaced on disk afterwards, and the restart detection reported the running processes.

Debian family and Alpine

DistributionPHP packagesPlug-in result
Ubuntu 24.048.3.6-0ubuntu0.24.04.13 (CLI, FPM, CGI, mod_php)fixed by backport (changelog names both CVEs)
Debian 128.2.35-1~deb12u1 (CLI, FPM, mod_php)fixed by version
Debian 12 + nginx8.2.35-1~deb12u1 (CLI, FPM behind nginx)fixed by version
Debian 138.4.27-1~deb13u1 (CLI, FPM)fixed by version
Alpine 3.22php83 8.3.36-r0 (CLI, FPM, CGI)fixed by version

Red Hat family

DistributionPHP packagesPlug-in result
AlmaLinux 8.107.2.24-1.module_el8.10.0 (CLI, FPM, CGI, mod_php libphp7.so)fixed by backport (changelog names both CVEs)
AlmaLinux 8.10, module php:8.28.2.35-1.module_el8.10.0 (CLI, FPM, CGI)fixed by version
RHEL 9.8 (UBI), AlmaLinux 9.8, Rocky Linux 9.8, Oracle Linux 9.88.0.30-8.el9_8.1 (CLI, FPM, CGI)fixed by backport (changelog names both CVEs)
AlmaLinux 9.8, module php:8.38.3.36-1.module_el9.8.0 (CLI, FPM, CGI)fixed by version
AlmaLinux 9.8 + Remi SCLphp74 7.4.33-31.el9.remi, php81 8.1.34-6.el9.remi (/opt/remi)fixed by backport (changelog names both CVEs)
AlmaLinux 10.2, CentOS Stream 108.3.36-1.el10 (CLI, FPM, CGI)fixed by version
Fedora 448.5.12-1.fc44 (CLI, FPM, CGI)fixed by version
Amazon Linux 2023php8.5 8.5.12-1.amzn2023.0.1 (CLI, FPM, CGI)fixed by version
CentOS 7 (end of life, vault)5.4.16-48.el7 (CLI, FPM, CGI)vulnerable - no backport for EL7 outside paid extended support

Official container images and FrankenPHP

ImagePHPPlug-in result
php:8.2.20-fpm8.2.20, built from sourcevulnerable
unit:php8.3 (NGINX Unit)8.3.26 (CLI, CGI, embedded libphp)vulnerable
dunglas/frankenphp:latest8.5.12 (CLI, CGI, embedded libphp)fixed by version
FrankenPHP static binary (GitHub release)8.5.12fixed by version

It has not yet run on a production host outside containers - in particular not with SELinux enforcing (RHEL family); the agent normally runs unconfined there.

Installation

  1. Download the .mkp from a release (or build it yourself, see Development).

  2. Setup > Maintenance > Extension packages > Upload package, or on the command line inside the site:

    mkp add php2shell-<version>.mkp
    mkp enable php2shell <version>
    
  3. Deploy the agent plug-in to the hosts you want to check:

    • Commercial edition: Setup > Agents > Windows, Linux, Solaris, AIX > Agent rules, section Agent plug-ins, rule PHP2Shell agent plug-in. Create a rule for the target hosts, then bake and update the agents. The plug-in always runs asynchronously; the default interval is one hour.
    • Community edition / manual: see below.
  4. Run a service discovery on the hosts. Every PHP binary and Apache PHP module gets its own service, plus one PHP2Shell restart service per host.

  5. Optional: adjust the states in Setup > Services > Service monitoring rules > PHP2Shell (CVE-2026-109618 / CVE-2026-109619) and PHP2Shell restart.

Manual agent plug-in deployment (Community edition)

Copy package/agents/plugins/php2shell into a cache-interval subdirectory of the agent's plug-in directory and make it executable:

install -m 755 php2shell /usr/lib/check_mk_agent/plugins/3600/php2shell

The 3600 directory makes the agent run it in the background once an hour and serve the cached result in between. Do not put it directly into plugins/: it runs every PHP binary and reads the memory map of every process, which is too much for every agent query.

What it monitors

ServiceOne perStates (default, configurable)
PHP2Shell <path>PHP binary or library, e.g. PHP2Shell /usr/sbin/php-fpm8.3OK fixed - CRIT vulnerable web SAPI - WARN vulnerable web SAPI with all interim mitigations - WARN vulnerable CLI - UNKNOWN version not determinable
PHP2Shell restarthost with PHPOK - CRIT processes still run a replaced PHP binary or libphp

The screenshots come from a Checkmk 2.5.0p17 test site whose four hosts get the recordings in sample-data/ instead of a real agent (no real hosts): Ubuntu 24.04 and AlmaLinux 8 fixed by backport but not restarted, CentOS 7 without any fix, and NGINX Unit with an outdated PHP.

PHP2Shell services of four example hosts in OK, WARN and CRIT

The details of a service name the missing interim mitigations, the package and what its changelog says:

도구 다운로드

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

아직 인기 데이터가 없습니다.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →