block wp2shell CVE-2026-63030

This commit is contained in:
2026-07-21 13:52:43 +02:00
parent d271532f31
commit 71ffa2a1db
2 changed files with 15 additions and 7 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ export PHP_UPLOADS_CONF_VERSION=v4
export ENTRYPOINT_CONF_VERSION=v8
export ENTRYPOINT_MAILRELAY_CONF_VERSION=v2
export MSMTP_CONF_VERSION=v4
export HTACCESS_CONF_VERSION=v3
export HTACCESS_CONF_VERSION=v4
export USERS_CONF_VERSION=v1
wp() {
+14 -6
View File
@@ -3,6 +3,19 @@
Require all denied
</FilesMatch>
# Block XML-RPC
<Files xmlrpc.php>
Require all denied
</Files>
# Block wp2shell CVE-2026-63030
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} rest_route=.*/batch/v1 [NC]
RewriteRule .* - [F,L]
RewriteRule ^wp-json/batch/v1 - [F,L]
</IfModule>
{{ if eq (env "MULTISITE") "" -}}
# BEGIN WordPress
@@ -59,9 +72,4 @@ RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
# END WordPress Multisite
{{- end }}
# Block XML-RPC
<Files xmlrpc.php>
Require all denied
</Files>
{{- end }}