Solutions · WordPress
WordPress: possible backdoor in x.php
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
In /ruta/al/wordpress/wp-content/plugins/mi-plugin/x.php there's code with the typical shape of a backdoor: running something encoded, or whatever arrives in the request.
Why it matters
Some legitimate plugins use it, but it's rare. If you don't know where it comes from, treat it as compromised.
What to do
- See what it is without running it (just read it):
less /ruta/al/wordpress/wp-content/plugins/mi-plugin/x.php - Keep a copy as it is, as evidence (without opening it in the browser):
mkdir -p ~/gotool-pruebas && cp -a /ruta/al/wordpress/wp-content/plugins/mi-plugin/x.php ~/gotool-pruebas/ - If it isn't yours, reinstall whatever is in that folder from its source: the plugin, the theme or the core (their steps are in this same list, if they also showed up).
- Find out how they got in: plugins with known flaws, the administrators' passwords, and the rest of this project's critical issues in 🛡.
How to know it's fixed
- 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 yours and it's like that on purpose, mark it as closed with its reason in the project's 🛡: it stops warning (and warns again if it changes).
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.