Solutions · WordPress
WordPress: a core file changed (wp-includes/version.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
/ruta/al/wordpress/wp-includes/version.php isn't the one wordpress.org publishes for that version.
Why it matters
Nobody should change the core: if nobody on the team did it knowingly, it's the first thing an intruder does, to come back whenever they want.
What to do
- Keep a copy as it is, as evidence (without opening it in the browser):
mkdir -p ~/gotool-pruebas && cp -a /ruta/al/wordpress/wp-includes/version.php ~/gotool-pruebas/ - See what else has changed in the core:
wp core verify-checksums --path=/ruta/al/wordpress - Put the whole core back, same version, without touching wp-content or wp-config.php:
wp core download --force --skip-content --version=$(wp core version --path=/ruta/al/wordpress) --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» and say nothing about files that shouldn't be there:
wp core verify-checksums --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
- Without wp-cli: download the zip for your version from wordpress.org and copy wp-admin/, wp-includes/ and the root .php files over (not wp-config.php or wp-content/).
More
CWE-494 · 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.