laut das blog eintrag von cback (http://www.blog.cback.de/?cat=10) denk ich mal das FAP sei schlecht programmiert.
1. Im Hauptordner liegt die Datei album_nuffload.php - jetzt ist aber in diese Datei nicht
Code: Alles auswählen
define(’IN_PHPBB’, true);
$phpbb_root_path = ‘./’;
include($phpbb_root_path . ‘extension.inc’);
include($phpbb_root_path . ‘common.’.$phpEx);Code: Alles auswählen
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}2. Dann auch die Datei album_pclzip_lib.php hat den oben genannte code wie eigentlich eine Datei anfangen sollte im Hauptverzeichnis garnicht noch nicht mal fängt sie mit dem 2. code an die in include ordner sind.
Diese fängt eher so an:
Code: Alles auswählen
// ----- Constants
define( 'PCLZIP_READ_BLOCK_SIZE', 2048 );
// ----- File list separator
// In version 1.x of PclZip, the separator for file list is a space
// (which is not a very smart choice, specifically for windows paths !).
// A better separator should be a comma (,). This constant gives you the
// abilty to change that.
// However notice that changing this value, may have impact on existing
// scripts, using space separated filenames.
// Recommanded values for compatibility with older versions :
//define( 'PCLZIP_SEPARATOR', ' ' );
// Recommanded values for smart separation of filenames.
define( 'PCLZIP_SEPARATOR', ',' );
.
.
.
define( 'PCLZIP_ERR_USER_ABORTED', 2 );
define( 'PCLZIP_ERR_NO_ERROR', 0 );
define( 'PCLZIP_ERR_WRITE_OPEN_FAIL', -1 );
define( 'PCLZIP_ERR_READ_OPEN_FAIL', -2 );
define( 'PCLZIP_ERR_INVALID_PARAMETER', -3 );
define( 'PCLZIP_ERR_MISSING_FILE', -4 );
Denk mal da sollte auch sicher laut des Blog eintrag aus Sicherheitsgründe dies am anfang stehn
Code: Alles auswählen
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}3. Desweitere die Datei album_showpage.php fängt etwas im Hauptordner anders an, jetzt bin ich mir nicht sicher ob die trotzdem so sicher ist? Ggf. fall für cback.
Code: Alles auswählen
if( isset($HTTP_GET_VARS['mode']) && $HTTP_GET_VARS['mode'] == 'smilies' )
{
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'album_mod/clown_album_functions.' . $phpEx);
generate_smilies_album('window', PAGE_ALBUM_PICTURE);
exit;
}
define('IN_PHPBB', true);
$phpbb_root_path = './';
$album_root_path = $phpbb_root_path . 'album_mod/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_validate.' . $phpEx);
Wäre gut wenn das jem. sich mal anschauen kann und mir genau sagen kann ob es wirklich schlecht ist so oder ob ich ruhig schlafen kann und es keine sicherheitslücke darstellt?
Schonmal recht herzlichen Dank.
Gruß Chris