1 of 2
1
PMachine Pro hacked - time to install EE
Posted: 24 August 2008 09:09 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  40
Joined  08-05-2002

Hi

I have been using PMachine Pro for many years, but purchased EE some time ago intending to change, but never got around to it. However, 5 days ago PMachine was hacked and most of my data was removed from the database as a result. Fortunately I have a complete backup of all data and my server can do a restore when I ask for it. This seems like the ideal time to install my copy of EE and begin using it. But I need to find out some things first.

The hacker has gained access to the PMachine control panel and deleted all members, weblog entries etc. The first thing i tried to do was to go into control panel and change my password, but now I find that I cannot type into the change password/confirm password fields. I need to find out what procedure I should follow to install EE and then migrate the data from my old weblogs over to it securely

I would appreciate your help

cheers

 Signature 

http://royby.com

Profile
 
 
Posted: 24 August 2008 09:43 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32861
Joined  05-14-2004

Greetings, royby - sorry to hear about your difficulties.  Have you alerted your host to the hack, and in what way have you confirmed that the hack came through pMachine?

Now, to get you moved over to ExpressionEngine: first - what version of pMachine were you running?  You can find migration instructions here.

Since you have a backup, you’ll need to get that online to perform the migration.

 Signature 
Profile
MSG
 
 
Posted: 24 August 2008 09:59 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  40
Joined  08-05-2002

Hi Lisa

thanks for your quick response.

I have notified my host. I am not sure yet whether the hack came through PMachine but it seems likely because nothing else is touched. However, I have asked the host to check things out, as they no doubt will want to anyway.

I was using PMachine Pro 2.4 (the last version before it was discontinued??)

In addition to my previous information about the hack, I tried to access the change password page but that has been hacked also, so I cannot change the password.

I’ve had a quick look at the information on migrating the data. If I ask my host to restore the PMachine sql files once I have installed EE, will I be able to migrate from those OK?

cheers

 Signature 

http://royby.com

Profile
 
 
Posted: 24 August 2008 10:02 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32861
Joined  05-14-2004

You certainly should be able to, assuming that they are working backups.  I’d recommend taking a backup of the database in this state; and not taking action until your host has investigated, of course. 

You could certainly get the backups working on a local development installation and test out the migration process that way. =)

 Signature 
Profile
MSG
 
 
Posted: 24 August 2008 10:31 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  40
Joined  08-05-2002

thanks Lisa

yes the host is keeping a back up of the database intact until i’m ready to use it, and I also have a copy of it on a hard drive at my location.

I think I will just go ahead and take PMachine off the host server, install EE, try the migration and keep my fingers crossed.

cheers

 Signature 

http://royby.com

Profile
 
 
Posted: 24 August 2008 10:36 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32861
Joined  05-14-2004

You’ll need the database there for the migration, royby.  The migration utility asks you to fill in the database connection information.

 Signature 
Profile
MSG
 
 
Posted: 24 August 2008 10:43 PM   [ Ignore ]   [ # 6 ]  
Grad Student
Rank
Total Posts:  40
Joined  08-05-2002

yep, I see that. the database is still there, but some of the data was removed by the hacker via PMachine control panel. So i figure if I get the host to restore that database to how it was before the hack I should be OK??

I’m hoping it will be that simple anyway.

But are things ever simple? grin

cheers

 Signature 

http://royby.com

Profile
 
 
Posted: 24 August 2008 10:45 PM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32861
Joined  05-14-2004

In theory, yes, you should be ok with a restored database.  You can always test it on a local development machine so that you understand the process first. =)

 Signature 
Profile
MSG
 
 
Posted: 24 August 2008 10:52 PM   [ Ignore ]   [ # 8 ]  
Grad Student
Rank
Total Posts:  40
Joined  08-05-2002

mmm not a bad idea maybe I will do that.

thanks very much for your help

 Signature 

http://royby.com

Profile
 
 
Posted: 24 August 2008 10:53 PM   [ Ignore ]   [ # 9 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32861
Joined  05-14-2004

Keep us updated on your progress, and what the host says, please? =)  Thank you!

 Signature 
Profile
MSG
 
 
Posted: 24 August 2008 11:01 PM   [ Ignore ]   [ # 10 ]  
Grad Student
Rank
Total Posts:  40
Joined  08-05-2002

yes i will do that

just one other thing. Can you tell me where PMachine would store uploaded images? and would all weblog entries be stored in the database under pm_weblog regardless of which weblog they were uploaded to?

cheers

 Signature 

http://royby.com

Profile
 
 
Posted: 25 August 2008 02:42 AM   [ Ignore ]   [ # 11 ]  
Grad Student
Rank
Total Posts:  40
Joined  08-05-2002

the installation went smoothly, no problems, up and running but have not tried to migrate PMachine files as yet.

the host, when asked “how will we know for sure that the hack was through PMachine?” said
“Your installation of pmachine is a local instance - it’s not installed server-wide.”

direct but not really answering my question too well.

However, evidence suggests that the host is correct. Nothing else on the site has been touched and once in control panel the hacker was able to alter templates, delete members and entries etc. One question though, would the hacker be able to make it impossible for me to change my password through the control panel? Currently I am unable to type into the password fields.

next question, how does a hacker discover a password to hack in and does that mean the EE control panel will be at similar risk?

cheers

 Signature 

http://royby.com

Profile
 
 
Posted: 25 August 2008 09:01 AM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23522
Joined  05-20-2002

It almost sounds like the field is set to read only.  If you do a ‘reveal code’ on the login page- can you paste back the full ‘<form>’ tag?  Which seems like a massively weird hack to make.  Nobody else has had login access on purpose, have they? 

The EE cp shouldn’t be at risk in general.  But it depends a bit on how they gained access.  If it was through the server- and the server is still vulnerable- it could happen again.  Or a simple password could be guessed.  I would most definitely change all passwords upon moving to EE- ftp, database, everything.  Might want to use a password generator to make sure the passwords are tricky.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 25 August 2008 09:15 AM   [ Ignore ]   [ # 13 ]  
Grad Student
Rank
Total Posts:  40
Joined  08-05-2002

Hi Robin

I just had a look at the source code of the profile page and the maximum length on password and confirm password has been set to “0”. Can the code on this page be accessed and changed from the control panel?

cheers

 Signature 

http://royby.com

Profile
 
 
Posted: 25 August 2008 09:19 AM   [ Ignore ]   [ # 14 ]  
Grad Student
Rank
Total Posts:  40
Joined  08-05-2002

hi again

ok i see where this has been done, very simple really, in the general setup

cheers

 Signature 

http://royby.com

Profile
 
 
Posted: 25 August 2008 09:24 AM   [ Ignore ]   [ # 15 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23522
Joined  05-20-2002

wink  Glad you spotted it.  It’s been a long time since I used pmp.  Will likely have to go code diving to ferret things out.

Let us know how it goes.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 25 August 2008 09:32 AM   [ Ignore ]   [ # 16 ]  
Grad Student
Rank
Total Posts:  40
Joined  08-05-2002

everything the hacker has done has been through the control panel, so it just begs the question how did they know the password? also, it seems clear that whoever did this is familiar with pmp.

anyway, back to the drawing board, i didn’t really need the learning curve of EE right now

cheers

 Signature 

http://royby.com

Profile
 
 
Posted: 25 August 2008 10:17 AM   [ Ignore ]   [ # 17 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15828
Joined  06-03-2002

royby, if the hacker gained file system access via another script on the server via directory traversal, he could have read your database config file, logged into the database, changed the password, done his thing, and either set the password back or left it.  It’s unclear to me whether when you logged into your CP if you were already logged in with cookies or if you actually typed in your user and password.  Passwords are stored as encrypted hashes in the database, so if he gained access to the database he could either replace it with a hashed value of his own desired password, or if you are using a simple dictionary word based password, there are brute force scripts which could through trial and error stumble upon your password by comparing the hash values.

As a side note, I’d probably recommend change hosts, as unless you’re leaving out details, they don’t seem to be taking this very seriously, and the most likely scenario is a directory traversal based attack on the shared server.  They should be able to tell you how this attack was carried out, even if just to say that a different IP address or range than what you normally use connected to your site’s control panel and/or database.  They would have logged, afterall, every HTTP request to your control panel.

 Signature 
Profile
MSG
 
 
Posted: 25 August 2008 05:42 PM   [ Ignore ]   [ # 18 ]  
Grad Student
Rank
Total Posts:  40
Joined  08-05-2002

Hi Derek

I was already logged in with cookies. the hacker did not change the password and I think that’s because they wanted me to be able to gain access so I could read the small messages left for me. Someone in need of recognition I guess.

re the hosts, yes i will speak with them more about this today and consider moving

thanks for you input and advice

cheers

 Signature 

http://royby.com

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64912 Total Logged-in Users: 24
Total Topics: 81864 Total Anonymous Users: 16
Total Replies: 440101 Total Guests: 181
Total Posts: 521965    
Members ( View Memberlist )
Newest Members:  bjmohrAqua193Bios Elementmjpoteetguimogranwelshmrcfthenetmonkeybenekwhobutsb