Waraxe IT Security Portal
Login or Register
November 15, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 71
Members: 0
Total: 71
Full disclosure
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PhpBB -> phpbb <= 2.0.14 bbcode.php vulnerable
Post new topicReply to topic View previous topic :: View next topic
phpbb <= 2.0.14 bbcode.php vulnerable
PostPosted: Sun May 08, 2005 11:01 am Reply with quote
subzero
Valuable expert
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. Wink


(edited version numbers as there were typos -shai-tan)
View user's profile Send private message Visit poster's website
PostPosted: Sun May 08, 2005 11:51 am Reply with quote
shai-tan
Valuable expert
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
View user's profile Send private message
PostPosted: Sun May 08, 2005 9:43 pm Reply with quote
zer0-c00l
Advanced user
Advanced user
Joined: Jun 25, 2004
Posts: 72
Location: BRAZIL!




anyone got a exploit for it?
View user's profile Send private message
PostPosted: Mon May 09, 2005 9:18 am Reply with quote
shai-tan
Valuable expert
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
View user's profile Send private message
PostPosted: Mon May 09, 2005 1:10 pm Reply with quote
subzero
Valuable expert
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.
View user's profile Send private message Visit poster's website
PostPosted: Mon May 09, 2005 4:48 pm Reply with quote
y3dips
Valuable expert
Valuable expert
Joined: Feb 25, 2005
Posts: 281
Location: Indonesia




however , i think i agree with subzero Wink

how about disabling BBcode ?

_________________
IO::y3dips->new(http://clog.ammar.web.id);
View user's profile Send private message Visit poster's website Yahoo Messenger
PostPosted: Mon May 09, 2005 5:54 pm Reply with quote
shai-tan
Valuable expert
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
View user's profile Send private message
PostPosted: Mon May 16, 2005 12:06 pm Reply with quote
KingOfSka
Advanced user
Advanced user
Joined: Mar 13, 2005
Posts: 61




wait please Smile
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..
View user's profile Send private message Visit poster's website
PostPosted: Mon May 16, 2005 12:06 pm Reply with quote
KingOfSka
Advanced user
Advanced user
Joined: Mar 13, 2005
Posts: 61




wait please Smile
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..
View user's profile Send private message Visit poster's website
Re
PostPosted: Mon Jun 20, 2005 10:26 am Reply with quote
mister
Beginner
Beginner
Joined: Jun 02, 2005
Posts: 4




Always None on That ? Laughing
View user's profile Send private message
phpbb <= 2.0.14 bbcode.php vulnerable
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

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.036 Seconds