Answer the question
In order to leave comments, you need to log in
Changing site content. Where to dig?
Today, by chance and with surprise, I discovered that in several (not exactly old, but not new) entries, the content with links to foreign film sites has been replaced. The site is multi-user, but everything that the user writes / edits before publication goes to me for verification. And this muck didn’t come to me for verification. Obviously the site has been hacked. But where to dig is not clear. Because:
1. Access to the hosting admin panel - only after SMS confirmation.
2. FTP access - only from my IP.
3. The engine files are all of the same date, when they switched to the new version. Version WP 4.7.0.
4. Subject - handwritten.
5. There are only a couple of plugins, but they are simple and definitely safe (like rus-to-lat).
Those. there are no holes as such.
a) Confused by a few lines in .htaccess:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Answer the question
In order to leave comments, you need to log in
Version WP 4.7.0.
Those. there are no holes as such.It's not funny: https://www.cvedetails.com/vulnerability-list/vend...
The lines in .htaccess are a redirect from HTTP to HTTPS. These are legitimate lines, in short, they have nothing to do with hacking.
Hacking is most likely through holes in wp, wordpress is generally like a time bomb.
This of course does not mean that they should not be used, you just need to be constantly on the alert.
For starters, you need to check for nasty things, for example, with an aibolite .
If the aibolit does not find anything, take the version where everything is clean (do you have such a backup?), And compare file by file.
In any case, change all passwords, additionally protect the admin panel - there are options, there are plugins that change the path to the admin panel, which cannot be found. You can also play it safe with htpasswd
Check the rights of files and folders, set the recommended ones.
Put a checker in the crown for changing files, there are ready-made solutions, but in principle, you can write the smallest script yourself, and use it to monitor changes in files.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question