PHP check: host php-fpm + PHP inside containers #3

Open
opened 2026-10-22 19:08:22 +00:00 by mercen.ai · 0 comments
Collaborator

Wanted after PHP2Shell (CVE-2026-109618/-109619, Oct 2026): the next time a PHP hole drops, "which hosts run which PHP" should be a report query, not an ssh sweep over every server.

What to report per host:

  • host PHP: every php*-fpm unit with version (/usr/sbin/php-fpmX.Y -v), enabled/active
  • PHP inside running containers: docker exec <c> php -r 'echo PHP_VERSION;' for containers that have PHP (the docker check already lists containers)
  • maybe: PHP in the image of stopped MASH units (from the unit file's image; see shk_php2shell_servers status in aperture-dots php2shell/, which does this already)

Open question: hard-code "patched yes/no" thresholds (like the php2shell script) or just report versions and judge centrally? Reporting versions only seems cleaner; the judging belongs where the CVE data is.

Reference implementation: aperture-dots php2shell/php2shell_servers.sh (fpm_version, php_containers, app_images).

Payload spec change, so a minor version bump when it's implemented (ask first).

Wanted after PHP2Shell (CVE-2026-109618/-109619, Oct 2026): the next time a PHP hole drops, "which hosts run which PHP" should be a report query, not an ssh sweep over every server. What to report per host: - host PHP: every `php*-fpm` unit with version (`/usr/sbin/php-fpmX.Y -v`), enabled/active - PHP inside running containers: `docker exec <c> php -r 'echo PHP_VERSION;'` for containers that have PHP (the docker check already lists containers) - maybe: PHP in the image of *stopped* MASH units (from the unit file's image; see `shk_php2shell_servers status` in aperture-dots `php2shell/`, which does this already) Open question: hard-code "patched yes/no" thresholds (like the php2shell script) or just report versions and judge centrally? Reporting versions only seems cleaner; the judging belongs where the CVE data is. Reference implementation: aperture-dots `php2shell/php2shell_servers.sh` (`fpm_version`, `php_containers`, `app_images`). Payload spec change, so a minor version bump when it's implemented (ask first).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
shukutils/shukelematik#3
No description provided.