Sunday, September 15, 2013

Hack WordPress site with SQL Injection My 1st Tutorial

# Dork 1 (config.php)

# Dork 2 (playlist.php)

# Dork 3 (General):

When you found your site you need to find admin email and username.
I will be using this site for example:

When i add ‘ text disappears so it is vulnerable.

NOTE: I will not demonstrate how to SQL inject.

Now we need admin username and email.
We need to inject: UNION SELECT 1,2,3,group_concat(user_login,0x3a,user_email,0x3b),5,6,7,8,9,10,11 FROM wp_users--

Now we have 2 users.

We pick one and copy his email.
Go to the login page of the site.
It is usually here:

And press “Lost your password?“

Now you enter either username or email.
We can enter both so it doesnt matter.
I entered email.

Now when you got:

“Check your e-mail for the confirmation link.”

It means that reset key is successfully sent.
Now we need to get the activation key.

Go back to the syntax you used for extracting email and username and do this: UNION SELECT 1,2,3,group_concat(user_login,0x3a,user_activation_key,0x3b),5,6,7,8,9,10,11 FROM wp_users--

Now we just need to reset it.


NOTE: Replace key= & login=

So my link will be:

Enter new password:

No comments:

Post a Comment