Critical phpBB Security Fixes for users of 8.2c
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexSecurity
Author Message
Trevor
Developer


Joined: Apr 19, 2004
Posts: 2170
Location: New York

PostPost subject: Critical phpBB Security Fixes for users of 8.2c
Posted: Sun Feb 27, 2005 11:30 pm
Reply with quote

Hi all,

The phpBB Group has just released phpBB 2.0.13, which addresses two vulnerabilities reported after the very recent release of 2.0.12. One issue is very serious, as it allows anyone to gain administrative rights for your forums. The other is a full path disclosure. Again, these patches apply only to users of CPG-Nuke 8.2c.

Open includes/phpBB/sessions.php.

Find on line 86:
PHP:
if( $sessiondata['autologinid'] == $auto_login_key )

Replace with:
PHP:
if( $sessiondata['autologinid'] === $auto_login_key )



Open modules/Forums/viewtopic.php.

Find on line 1225:
PHP:
$message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace('#\b(" . $highlight_match . ")\b#i', '<span style=\"color:#" . $theme['fontcolor3'] . "\"><b>\\\\1</b></span>', '\\0')", '>' . $message . '<'), 1, -1));

Replace with:
PHP:
$message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace('#\b(" . $highlight_match . ")\b#i', '<span style=\"color:#" . $theme['fontcolor3'] . "\"><b>\\\\1</b></span>', '\\0')", '>' . $message . '<'), 1, -1));

You can also download the patched files.

Thanks.


Trevor's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 1.3.34 / 4.1.18 / 4.4.2 / CVS


Last edited by Trevor on Mon Mar 28, 2005 2:15 am; edited 1 time in total
Back to top
View user's profile
Yoshi
Nice poster


Joined: Dec 30, 2004
Posts: 122

PostPost subject: Re: Critical phpBB Security Fixes for users of 8.2c
Posted: Wed Mar 02, 2005 3:31 am
Reply with quote

Does this go for the same for 8.2b users?

Yoshi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
XP/Dragonfly 9.5 all updated apache and mysql
Back to top
View user's profile Visit poster's website
Jeruvy
Security Team


Joined: Apr 23, 2004
Posts: 1433
Location: Canada

PostPost subject: Re: Critical phpBB Security Fixes for users of 8.2c
Posted: Thu Mar 03, 2005 1:47 am
Reply with quote

You should apply 8.2c immediately. These updates are defined as critical ONLY for CPGnuke 8.2b.

They are not widespread changes only fixes and security updates so any mod's or themes you are using will not be affected by these patches.

HTH,

_________________
J.
j e r u v y a t y a h o o d o t c o m

Need help? Look here: www.dragonflycms.org/W...d=112.html
Need to chat? Look for me on irc.freenode.net

Jeruvy's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu7.10/Debian3.1 - 2.2.3/1.3.37 - 5.0.38/4.0.27 - 5.2.1/4.4.7 - CVS/9.1.2}
Back to top
View user's profile ICQ Number Yahoo Messenger
Jeruvy
Security Team


Joined: Apr 23, 2004
Posts: 1433
Location: Canada

PostPost subject: Re: Critical phpBB Security Fixes for users of 8.2c
Posted: Fri Mar 04, 2005 2:42 pm
Reply with quote

Also note: this patch has been exploited also.

These are fixes suggested, but I have not tested.

In usercp_register.php

PHP:

I will let the devs sort this one out. But it does look like a real fix over the last *cough* patch *cough* which really didn't do anything IMHO.

_________________
J.
j e r u v y a t y a h o o d o t c o m

Need help? Look here: www.dragonflycms.org/W...d=112.html
Need to chat? Look for me on irc.freenode.net

Jeruvy's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu7.10/Debian3.1 - 2.2.3/1.3.37 - 5.0.38/4.0.27 - 5.2.1/4.4.7 - CVS/9.1.2}
Back to top
View user's profile ICQ Number Yahoo Messenger
bist
Newbie


Joined: Aug 23, 2004
Posts: 14

PostPost subject: Re: Critical phpBB Security Fixes for users of 8.2c
Posted: Wed Mar 09, 2005 2:19 am
Reply with quote

so if I have 8.2b i should unpack 8.2c and copy it over my installation?

just wanna be sure


bist's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache2.0
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3675
Location: Melbourne, AU

PostPost subject: Re: Critical phpBB Security Fixes for users of 8.2c
Posted: Wed Mar 09, 2005 7:39 am
Reply with quote

Personally I cannot find uesrcp_register.php ...inside which directory I will find it.
_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
djdevon3
Gold Supporter


Joined: Aug 05, 2004
Posts: 4365

PostPost subject: Re: Critical phpBB Security Fixes for users of 8.2c
Posted: Thu Mar 10, 2005 12:38 am
Reply with quote

usercp_register.php

umm where is that file located?


djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33/4.4/4.3.11
Back to top
View user's profile Visit poster's website
xfsunoles
XHTML Specialist


Joined: Apr 30, 2004
Posts: 2502
Location: Melbourne, Florida

PostPost subject: Re: Critical phpBB Security Fixes for users of 8.2c
Posted: Thu Mar 10, 2005 4:23 am
Reply with quote

i believe it located in includes/phpBB folder.
_________________

Firefox is my Favorite Browser

xfsunoles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS
Back to top
View user's profile Visit poster's website AIM Address MSN Messenger Yahoo Messenger
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3675
Location: Melbourne, AU

PostPost subject: Re: Critical phpBB Security Fixes for users of 8.2c
Posted: Thu Mar 10, 2005 4:33 am
Reply with quote

its does not exist becouse user registration it is not longer done by the forum module but by my account module, something like coppermine registration that is not longer done by coppermine but, again, by my account. so we do not need this patch!
_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
djdevon3
Gold Supporter


Joined: Aug 05, 2004
Posts: 4365

PostPost subject: Re: Critical phpBB Security Fixes for users of 8.2c
Posted: Fri Mar 11, 2005 12:10 am
Reply with quote

That's what I thought. The file does not exist for cpg. Stand-alone only I believe. That doesn't mean that 8.x users shouldn't patch using the code that is applicable. Only the patch dealing with the usercp_register.php doesn't apply to us.

djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33/4.4/4.3.11
Back to top
View user's profile Visit poster's website
DaveTomneyUK
Gold Supporter


Joined: Aug 14, 2004
Posts: 215
Location: UK, England

PostPost subject: Re: Critical phpBB Security Fixes for users of 8.2c
Posted: Mon Mar 21, 2005 3:29 pm
Reply with quote

Does the top fix that Trevor posted need adding to CPG-Dragonfly 9.0.2.0 Mainly the viewtopic.php file?

DaveTomneyUK's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / Apache2.2.8 / MySQL5.0.45 / PHP5.2.6 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
Trevor
Developer


Joined: Apr 19, 2004
Posts: 2170
Location: New York

PostPost subject: Re: Critical phpBB Security Fixes for users of 8.2c
Posted: Tue Mar 22, 2005 1:29 am
Reply with quote

No

Trevor's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 1.3.34 / 4.1.18 / 4.4.2 / CVS
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexSecurity All times are GMT
Page 1 of 1


Jump to:  
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
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.4523 seconds with 19 DB Queries in 0.0697 seconds
Memory Usage: 2.99 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy