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.

Репозиторий
395 дней назадЕщё не проверено
Поделиться
Контент недоступен на запрошенном языке. Показываем английскую версию.

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:

Скачать инструмент

Популярное

Смотреть все →

Откройте для себя самые используемые инструменты нашего сообщества.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 Полный набор инструментов OSINT: граф расследования, оценка достоверности, семейства псевдонимов, карта, временная шкала и отчёты. 49 модулей, более 400 сайтов, API-ключи не требуются.

    867
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # Приложение GhostLock с запуском в один клик (CVE-2026-43499)

    544
  • 3

    ARTEX

    baarai/artex

    Платформа автономного тестирования на проникновение на основе мультиагентной LLM с агентами-планировщиками и агентами-исполнителями, графами активов и исследования, записью MITM-трафика и повторной проверкой уязвимостей.

    385
  • 4

    redforge

    cybersecurity91/redforge

    Браузерный инструментарий для red team с 102 офлайн-инструментами для разведки, генерации полезной нагрузки, атак на учётные данные, криптографии, кодирования и отчётности по проектам.

    360
  • 5

    looking-glass

    anonghosty/looking-glass

    Платформа CSIRT, которая загружает отчёты Shadowserver в MongoDB и воспроизводит их в виде интерактивных карт, аналитики, результатов, рекомендаций и исполнительных дашбордов.

    302
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    Система действий для кибербезопасности на базе ИИ — где намерение превращается в управляемое исполнение, доказательства становятся оперативной памятью, а каждая операция улучшает следующую.

    279

Изучить все инструменты

Просмотрите нашу коллекцию инструментов

Смотреть все инструменты →