security(shared-httpd): also remove status, info and every unused proxy/suexec/dbd/cache module
A tenant `RewriteRule ^ - [H=server-status|server-info]` binds the handler after any config section could pin it, and `RewriteRule ... http://x [P]` proxies to internal addresses (SSRF). Config cannot close those; removing the modules does. WHP renders only SetHandler proxy:fcgi, <Proxy balancer://> + BalancerMember fcgi:// + ProxySet lbmethod=byrequests and ProxyFCGISetEnvIf, so only proxy, proxy_fcgi, proxy_balancer, lbmethod_byrequests and slotmem_shm stay. Removed in addition to the earlier set: status, info, proxy_http, proxy_ajp, proxy_ftp, proxy_connect, proxy_scgi, proxy_uwsgi, proxy_wstunnel, proxy_fdpass, proxy_express, proxy_hcheck, lbmethod_bybusyness, lbmethod_bytraffic, lbmethod_heartbeat (+ mod_heartbeat/heartmonitor .so), suexec, dbd, authn_dbd, authz_dbd, cache, cache_disk, cache_socache, socache_dbm, socache_memcache, socache_redis. socache_shmcb stays (SSL). The gate derives its banned-module regex from one list. Tests: 26 gate cases (banned status/info/proxy_*/cache back, leftover .so, required lbmethod_byrequests/balancer missing) and a new live probe script (scripts/tests/httpd-exec-surface-probes.test.sh) that renders the real WHP template + drop-in and tries [H=lua-script|server-status|server-info], nested <If> CGI and [P] http/ws/ajp/ftp/scgi/uwsgi. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
1 parent
0f8407c239
commit
990b3792bc
5 files changed
+195
-15
No files matched your search
@@ -78,6 +78,7 @@ jobs:
|
||||
scripts/httpd-h2-md-gate.sh \
|
||||
scripts/httpd-exec-surface-gate.sh \
|
||||
scripts/tests/httpd-exec-surface-gate.test.sh \
|
||||
scripts/tests/httpd-exec-surface-probes.test.sh \
|
||||
scripts/tests/lsphp-info-probe.test.sh \
|
||||
scripts/lsphp-repo-version.sh \
|
||||
scripts/tests/lsphp-repo-version.test.sh \
|
||||
|
||||
Reference in new issue
Block a user