Waraxe IT Security Portal
Login or Register
June 17, 2025
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: 63
Members: 0
Total: 63
Full disclosure
SEC Consult SA-20250604-0 :: Local Privilege Escalation and Default Credentials in INDAMED - MEDICAL OFFICE (Medical practice management) Demo version
Full Disclosure: CVE-2025-31200 & CVE-2025-31201 – 0-Click iMessage Chain ? Secure Enclave Key Theft, Wormable RCE, Crypto Theft
Defense in depth -- the Microsoft way (part 89): user grouppolicies don't deserve tamper protection
CVE-2025-45542: Time-Based Blind SQL Injection in CloudClassroom PHP Project v1.0
ERPNext v15.53.1 Stored XSS in bio Field Allows Arbitrary Script Execution in Profile Page
ERPNext v15.53.1 Stored XSS in user_image Field Allows Script Execution via Injected Image Path
Local information disclosure in apport and systemd-coredump
Stored XSS via File Upload - adaptcmsv3.0.3
IDOR "Change Password" Functionality - adaptcmsv3.0.3
Stored XSS "Send Message" Functionality - adaptcmsv3.0.3
Authenticated File Upload to RCE - adaptcmsv3.0.3
Stored XSS in "Description" Functionality - cubecartv6.5.9
Multiple Vulnerabilities in SAP GuiXT Scripting
CVE-2024-47081: Netrc credential leak in PSF requests library
Exploit CVE-2019-9978: Remote Code Execution in Social Warfare WordPress Plugin (<= 3.5.2)
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



PCWizardHub - Helping you fix, build, and optimize your PC life
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.025 Seconds