|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 81
Members: 0
Total: 81
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
phpbb <= 2.0.14 bbcode.php vulnerable |
|
Posted: Sun May 08, 2005 11:01 am |
|
|
subzero |
Valuable expert |
|
|
Joined: Mar 16, 2005 |
Posts: 42 |
|
|
|
|
|
|
|
bbcode.php
phpbb.com have released a new version of phpbb.
As you can see bbcode.php (<=2.0.14) dont properly sanitize $text
vulnerable code was found by staff from castlecop. Exploit will be publish 5 days later. If you can wait for more, do it yourself
Code: | function bbencode_second_pass($text, $uid)
{
global $lang, $bbcode_tpl;
[b]$text = preg_replace('#(script|about|applet|activex|chrome):#is', "\\1:", $text); //fixed added for phpbb 2.0.15[/b] |
From the patch provided from phpbb 2.0.15 , you can figure out how to manipute any phpbb forum.
(edited version numbers as there were typos -shai-tan) |
|
|
|
|
|
|
|
|
Posted: Sun May 08, 2005 11:51 am |
|
|
shai-tan |
Valuable expert |
|
|
Joined: Feb 22, 2005 |
Posts: 477 |
|
|
|
|
|
|
|
Im a little busy to work it out. The sploit will be long released before I would work it so Ill get it when its released. |
|
_________________ Shai-tan
?In short: just say NO TO DRUGS, and maybe you won?t end up like the Hurd people.? -- Linus Torvalds |
|
|
|
Posted: Sun May 08, 2005 9:43 pm |
|
|
zer0-c00l |
Advanced user |
|
|
Joined: Jun 25, 2004 |
Posts: 72 |
Location: BRAZIL! |
|
|
|
|
|
|
anyone got a exploit for it? |
|
|
|
|
Posted: Mon May 09, 2005 9:18 am |
|
|
shai-tan |
Valuable expert |
|
|
Joined: Feb 22, 2005 |
Posts: 477 |
|
|
|
|
|
|
|
Its only I four day wait.
Or work it out your self. There are enough hints on the net Ive seen. |
|
_________________ Shai-tan
?In short: just say NO TO DRUGS, and maybe you won?t end up like the Hurd people.? -- Linus Torvalds |
|
|
|
|
|
|
|
Posted: Mon May 09, 2005 1:10 pm |
|
|
subzero |
Valuable expert |
|
|
Joined: Mar 16, 2005 |
Posts: 42 |
|
|
|
|
|
|
|
Patch for code 2.0.15
bold - fixed for 2.0.15
----------------------------------
// [img]image_url_here[/img] code..
// This one gets first-passed..
$patterns[] = "#\[img:$uid\]([^?].*?)\[/img:$uid\]#i";
-----------------------------------
// phpBB code..
$patterns[] = "#\[url=([\w]+?://[^ \"\n\r\t<]*?)\]([^?].*?)\[/url\]#i";
$replacements[] = $bbcode_tpl['url3'];
// phpBB code.. (no xxxx:// prefix).
$patterns[] = "#\[url=((www|ftp)\.[^ \"\n\r\t<]*?)\]([^?].*?)\[/url\]#i";
------------------------------------------
and its has connection to function make_clickable($text)
version 2.0.5 have added code to sanitize those script|about|applet|activex|chrome.
its mean that we can embed those text into [img] [/img] code and fooling user to click them. |
|
|
|
|
|
|
|
|
Posted: Mon May 09, 2005 4:48 pm |
|
|
y3dips |
Valuable expert |
|
|
Joined: Feb 25, 2005 |
Posts: 281 |
Location: Indonesia |
|
|
|
|
|
|
however , i think i agree with subzero
how about disabling BBcode ? |
|
_________________ IO::y3dips->new(http://clog.ammar.web.id); |
|
|
|
Posted: Mon May 09, 2005 5:54 pm |
|
|
shai-tan |
Valuable expert |
|
|
Joined: Feb 22, 2005 |
Posts: 477 |
|
|
|
|
|
|
|
You could but a lot of sites need bbcode like book fan sites. They sometimes only reckconise people from there bbcoded sigs. And a lot of sites use the [img] tags a lot. It wouldnt really be far on the users from a end user point of veiw. But a security point of veiw would be to just turn it of or update your forums. |
|
_________________ Shai-tan
?In short: just say NO TO DRUGS, and maybe you won?t end up like the Hurd people.? -- Linus Torvalds |
|
|
|
Posted: Mon May 16, 2005 12:06 pm |
|
|
KingOfSka |
Advanced user |
|
|
Joined: Mar 13, 2005 |
Posts: 61 |
|
|
|
|
|
|
|
wait please
as usual i didn't understood all...
this bug could lead to XSS if i'm right, and it's caused by the fact that the script doesn't check if in the url are present words like script,applet and so on.. |
|
|
|
|
Posted: Mon May 16, 2005 12:06 pm |
|
|
KingOfSka |
Advanced user |
|
|
Joined: Mar 13, 2005 |
Posts: 61 |
|
|
|
|
|
|
|
wait please
as usual i didn't understood all...
this bug could lead to XSS if i'm right, and it's caused by the fact that the script doesn't check if in the url are present words like script,applet and so on..
the only thing i can't understand is where to insert that script code.. i'm trying to understand by learning php reg exp.. |
|
|
|
|
|
Re |
|
Posted: Mon Jun 20, 2005 10:26 am |
|
|
mister |
Beginner |
|
|
Joined: Jun 02, 2005 |
Posts: 4 |
|
|
|
|
|
|
|
Always None on That ? |
|
|
|
|
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
|
|
|
|
|
|