Carefully follow this guide. When you’re done, you may want to implement some (if not all) of the recommended security measures.
Thread Starter
Claudio
(@ioclaudio)
Thank you for your help, I’m reading these documents.
I have just a curiosity.
Using a new brand container and a new WordPress core and replacing the plugins with the original version taken from the official repository, I still have this problem of the redirect.
That is, only when you visit the site the first time it redirects you to a malicious site.
So I wonder how they managed to “dirty” the site and where does the malicious code reside? Any ideas on where to look?
Thank you very much
cld
-
This reply was modified 2 years, 1 month ago by
Claudio.
Is the theme also brand new and unmodified?
If it’s a commercial theme, did you acquire it by purchasing it from the theme’s official vendor?
Thread Starter
Claudio
(@ioclaudio)
It is a custom theme that we have into a private repository and it was modified two years ago last time.
The copy on the compromised site is the same on the repository.
Do you have the same issue with the Twenty Twenty-Four theme active?
Thread Starter
Claudio
(@ioclaudio)
It was a snippet of code injected using the plugin WPCode.
It was added with an account that probably had a weak password.
cld
-
This reply was modified 2 years ago by
Claudio.