Hi romansaint,
Thanks for your advice.
I have performed the steps as advised but problem still remains
Download .htaccess to local PC
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
No new .htaccess automatically created afterwards.
I suppose the problem comes from the malicous .htaccess
<FilesMatch '.(php|php5|suspected|py|phtml)$'>
Order allow,deny
Deny from all
</FilesMatch>
It is a long story. My cPanel of my hosting company has been attacked by a suspected malware lock360.php and`Wordfence Security plugin couldn’t detect all of them. Many malicious .htaccess files have been added thereafter. The aftermath of the attack results in all my websites unable to browse and unable to login.
malicious .htaccess
<FilesMatch '.(php|php5|suspected|py|phtml)$'>
Order allow,deny
Deny from all
</FilesMatch>
On my cPanel Terminal
I found lock360.php by running following command line;
# find ./ -name lock360.php;
and deleted all of them manually.
Also as adviesed by the Technical Support of my hosting company there are 500 malicous .htacces files created.
Then on my cPanel Terminal I ran following command line;
# find ./ -type f -name “.htaccess” -delete
to delete them. Afterwards my websites can be browsed and login. But there are still some problem such as Plugin -> Add New doesn’t work
Now on one website, I found the suspected malicious .htaccess file come back on following folders;
.well-known
.well-known -> acme-challenge
css
css-color
images
includes
js
js -> widgets
maint
network
user
On one website I have renamed all of them as .htacess.old but problem still remains
Warning:
It appears you don’t have
permission to access this page.
403 Error. Forbidden.
That is the present situation
Regards`
-
This reply was modified 3 years, 8 months ago by
satimis02.
-
This reply was modified 3 years, 8 months ago by
satimis02.
-
This reply was modified 3 years, 8 months ago by
satimis02.
-
This reply was modified 3 years, 8 months ago by
satimis02.
-
This reply was modified 3 years, 8 months ago by
satimis02.