Find these two lines:
# check _POST variables against the blacklist $this->postShield();
and replace with:
# check _POST variables against the blacklist # $this->postShield();
Let me know if that helps
Posted 03 March 2012 - 07:40 PM
# check _POST variables against the blacklist $this->postShield();
# check _POST variables against the blacklist # $this->postShield();
Posted 05 March 2012 - 03:20 PM
Posted 06 March 2012 - 06:42 AM
Posted 10 March 2012 - 02:11 AM
Posted 10 March 2012 - 07:32 PM
Posted 11 March 2012 - 03:31 AM
Taipo, on 10 March 2012 - 07:32 PM, said:
Posted 11 March 2012 - 05:46 AM
Posted 11 March 2012 - 11:24 AM
Posted 11 March 2012 - 05:29 PM
Posted 11 March 2012 - 05:35 PM
Posted 13 March 2012 - 10:34 PM
Posted 15 March 2012 - 09:35 AM
Posted 15 March 2012 - 03:53 PM
Posted 17 March 2012 - 07:43 AM
Posted 30 March 2012 - 04:08 AM
Posted 01 April 2012 - 08:10 AM
// set php_self in the local scope
// if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
/**
* Reliably set PHP_SELF as a filename .. platform safe
*/
function setPhpSelf() {
$base = ( array( 'SCRIPT_NAME', 'PHP_SELF' ) );
foreach ( $base as $index => $key ) {
if ( array_key_exists( $key, $_SERVER ) && !empty( $_SERVER[$key] ) ) {
if ( false !== strpos( $_SERVER[$key], '.php' ) ) {
preg_match( '@[a-z0-9_]+\.php@i', $_SERVER[$key], $matches );
if ( is_array( $matches ) && ( array_key_exists( 0, $matches ) )
&& ( substr( $matches[0], -4, 4 ) == '.php' )
&& ( is_readable( $matches[0] ) ) ) {
return $matches[0];
}
}
}
}
return 'index.php';
} // end method
$PHP_SELF = setPhpSelf();
// set php_self in the local scope
//$PHP_SELF = (isset($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']);
/**
* Reliably set PHP_SELF as a filename .. platform safe
*/
function setPhpSelf() {
$base = ( array( 'SCRIPT_NAME', 'PHP_SELF' ) );
foreach ( $base as $index => $key ) {
if ( array_key_exists( $key, $_SERVER ) && !empty( $_SERVER[$key] ) ) {
if ( false !== strpos( $_SERVER[$key], '.php' ) ) {
preg_match( '@[a-z0-9_]+\.php@i', $_SERVER[$key], $matches );
if ( is_array( $matches ) && ( array_key_exists( 0, $matches ) )
&& ( substr( $matches[0], -4, 4 ) == '.php' )
&& ( is_readable( $matches[0] ) ) ) {
return $matches[0];
}
}
}
}
return 'index.php';
} // end method
$PHP_SELF = setPhpSelf();
Posted 01 April 2012 - 10:33 PM
mafiouso, on 30 March 2012 - 04:08 AM, said:
Posted 01 April 2012 - 10:34 PM
mr_absinthe, on 01 April 2012 - 08:10 AM, said:
// set php_self in the local scope
// if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
/**
* Reliably set PHP_SELF as a filename .. platform safe
*/
function setPhpSelf() {
$base = ( array( 'SCRIPT_NAME', 'PHP_SELF' ) );
foreach ( $base as $index => $key ) {
if ( array_key_exists( $key, $_SERVER ) && !empty( $_SERVER[$key] ) ) {
if ( false !== strpos( $_SERVER[$key], '.php' ) ) {
preg_match( '@[a-z0-9_]+\.php@i', $_SERVER[$key], $matches );
if ( is_array( $matches ) && ( array_key_exists( 0, $matches ) )
&& ( substr( $matches[0], -4, 4 ) == '.php' )
&& ( is_readable( $matches[0] ) ) ) {
return $matches[0];
}
}
}
}
return 'index.php';
} // end method
$PHP_SELF = setPhpSelf();
// set php_self in the local scope
//$PHP_SELF = (isset($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']);
/**
* Reliably set PHP_SELF as a filename .. platform safe
*/
function setPhpSelf() {
$base = ( array( 'SCRIPT_NAME', 'PHP_SELF' ) );
foreach ( $base as $index => $key ) {
if ( array_key_exists( $key, $_SERVER ) && !empty( $_SERVER[$key] ) ) {
if ( false !== strpos( $_SERVER[$key], '.php' ) ) {
preg_match( '@[a-z0-9_]+\.php@i', $_SERVER[$key], $matches );
if ( is_array( $matches ) && ( array_key_exists( 0, $matches ) )
&& ( substr( $matches[0], -4, 4 ) == '.php' )
&& ( is_readable( $matches[0] ) ) ) {
return $matches[0];
}
}
}
}
return 'index.php';
} // end method
$PHP_SELF = setPhpSelf();
Posted 04 April 2012 - 01:02 PM
Edited by mafiouso, 04 April 2012 - 01:03 PM.
Posted 04 April 2012 - 09:23 PM
require_once( DIR_FS_CATALOG . 'includes/osc_sec.php' );
require_once( '/home/youruser/public_html/includes/osc_sec.php' );