lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date: 27 Dec 2006 17:58:56 -0000
From: james.brown@...esign.com
To: bugtraq@...urityfocus.com
Subject: Re: Cross site scripting & fullpath disclosure

The solution to this is to insert the following code in sp_helper_functions.php at line 10:

if (!file_exists(stripslashes($input_dir)))
	return array();

This should come immediatly before the original line 10 which is:		

$dh  = opendir(stripslashes($input_dir));	

This is alters function getDirList which should now read as follows:

//THIS FUNCTION WILL RETURN A SORTED ARRAY OF ALL FILES AND FOLDERS IN THE CURRENT DIRECTORY
function getDirList($input_dir="") 
{
	global $dir;
	if($input_dir == '')
		$input_dir = $dir;
	//echo "--" . stripslashes($input_dir) , "--";
	
	// the following is a fix for http://nvd.nist.gov/nvd.cfm?cvename=CVE-2006-6273
	// by James Brown 10:53 AM 12/27/2006
	if (!file_exists(stripslashes($input_dir)))
		return array();
		
	$dh  = opendir(stripslashes($input_dir));	
	while (false !== ($filename = readdir($dh))) 
	{
	  	$files[] = $filename;
	}
	@sort($files);
	return $files;
}

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