WebmasterForums.NET - Webmaster Forums & Directory
 

Go Back   WebmasterForums.NET - Webmaster Forums & Directory > Website Management > Support
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Support This is a Forum for Hosting, Invision Boards and Web Designs / Coding support and help.

Reply
 
Thread Tools Display Modes
Old 07-31-2006, 01:37 PM   #1
barney
Senior Member
 
barney's Avatar
 
Join Date: Jul 2006
Location: USA
Posts: 203
barney is on a distinguished road
Send a message via ICQ to barney Send a message via AIM to barney Send a message via Yahoo to barney
Default Invision Power Board 2.1 <= 2.1.6 sql injection

RST/GHC advisory#41
Product: Invision Power Board
Version: 2.1 <= 2.1.6
Vendor: INVISION Power Service
URL: http://www.invisionpower.com
VULNERABILITY CLASS: SQL injection
[Product Description]
Invision Power Board, an award-winning scaleable bulletin board system, written in PHP, uses SQL database.
"Invision Power Board is packed with useful features that enable you to quickly and painlessly configure and manage every aspect of your board."

[Summary]
Unsufficient sanitazing of the user depend data in HTTP header may lead to SQL injection attack.

[Details]
Data from HTTP variable CLIENT_IP puts directly to sql statement:

Code:
 /sources/ipsclass.php 
 $addrs[] = $_SERVER['HTTP_CLIENT_IP']; 
 $addrs[] = $_SERVER['REMOTE_ADDR']; 
 $addrs[] = $_SERVER['HTTP_PROXY_USER']; 
 foreach ( $addrs as $ip ) 
  { 
   if ( $ip ) 
   { 
   $this->ip_address = $ip; 
   break; 
   } 
  }
Code:
 /sources/classes/class_session.php 
 if ( $this->ipsclass->vars['match_ipaddress'] == 1 ) 
  { 
  $query .= " AND ip_address='".$this->ipsclass->ip_address."'"; 
  } 
 
$this->ipsclass->DB->simple_construct(array( 'select' => 'id, member_id, running_time, location', 
                                                            'from'   => 'sessions', 
                                                           'where'  => "id='".$session_id."'".$query));
[Exploit]
http://rst.void.ru/download/r57ipb216gui.txt

[Bugfix]
Upgrade to 2.1.7 version

[Credits]
1dt.w0lf
RST/GHC
barney is offline   Reply With Quote
Old 07-31-2006, 01:38 PM   #2
barney
Senior Member
 
barney's Avatar
 
Join Date: Jul 2006
Location: USA
Posts: 203
barney is on a distinguished road
Send a message via ICQ to barney Send a message via AIM to barney Send a message via Yahoo to barney
Default

Hello rst,
i got this from your website couple days ago. it does NOT work on any
2.1.6 board i have here even vanilla default install.

can anyone please confirm this working on 2.1.6??

i removed their "phone home", and added a user-agent string, in their
exploit.
barney is offline   Reply With Quote
Old 07-31-2006, 01:38 PM   #3
barney
Senior Member
 
barney's Avatar
 
Join Date: Jul 2006
Location: USA
Posts: 203
barney is on a distinguished road
Send a message via ICQ to barney Send a message via AIM to barney Send a message via Yahoo to barney
Default

IPB 2.1.7 fixes this problem.
barney is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:20 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
WebmasterForums.NET - Webmaster Forums & Directory