EH-Net

Resources => Tutorials => Topic started by: Attack-Secure on January 05, 2012, 02:47:18 PM



Title: Targeting and Hacking a WordPress Site (Ninja-Sec.com - Infosec Resources )
Post by: Attack-Secure on January 05, 2012, 02:47:18 PM
hi

please read our new article

http://resources.infosecinstitute.com/hacking-a-wordpress-site/

Enjoy :)


Title: Re: Targeting and Hacking a WordPress Site (Ninja-Sec.com - Infosec Resources )
Post by: ChrisLaz on January 06, 2012, 03:11:58 AM
Very interesting approach. Thank you for sharing.


Title: Re: Targeting and Hacking a WordPress Site (Ninja-Sec.com - Infosec Resources )
Post by: j0rDy on January 06, 2012, 03:58:08 AM
nice hack! I always enjoy reading hacks like this, there fun and still very informative.


Title: Re: Targeting and Hacking a WordPress Site (Ninja-Sec.com - Infosec Resources )
Post by: vp75 on January 06, 2012, 06:00:03 AM
Thanks for sharing, also reading some of the articles which interests me......


Title: Re: Targeting and Hacking a WordPress Site (Ninja-Sec.com - Infosec Resources )
Post by: MrTuxracer on January 06, 2012, 08:34:41 AM
That's the Hack-me "HackademicRTB1" provided by GhostInTheLab  :) I've posted a slightly different solution for it on my blog, but it works on this way too.

Thanks for sharing!


Title: Re: Targeting and Hacking a WordPress Site (Ninja-Sec.com - Infosec Resources )
Post by: Seen on January 06, 2012, 04:15:21 PM
Interesting, I'll have to try this against my wordpress site, thanks.


Title: Re: Targeting and Hacking a WordPress Site (Ninja-Sec.com - Infosec Resources )
Post by: SephStorm on January 07, 2012, 01:03:35 PM
Now I havent looked at the article yet, but my question is, what would be the approval for this? Would you need to contact WP or just have permission from the blog owner?


Title: Re: Targeting and Hacking a WordPress Site (Ninja-Sec.com - Infosec Resources )
Post by: hayabusa on January 07, 2012, 01:24:58 PM
@ SephStorm - you can host your own Wordpress site, so pentesting an individual's site wouldn't require any permission from Wordpress, just the owner of the site and / or the server owner / provider, if the site is hosted.


Title: Re: Targeting and Hacking a WordPress Site (Ninja-Sec.com - Infosec Resources )
Post by: millwalll on January 08, 2012, 09:27:55 AM
Yeah just download and maybe use WAMP kit


Title: Re: Targeting and Hacking a WordPress Site (Ninja-Sec.com - Infosec Resources )
Post by: MaXe on January 08, 2012, 08:44:47 PM
Some constructive feedback:  ;D
* Hacking other sites on the same server and / or the Registrar is illegal unless you have explicit permission to hack any of these.

* The: "nmap -O" command will only make a "best guess" on what the target is running, and this highly depends on 1) The NMAP version, 2) The open ports, 3) Services

* Example: scanme.nmap.org can be anything from Windows to Linux, depending on if you use NMAP or Xprobe2, and of course also which version of NMAP. (This is just an example out of context.)


* About the hash(es) that were cracked, here's some notes.

All of these three hashes, is "admin" in cleartext:
$P$BknpJUI2S.F6oD9bsAjRgZKBrQ2ct60
$P$BOOqZK9L94G3iXsjBlWLO5RbMSsLqW/
$P$Bc/LbIyetpQ1O21TcSJIq7zHr22Eiz.

(Note: Wordpress version 3.3.1)

These three hashes are also "admin" in cleartext:
$P$BBZNzh4ejzux/Q1XJeYa4bMoXVbE0o1
$P$BHbYY6iira4PZGTbnQGj52DPaqfn3t0
$P$BXqXvkYvNkAM1b.N3qZXY6K5Y/mkj90

(Note: Wordpress version 2.8.4)

In case you wonder, $P$ comes from class_phpass.php:
$output = '$P$'; in the function gensalt_private($input); function.


* When an attacker comes across a kernel version like this: 2.6.31.5-127.fc12.1686, the last number (127) is often the distribution specific patch number. (Meaning security patches could've been applied nullifying known vulnerabilities for 2.6.31.5)


No offense intended of course, there's just a few loose ends  ;)


Title: Re: Targeting and Hacking a WordPress Site (Ninja-Sec.com - Infosec Resources )
Post by: SephStorm on January 09, 2012, 12:21:35 AM
learning is occurring. Wait a minute... is ninja-sec affiliated with ISI? These guys are getting around...

OKAY, the answer is on the resources page:
"Mohamed Ramadan is a researcher for InfoSec Institute. He also teaches Penetration Testing at Ninja-Sec.com."