Strange code in index.php which blocks my website

Discussion regarding Joomla! 3.x security issues.

Moderators: mandville, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant / FPA - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
agotel
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Tue Jan 25, 2022 2:15 pm

Strange code in index.php which blocks my website

Post by agotel » Thu Feb 03, 2022 5:59 pm

Good Evening,
after my website was hacked hacked since Christmas and after I created and maintained it since 2015, and after taking all the appropriate protection measures, I changed the code of the mySQL database, changed the password to url-backend Administrator Joomla , client account and installation of some extensions for protection and security of my website searching on the internet as well as following the advice of the support of the hosting company, I would like you to tell me what I can do to avoid hacking issues and fully protect my website !
I restored the files and the database and the website works normally but after 3-4 days it is hacked again and 1 white blank page appears!
From Plesk and from the server ip when the page is hacked, it opens but displays a message about inappropriate content etc.
Also looking in the logs I noticed that there is a problem with a plugin - extension '' plugin googlemap3.php '' which I uninstalled and if necessary I will replace it with another one!
Also from what I found when the page is hacked usually a script enters index.php and prevents the page from opening!
Removing it makes the page work many times or I need to restore files and database to a previous operating time point.
It is a script that is automatically attached to a porn site.I was able to insert this code that is being added all the time. When I delete it, it reappears.
But this is not a solution to be done every 2-3 days to do a reset, and I have to solve it in another way.
I wasted a lot of time trying to get my website up and running.
I also downloaded the entire httpdocs folder (when my website was up and running) and checked for any viruses, malware, bots, adware etc but nothing was found. ).
I also installed some security extensions (searching on the internet https://www.joomdev.com/how-to-secure-y ... a-website /) and added code to index.php and .htaccess for better security and I changed the permissions of mainly * .php files in the Main Root Folder so that no one can log in and make changes.
From your experience I would like you to look at it "in depth or in detail" and give me a solution for what I need to do to make my website safe and functional.
How can I PROTECT myself so that PHP files, index.php, configuration.php etc are not hacked?
I am attaching screenshots to you according to the above in my email.

Thanks
Yours sincerely
agotel
You do not have the required permissions to view the files attached to this post.

gws
Joomla! Champion
Joomla! Champion
Posts: 5953
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Strange code in index.php which blocks my website

Post by gws » Thu Feb 03, 2022 6:15 pm

Easy solution go to mysites.guru a security auditing site,the first audit is free. I do not have an affiliation to this site.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44098
Joined: Sat Apr 05, 2008 9:58 pm

Re: Strange code in index.php which blocks my website

Post by Webdongle » Thu Feb 03, 2022 8:22 pm

The things you did not do were many fold. Here is a step by step list viewtopic.php?f=714&t=946026 with links to full explanation.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

agotel
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Tue Jan 25, 2022 2:15 pm

Re: Strange code in index.php which blocks my website

Post by agotel » Thu Feb 03, 2022 8:55 pm

gws and Webdongle thanks a lot about immediate response and advises.
I will check it.


Locked

Return to “Security in Joomla! 3.x”