X7 Chat Support Board
Welcome, Guest. Please login or register.
July 31, 2010, 07:49:03 PM

Login with username, password and session length
Search:     Advanced search
X7 Chat Version 3.0.0 Alpha 2 is now available (http://x7chat.com/support_forum/index.php?topic=3198.msg11497#new).
13036 Posts in 3760 Topics by 66536 Members
Latest Member: usheeenkogon
* Home Help Search Login Register
+  X7 Chat Support Board
|-+  News
| |-+  X7 Chat News
| | |-+  Security Advisory [05/03/2006] [Versions: 2.0.0, 2.0.1]
« previous next »
Pages: [1] Reply Print
Author Topic: Security Advisory [05/03/2006] [Versions: 2.0.0, 2.0.1]  (Read 3866 times)
E-Oreo
Administrator
Member
*****
Offline Offline

Posts: 3710


View Profile Email
« on: May 03, 2006, 06:18:56 PM »
Reply with quote

Security Advisory [05/03/2006]

Description: Unchecked argument allows improper inclusion.  Coupling with EXIF allows for remote execution of commands.
Date of Discovery: 05/02/2006
Affected Versions: 2.0.0, 2.0.1
Affected Files: ./help/index.php, ./help/mini.php
Unaffected Versions: 1.x.x, 2.0.2
Severity: High
Discovered by: rgod
Recommended method of repair:

(1) Upgrade to X7 Chat 2.0.3

OR

(2) In ./help/index.php and ./help/mini.php
Find:
Quote
if(!isset($_GET['help_file']) || !@is_file("./{$_GET['help_file']}")){

Replace with:
Quote
if(!isset($_GET['help_file']) || !@is_file("./{$_GET['help_file']}") || eregi("[\\/]","{$_GET['help_file']}")){

In ./sources/usercp.php
Find:
Code:
f($error == ""){
$body = $txt[188];
$db->DoQuery("UPDATE {$prefix}users SET email='$email',avatar='$_POST[avatar]',name='$_POST[rname]',location='$_POST[location]',hobbies='$_POST[hobbies]',bio='$_POST[bio]',gender='$_POST[gender]' WHERE username='$x7s->username'");
}else{
$body = "<div align=\"center\">".$error."<Br><Br><a href=\"./index.php?act=user_cp&cp_page=profile\">$txt[77]</a></div>";
}
Add above:
Code:
if(!preg_match("#^http://#",$_POST['avatar']))
$_POST['avatar'] = "http://".$_POST['avatar'];
« Last Edit: June 16, 2006, 11:59:56 PM by E-Oreo » Logged
Pages: [1] Reply Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.158 seconds with 18 queries.