|
|
|
|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 73
Members: 0
Total: 73
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
IPB 2.x Error |
|
Posted: Tue Aug 23, 2005 9:10 pm |
|
|
kyth |
Beginner |
|
|
Joined: Aug 23, 2005 |
Posts: 2 |
|
|
|
|
|
|
|
Going to start off by saying i'm almost 90% sure this is not exploitable.. so if you're a script kiddie looking for a freebie.. not in this post.
The only reason i'm bringing this bug up to the public is because it's a very odd bug and I think people could learn from it - also i'm rather confused by it's behavior.
In the search of IPB 2.x you have a variable called lastdate. This is used to put in html at the form at the very bottom right to put 'selected' at the end of the forum id you specify. This way it will know what forum to have selected.
The code is pretty simple and their first mistake was putting an unsanitized user input variable inside regexp.
Now.. I thought it was unsanitized at first, but after later inspection and messing with it some, it appears two spaces would make it so you cannot mess with it at all.
Code: | if ( $_GET['lastdate'] )
{
$lastdate = preg_replace( "#(value=[\"']{".$_GET['lastdate']."}[\"'])#i", "\\1 selected='selected'", $lastdate );
echo $lastdate;
} |
If you look at this part:
Code: | .$_GET['lastdate']. |
If you space out the two periods, it is completely clean and you will not be able to mess with it. (I think! After spacing them out and trying again, it would no longer give me the errors and not mess with the page)
If you put in | or || into the lastdate variable, the whole page will go whack because you're modifying most of the pages html and breaking a lot of it so some of it will appear.
I thought this may lead to an xss whole, but I don't believe so.
If you do something as such:
&lastdate=){0}(test)|(ljsfdlkj
It will replace all instances of "<b>test</b>" with selected='selected'. |
|
|
|
|
|
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
|
|
|
|
|
|
|