icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » PHPBB Remote Code Execution Vulnerability, affects 2.0.17 and below

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old December 25th, 2005, 1:11 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2004
5 posts
Gave thanks: 0
Thanked 0 times
PHPBB Remote Code Execution Vulnerability, affects 2.0.17 and below

I tried to post this to Critical Application Upgrades, but it seems that either something went wrong or I do not have the appropriate permissions. Anyway:

In case you don't know already, a new phpbb vulnerability has been discovered. Apparently there is a worm out there that takes advantage of this vulnerability, and yesterday a working exploit was published. All versions prior to 2.0.18 are affected.

Read more from phpbb.com: http://www.phpbb.com/phpBB/viewtopic.php?f=14&t=348139

More about the vulnerability/ies: http://www.hardened-php.net/advisory_172005.75.html

Quote:
[1] Within usercp_register.php the variable 'error_msg' is not
properly initialised and can therefore be used to inject
arbitrary HTML code

[2] Within login.php the variable 'forward_page' is not properly
initialised and can be used to inject arbitrary HTML code

[3] Within search.php the variable 'list_cat' is not properly
initialised and can be used to inject arbitrary HTML

[4] Within usercp_register.php the variable 'signature_bbcode_uid'
is not properly initialised and can be used for SQL injection
of arbitrary 'field=xxx' statements into queries operating
on the user table, when magic_quotes_gpc is turned off.

[5] The same variable [4] can be used to inject f.e. the 'e'
modifier into the first parameter of a preg_replace()
statement, which means, that the second parameter is
evaluated as PHP code. Because the second parameter is
entirely filled with the user supplied signature, it is
possible to execute any PHP code. This can be exploited,
no matter if magic_quotes_gpc is turned on or off
, just
2 different code paths need to be triggered.
Sorccu is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 25th, 2005, 1:43 PM   #2 (permalink)
is scientific.
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,117 posts
Gave thanks: 8
Thanked 34 times
http://www.surmunity.com/showpost.ph...44&postcount=4
__________________
Quote:
Originally Posted by removed View Post
Internet Explorer rules.
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 25th, 2005, 1:51 PM   #3 (permalink)
Marketing Maven
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
24,749 posts
Gave thanks: 946
Thanked 806 times
I am speechless.
Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 25th, 2005, 1:53 PM   #4 (permalink)
is scientific.
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,117 posts
Gave thanks: 8
Thanked 34 times
I just moved everything around in there, made his post visible, stuckied it, unstuckied yours, etc.
__________________
Quote:
Originally Posted by removed View Post
Internet Explorer rules.
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 26th, 2005, 8:49 AM   #5 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2004
5 posts
Gave thanks: 0
Thanked 0 times
You are so not going to like this, but I just noticed that I forgot to mention that the exploit only affects systems running PHP5 (<= 5.0.5). This requirement was mentioned in both the exploit and the advisory, but still, I should've made it clear. I'm very sorry for this.

However, WebDev customers might still be in danger (I do not know the exact version they're using), and dedicated server owners who are using a vulnerable version should be warned.

I would edit the Critical Application Upgrades thread to include "*** IF YOUR SERVER IS RUNNING PHP5 ***", but I can't.

My apologies. But hey, atleast the panic is over!
Sorccu is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 26th, 2005, 10:02 AM   #6 (permalink)
is scientific.
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,117 posts
Gave thanks: 8
Thanked 34 times
Eh, don't worry about it. As long as it keeps people updated, I'm good with it.
__________________
Quote:
Originally Posted by removed View Post
Internet Explorer rules.
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On