Solutions · WordPress
WordPress: extra code in the plugin mi-plugin
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
There are code files in /ruta/al/wordpress/wp-content/plugins/mi-plugin that don't come with the published version.
Why it matters
An extra .php inside a plugin or a theme is where a backdoor usually hides.
What to do
- Keep a copy of its folder as it is, as evidence:
mkdir -p ~/gotool-pruebas && cp -a /ruta/al/wordpress/wp-content/plugins/mi-plugin ~/gotool-pruebas/ - Reinstall it from wordpress.org (it deletes its folder and puts it back clean, at its latest version):
wp plugin install mi-plugin --force --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 end in «Success»:
wp plugin verify-checksums mi-plugin --path=/ruta/al/wordpress - gotool checks the WordPress again on its next pass: once it's gone, it stops showing up.
If you can't do it that way
- If it's paid or your own (not on wordpress.org), upload the good copy you have again: the one in your repository or the one you downloaded from the vendor.
More
CWE-506 · MITRE ATT&CK T1505.003
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.