Site désactivé suite à des fichiers malveillants

Bonjour à toutes et à tous,

J'ai un état désactivé sur le service de mon hébergement roppa-afrique.org

J'ai créé un ticket suite à la désactivation du site roppa-afrique.org. OVH a signifié que des fichiers malveillants ont conduit à la désactivation du site web tout en donnant des consignes à suivre. J'ai suivi ces consignes sans succès. J'ai changé les mots de passe FTP et pour la base de donnée. J'ai même supprimer tous les fichiers de la racine du site toutes les tables de la base de données. Quand j'applique la commande serveur "roppa-afrique.org CHMOD 705 /" conseillé par OVH pour activer le service, au niveau de FilleZilla au bout de 20 sec le serveur se déconnecte pour inactivité et sur net2ftp je ne reçoit aucune réponse du serveur.
Je viens donc vers la communauté pour solliciter son aide.

Bonjour @KONEF

Votre site a été piraté. De quand date ce piratage ?

N'auriez-vous pas intérêt à faire une restauration Hébergement + Base de données à une date antérieure à votre problème ?

A quand remonte la dernière sauvegarde de votre site sur votre PC ?

Voir dans mon guide le paragraphe : https://www.wordetweb.com/word-et-web/WORDPRESS-guide-installation-de-WordPress-premier-domaine-chez-OVH-FR.htm#T%E2%80%93_Restauration T - Restauration OVH de votre site à une date antérieure


J'ai suivi ces consignes sans succès.


Bonjour,

S'il y a eu récidive (c-à-d deux avertissements pour site hacké ou hébergeant des fichiers malveillants) vous ne pourrez pas le réactiver.

Il vaut mieux repartir à zéro car déverminer un site n'est jamais sûr à 100% et demande de l'expertise.

Quand vous aurez vidé tous les fichiers de votre hébergement (y compris les fichiers indésirables) contactez le support via ticket incient.

Bonjour,


Quand j'applique la commande serveur "1afrique.orgafrique.org CHMOD 705 /" conseillé par OVH pour activer le service, au niveau de FilleZilla au bout de 20 sec le serveur se déconnecte pour inactivité et sur net2ftp je ne reçoit aucune réponse du serveur.

pouvez-vous faire des capture de ce que vous faite exactement ?

Cordialement, janus57


j'applique la commande serveur "roppa-afrique.org CHMOD 705 /" conseillé par OVH


Si vous avez tapé exactement cette commande c'est sûr que ça ne va pas marcher.

Votre répertoire racine (/home) doit avoir les permissions suivantes: "drwx---r-x"

Voici avec Filezilla connecté en mode SFTP.
Voyez (1) les permissions et (2) le owner qui doit être votre login FTP.

Bonsoir @KONEF

Votre FILEZILLA n'était pas en mode SFTP.

Il faudrait voir les attributs pour le dossier en dessus de /www
Pour cela connectez-vous avec FILEZILLA en mode SFTP.

Voir dans mon guide le paragraphe :
E - Installation du logiciel FTP FILEZILLA

https://www.wordetweb.com/word-et-web/WORDPRESS-guide-installation-de-WordPress-premier-domaine-chez-OVH-FR.htm#E-WordPress


**
_________________________________________________________________________________**

Puis quand votre site sera à nouveau réparé et opérationnel :

Penser à faire une sauvegarde Hébergement et Base de données sur votre PC une fois par mois.

Dans mon guide : https://wordetweb.com/word-et-web/WORDPRESS-guide-installation-de-WordPress-premier-domaine-chez-OVH-FR.htm#Ua-_Sauvegarde Ua - Sauvegarde complète de votre site sur votre PC


J'ai téléchargé une version sur Web archive que je veux restaurer à travers archivarix


Bonjour @KONEF,

J'aurais un service à vous demander.

Pourriez-vous faire une série de copies d'écran de l'opération, en masquant les informations personnelles, et me les envoyer afin que je puisse ajouter à mon guide un paragraphe documenté sur cette récupération de site ?

D'avance merci. 😉

Il me reste comment récupérer une copie du site et mettre en ligne.

Voir : **X4 - Reconstitution d’un site supprimé à partir de la sauvegarde trouvée sur le site web.archive.org**
https://www.wordetweb.com/word-et-web/WORDPRESS-guide-installation-de-WordPress-premier-domaine-chez-OVH-FR.htm#_X4__-

I did everything exactly as it’s written: everything was erased, including the database.

I changed all the passwords, recreated a database with a new password.

All the files are set to mode 705.

Now I need to reinstall the sites from a backup. They are Joomla sites, and the backups are .jpa files usable with Kickstart. I recreated the folders for my sites, placed the backup.jpa and the kickstart.php file in them.

When I go to the address site.nomedomaine.fr\kickstart.php, I get an HTTP 500 error—the page doesn’t work.

What should I do? What’s happening? A redirection issue?

Thanks for your help.

Hello @DenisD19

