Security issue!

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    b2evolution Forum Index -> Older bugs -> Bugs in versions 0.x
View previous topic :: View next topic  
Author Message
fplanque
Core Developer
Core Developer

Joined: 13 Jun 2003
Posts: 863
Reputation: 193.4Reputation: 193.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 9

PostPosted: Thu Jan 06, 2005 13:56    Post subject: Security issue! Reply with quote

There is an SQL injection security issue in the latest releases (up to 0.9.0.11). It will be fixed in 0.9.0.12 but you are invited to take preventive action and apply one of the following patch methods:

1: manual edit:

Open the file /blogs/b2evocore/_class_itemlist.php and find the following code around lines 197-201:
Code:
      // if a post urltitle is specified, load that post
      if( !empty( $title ) )
      {
         $where .= " AND post_urltitle = '$title'";
      }


Replace these lines like this:
Code:
      // if a post urltitle is specified, load that post
      if( !empty( $title ) )
      {
         $where .= ' AND post_urltitle = '.$DB->quote($title);
      }


2: patch files

Download the following file:
http://prdownloads.sourceforge...p?download , unzip it and replace the two enclosed files in in the blogs/b2evocore folder.

This second method also fixes a small harmless bug that would cause an error when testing the SQL injection issue is fixed.

_________________
François - Rambling on... State of the Evolution - fplanque.com
b2evolution project maintainer / main developer

Follow b2evolution on twitter and become a fan of b2evolution on facebook


Last edited by fplanque on Fri Jan 07, 2005 14:00; edited 1 time in total
Back to top
View user's profile Visit poster's website
Patrick
Hooked :)
Hooked :)

Joined: 29 Jan 2004
Posts: 106
Reputation: 29.9Reputation: 29.9Reputation: 29.9 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Thu Jan 06, 2005 16:14    Post subject: Reply with quote

This file is in b2evocore folder Wink
Back to top
View user's profile Send private message MSN Messenger
s7uar7
New Poster
New Poster

Joined: 30 Sep 2003
Posts: 20
Reputation: 28.4Reputation: 28.4Reputation: 28.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 1

PostPosted: Sun Jan 09, 2005 12:39    Post subject: Reply with quote

I'm still using 0.8.7, and don't have that section in _class_itemlist.php - am I ok?
Back to top
View user's profile Send private message
fplanque
Core Developer
Core Developer

Joined: 13 Jun 2003
Posts: 863
Reputation: 193.4Reputation: 193.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 9

PostPosted: Mon Jan 10, 2005 7:19    Post subject: Reply with quote

I *think* 0.8.7 did not have ant $title handling, so you *might* be okay. But there is no way I can guarantee anything about old releases like 0.8.7 .
_________________
François - Rambling on... State of the Evolution - fplanque.com
b2evolution project maintainer / main developer

Follow b2evolution on twitter and become a fan of b2evolution on facebook
Back to top
View user's profile Visit poster's website
s7uar7
New Poster
New Poster

Joined: 30 Sep 2003
Posts: 20
Reputation: 28.4Reputation: 28.4Reputation: 28.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 1

PostPosted: Mon Jan 10, 2005 8:23    Post subject: Reply with quote

Ok, thanks Francoise. I added the title handling myself, so I'll take the risk.
Back to top
View user's profile Send private message
ravidgemole
New Poster
New Poster

Joined: 20 Jan 2005
Posts: 1
Reputation: 15.7Reputation: 15.7 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Thu Jan 20, 2005 20:08    Post subject: 9.0.10 Reply with quote

Greets - I just checked the relevant file for this bug and found it to exist. I am currently running v9.10.0.
_________________
At the end of the game the king and the pawn go back to the same box.
Back to top
View user's profile Send private message AIM Address
greenman
New Poster
New Poster

Joined: 20 Apr 2005
Posts: 17
Reputation: 18.3Reputation: 18.3 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Wed Apr 20, 2005 11:18    Post subject: Not the most recent exploit Reply with quote

Note that this is not the most recent exploit. I'd patched this a while back, but was recently exploited - see my blog post about the exploit.
Back to top
View user's profile Send private message Visit poster's website
whoo
Forum Mom
Forum Mom

Joined: 25 Dec 2004
Posts: 1293
Reputation: 100.1 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 19

PostPosted: Wed Apr 20, 2005 11:28    Post subject: Reply with quote

providing your logs to francois would be the thing to do.. BUT, fyi, the screenshot you have of the b2evolution website having "lost its skin" .. I see that ALOT here because the server seems to slow down, and the stylesheet doesnt get rendered ... not seeing a particular style isnt an accurate indication of an exploit.

Like I said, sending an email to francois with your apache logs and as much other info as you can provide (times etc..) would certainly go further than one post here as francois will probably see his email before he comes here.

I wont even ask why you posted on your blog about this 3 days before your post here .. Ill just assume you have already contacted francois and leave well enough alone. Cant fix it if they dont know its broke Sad

_________________

Do you use last.fm?
Try out my nifty badge generator!
Back to top
View user's profile Send private message Visit poster's website
greenman
New Poster
New Poster

Joined: 20 Apr 2005
Posts: 17
Reputation: 18.3Reputation: 18.3 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Mon Apr 25, 2005 3:58    Post subject: Reply with quote

Hi whoo

I have been in contact with Francois, and he's sure there was no exploit of the actual b2evolution site, so it must just have been a style sheet issue, as you mention.
Back to top
View user's profile Send private message Visit poster's website
whoo
Big Sister
Big Sister

Joined: 25 Dec 2004
Posts: 1293
Reputation: 100.1 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 19

PostPosted: Mon Apr 25, 2005 6:13    Post subject: Reply with quote

yeap greenman, I read his reply on your blog regarding this domain. Im still not sure about what happened to your own blog, but thats not for me to wonder, I reckon.
_________________

Do you use last.fm?
Try out my nifty badge generator!
Back to top
View user's profile Send private message Visit poster's website
grizly
New Poster
New Poster

Joined: 28 Sep 2006
Posts: 1
add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Thu Sep 28, 2006 16:54    Post subject: conditions Reply with quote

Hello all. In my conditions Sad I have to use 0.8.7 release. What can i do in this case except b2evolution updating? Sorry if my question looks like quesion of stupid man. But I have to
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    b2evolution Forum Index -> Bugs in versions 0.x All times are GMT - 5 Hours
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
b2evolution Support Forum RSS Feed Forums powered by php Bulletin Board