Solutions · WordPress
WordPress: anyone can register as an administrator
With example names (mi-app, /ruta/al/proyecto). In GoTool, in 🛡 Security, this page shows your project's: your container, your compose file, your WordPress folder.
What's happening
Registration is open (users_can_register) and whoever registers becomes an administrator (default_role).
Why it matters
Nobody leaves it like that on purpose: it's what an intruder does to be able to come back whenever they want.
What to do
- Close registration and set the default role to subscriber (or in the dashboard: Settings → General):
wp option update users_can_register 0 --path=/ruta/al/wordpress wp option update default_role subscriber --path=/ruta/al/wordpress - Check which administrators there are and take the role away from those you don't know:
wp user list --role=administrator --path=/ruta/al/wordpress - Find out how they got in: plugins with known flaws, the administrators' passwords, and the rest of this project's critical issues in 🛡.
- If WordPress runs in a container, run the wp commands inside it: docker compose exec <service> wp …
How to know it's fixed
- It must say subscriber:
wp option get default_role --path=/ruta/al/wordpress - gotool checks the WordPress again on its next pass: once it's gone, it stops showing up.
More
In GoTool, the file with the issue (the Dockerfile, the compose file) is also shown with the solution next to it, and the question for Claude comes ready, with your project's details and without your keys, to paste into your claude.ai.