jmthorpe.com was hacked. How does one fix this?
I can’t login to the manager, but I do still have control over the database. Is that where the login info is stored? Thanks!
-
☆ A M B ☆
- 24,524 Posts
Yes. It’s the manager_users table. Make sure you apply the md5 function to the new password you set.
Can we have more information on the hack? Modx version, server type, what happened?
-
MODX Staff
- 12,272 Posts
If I recall correctly, that was compromised around Nov 24th ... I’m fairly certain it’s 0921 with register_globals On.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
If you have a backup of your database ( made thru the modx manager) you can recover your password fairly easy.
Look for the statements concerning the table ’manager_users’ and cut and paste these into a new text file.
Log into phpMyAdmin provided by your webhost and import this text file into your database.
One of my modx sites was hacked too and a few days later in turned out they had hidden a fake web-banking ( halifax.co.uk something) site in my webspace. I wasn’t aware of this until I received an email from a netizen, so beware!
A thing of beauty is a joy forever ( John Keats)
Quote from: rthrash at Dec 07, 2006, 08:40 AM
Another option is to upgrade to 0.9.5 and use the (new) forgot password function on the manager login. You’ll make sure to follow the unblocking manager user tutorial too to make sure you can login: http://modxcms.com/forums/index.php/topic,275.0.html
The side benefit of this is that you can replace your manager folder with a known-clean one, and any assets folders too. Just leaves things (most likely) like your images and site folders to thoroughly review for nefarious extra files/folders.
That’s definitely the way to go. That way you’ll kill two birds with one stone. If I were you, I’d also download everything on the site to make a local backup, delete everything on the server, and then only upload the things that you know for sure are yours before doing the upgrade (there are probably things hidden in your assets folder now that do things you don’t want done).
Oh, and you should still set register_globals to OFF (search the forums and php.net for more info)...
Also, how does one create a new admin account without having access to the manager, perhaps using phpmyadmin and such? I think all of the current accounts on this manager are not going to allow me to login.