Repository navigation
Conversation
The HTML view of /fpm-status prints request fields that any client of the pool controls unescaped (CVE-2026-129292, GHSA-3mg3-cr28-46gc). The localhost vHost now only passes the full, json, openmetrics and xml flags. The allowlist works on the raw query string, because php-fpm decodes the query before it looks for `html`, so a blocklist on `html` is bypassed by `?%68tml`, and Apache's unescape() returns an empty string for %00 or a broken escape. Verified with httpd 2.4.37 and 2.4.62 on Rocky 8 and 9, and by the apache_httpd Molecule scenario on all supported platforms.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The
localhostvHost ofapache_httpdonly passes thefull,json,openmetricsandxmlflags to/fpm-statusand answers every other query with403. This keeps out the HTML view (?html), which prints request fields that any client of the pool controls unescaped, so a planted payload runs in the browser of whoever opens the page (GHSA-3mg3-cr28-46gc, CVE-2026-129292). Thephprole enables the status page on every pool (pm.status_path = /fpm-status), which upstream leaves off.Why an allowlist
php-fpm decides on the HTML view by looking for the key
htmlin the decoded$_GET(sapi/fpm/fpm/fpm_status.c), so?%68tmlselects it as well. A blocklist on the decoded string does not hold either: Apache'sunescape()returns an empty string for%00or a broken escape such as%zz(server/util_expr_eval.c,server/util.c). Raw flags without any escape mean the same to Apache and php-fpm.Verification
?json,?json&full,?full,?xmland?openmetricsanswer200.?full&html,?html,?%68tml,?+html,?html%00,?json&%zz&html,?html[],?jsonhtmland?full=1answer403. Control run without the guard:?%68tmlreturnstext/html.molecule test --scenario-name apache_httpdpasses on all 8 platforms, including the new assertions inverify.yml.php-fpm-statuscheck of the Monitoring Plugins asks for?json&fulland is not affected.Notes
Locationan admin adds by hand for further pools needs the same<If>block. Both role READMEs describe this.