The 500 error when running Kickstart is usually related to a server configuration issue that prevents the script from running correctly.

I recommend following this order of checks:

  1. Check your hosting logs :right_arrow: It's the first and most important step to understand the error. In the OVHcloud client area, look for the statistics and logs section of your hosting.
  2. Enable development mode :right_arrow: If the logs don’t give you an answer, enable PHP development mode in your hosting from the client area.
  3. Test the “.htaccess” file :right_arrow: A misconfigured .htaccess file is a very common cause of 500 errors. Connect to your hosting via FTP, locate the .htaccess file in your site’s root and temporarily rename it to .htaccess.old
  4. Check file and folder permissions :right_arrow: OVHcloud sets specific permissions for the server to work correctly:
    • The root of your hosting should have permissions 705.
    • Folders should have permissions 705.
    • Files should have permissions 604.
      [ You can verify and change these permissions from your FTP client ]

Combining these steps is usually enough to identify whether the problem is a configuration issue or a backup integrity issue.

If that doesn’t solve it, let me know and I’ll give you other tips :wink:

Looking forward to hearing from you,
Sergio Turpín

Site.domaine.fr does not exist.

What is the real name of your domain?

Hello everyone,

I would also like to take this opportunity to invite you to update all passwords associated with your website (once your hosting no longer contains any malicious data), especially for the FTP user, user password, and database password:

This documentation for compromised sites may also be useful to you: https://help.ovhcloud.com/csm/fr-web-hosting-hacked-website-best-practices?id=kb_article_view&sysparm_article=KB0052499

Also, feel free to access the database to check whether any users have been quietly created.

Also review all the themes and plugins you use to remove any that are unnecessary and/or not official, for example. A thorough overall data check of the hosting will also be required.

Astérix

What I did:

  • completely deleted all files via FTP
  • deleted the database at OVH and killed the DB
  • changed the FTP passwords
  • created a new DB with a new password
  • set chmod 705 on the root
  • created an "asf" folder at the root to contain the site
  • copied kickstart.php and the .jpa file for backup

Then I try to go to the address asf.duvoye.fr/kickstart.php and I get an HTTP 500 error.

The folder only contains these two files, no .htaccess file.

It looks like the thing is still in maintenance…; the time it takes for the changes to take effect.

Isn't it a bit dangerous to give that?

Hello and thank you:

  • the hosting has been cleaned of everything it contained (delete files)
  • the FTP password has been changed
  • the database is brand new after deleting the previous one
  • I haven't changed the DNS
  • the files are set to mode 705

In the general information of the hosting service, it states:

  • service status: disabled

How to reactivate the service?

Hello @DenisD19

On: https://asf.duvoye.fr I have:

Is this your site?

Everything looks smooth to me.

Apparently it was just a matter of aptitude ........

yes, one of my sites

This one only contains photos, old photos hihihihih

Can we continue here or should we change the subject?

I had a VPS. And I want to terminate it........ and as a result I had many redirects and sub‑domains... Some appeared automatically.
I would like to clean that up.... Can you help me?

other sites:

What are the other redirects for?

On some sites there is a contact page: webmaster@duvoye.fr that worked with the VPS. I want it to work now with the web‑hosting....... but I can’t configure it: response: your mail plan is already used elsewhere ...; so I need to remove everything related to the VPS that I’m no longer using

I don’t even know what all this is for......;

Likewise I have www.asf.duvoye.fr and asf.duvoye.fr.......is it worth keeping www.duvoye.fr and duvoye.fr....
Lots of questions

Good evening @DenisD19

Yes, you need to keep the www.xxx

For example, for www.asf.duvoye.fr, point in the multisite to the same folder as asf.duvoye.fr, i.e. the folder: www/asf

To fully understand the mechanism and the redirects of domains and sub‑domains, I suggest you read the first 10 paragraphs of my guide carefully.


Here is a short guide I wrote that could give you clarification for a complete and clean installation of your site.

Guide – Understanding the relationship Domain > DNS Zone > Hosting > Site folder

See --> CMS – WordPress – Installation Guide at OVH

Read and verify your situation by following carefully the paragraphs: A to J valid for all CMSs

Feel free to give me feedback: positive or negative.

Thanks a lot, Gaston??? Your guide is clear.

But what should I do with all the other redirects associated with my domain duvoye.fr?
Things like MX, CNAME, etc., I have three pages....... it seems like a lot for these simple four sites which, if I understand correctly, would only need eight A and AAAA entries for IPv4 and IPv6:

What should I do with the others?

The others don’t appear in 'multisite', but in the DNS zones of my domain....

Similarly, I just saw that the email address webmaster@duvoye.fr is in the 'Email' tab and not in 'multisite'... maybe that’s why I can’t set it up in multisite......

Removing all these redirects in the domain won’t it also remove them from multisite?

Then, since I’m shutting down the VPS, I suppose I can also delete everything that points to this VPS....
Do the different lines also take time to disappear?