Hacking - I think I have been hacked: Difference between revisions From Online Manual

Jump to: navigation, search
Line 10: Line 10:


* File a security report with SMF.
* File a security report with SMF.
If your forum was breached via a security weakness within SMF or an SMF mod, and not via a weakness in a non-SMF script, report it to the staff so the mod can be investigated or the hole patched. Please report Security issues [http://www.simplemachines.org/about/security.php here]
If your forum was breached via a security weakness within SMF or an SMF mod, and not via a weakness in a non-SMF script, report it to the SMF developers so the issue can be investigated and, if confirmed, patched. Please report Security issues [http://www.simplemachines.org/about/security.php here].
For security reports to be more useful, and help discovering what the problem really is, please provide your webserver logs, and/or FTP logs. Usually, you can find these logs in your host's control panel, or in a folder called /logs in your account.


* Run the [http://www.simplemachines.org/community/index.php?topic=313201.0 kb_scan.php tool].
* Run the [http://www.simplemachines.org/community/index.php?topic=313201.0 kb_scan.php tool].
Simply upload this to the forum directory (the directory where SMF is located) via FTP (File Transfer Protocol, [[How do I use FTP]]?), and run it in the browser of the user's preference. The kb_scan utility will find infected files and will also try to recover them.
Simply upload this to the forum directory (the directory where SMF is located) via FTP (File Transfer Protocol, [[How do I use FTP]]?), and run it in the browser of the user's preference. The kb_scan utility may find infected files, and in case it does, it will also try to recover them.


* [http://wiki.simplemachines.org/smf/Backup Restore a recent backup] that you know to contain unaffected files.
* [http://wiki.simplemachines.org/smf/Backup Restore a recent backup] that you know to contain unaffected files. You may want to remove first, the affected files and folders, cleaning up your installation, to be sure there isn't any trace left of the malicious files.


* Re-upload SMF files.
* Re-upload SMF files.

Revision as of 16:42, 21 February 2012

I think I have been hacked, I'm not sure, how do I check?

This is a difficult question, since it depends on the type of the hack. As an indication, you can open up a few of the Source files (the files located in ./Sources) and see if there is any trace of base64_decode. If there is, there are chances that your forum has been hacked, and there are a few utilities and steps that help users to recover their SMF installation.

Another method is to use the kb_scan.php tool. Please check the topic and follow its instructions.

I am sure I have been hacked...what do I do now?

First of all, keep calm. When the user has been hacked, there are a few simple steps he/she can perform.

  • Backup your database.

One of the most critical steps is to make backups of the whole SMF system, including the database. If the user has not yet made a backup of the database, he/she should do right now. If something goes wrong, you always have a backup at hand.

  • File a security report with SMF.

If your forum was breached via a security weakness within SMF or an SMF mod, and not via a weakness in a non-SMF script, report it to the SMF developers so the issue can be investigated and, if confirmed, patched. Please report Security issues here. For security reports to be more useful, and help discovering what the problem really is, please provide your webserver logs, and/or FTP logs. Usually, you can find these logs in your host's control panel, or in a folder called /logs in your account.

Simply upload this to the forum directory (the directory where SMF is located) via FTP (File Transfer Protocol, How do I use FTP?), and run it in the browser of the user's preference. The kb_scan utility may find infected files, and in case it does, it will also try to recover them.

  • Restore a recent backup that you know to contain unaffected files. You may want to remove first, the affected files and folders, cleaning up your installation, to be sure there isn't any trace left of the malicious files.
  • Re-upload SMF files.

Download a Large Upgrade Pack (Go to the download site) for the version of SMF that the user is running. Upload every file in the package, except the files required for upgrading (usually just Upgrade.php and a few SQL files), using FTP (How do I use FTP?, note that uploading may take a while). Now the user has fresh files and can use their forum safely again.

I have cleared my hacked SMF installation, how can I prevent this from happening again?

Using the kb_scan.php tool the user can keep their files safe. The user can also install a security modification (Go to the modification site) to enhance the forums security level. Depending on the modification's features this can be more or less active against hackers.

Notify your host so they can make sure no other servers have been affected. When you report the hack to your host, ask them to check their logs to see who might have had access to your server, and get them to check your file permissions. With some hosts incorrect file permissions can leave files open for easier hacking.



Advertisement: