🚨 Hey, so that nginx RCE targeting instances with the unnamed rewrite rule? => ...

@hrbrmstr@mastodon.social

🚨 Hey, so that nginx RCE targeting instances with the unnamed rewrite rule? => It's extremely common.

That exact rule is the official recommended config from Yoast for their XML sitemaps on NGINX.

From their help page:

rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;

This is copy-pasted verbatim by millions of WP sites running Yoast SEO (5+ million active installs) and also by sites using other SEO plugins that followed Yoast's lead. (1/3)