########################## www.BugReport.ir #########################
###################################################################
####################
Pluck is a content management system, written in php.
####################
±-> Local File Inclusion
Input passed to multiple parameters in "predefined_variables.php" are
not properly verified
before being used to include files.
This can be exploited to include arbitrary files from local resources.
Code Snippet:
/data/inc/themes/predefined_variables.php #line:15-38
//Include Translation data
include ("data/settings/langpref.php");
include ("data/inc/lang/$langpref");
//Get Site-title
$sitetitle = file_get_contents("data/settings/title.dat");
//Get the page-data
$filetoread = $_GET['file'];
$album = $_GET['album'];
$blogpost = $_GET['blogpost'];
$cat = $_GET['cat'];
if (($filetoread) && (file_exists("data/content/$filetoread"))) {
include "data/content/$filetoread"; }
elseif ($album) {
$title = $album; }
elseif ($blogpost) {
include("data/blog/$cat/posts/$blogpost"); }
elseif ((!file_exists("data/content/$filetoread")) && (!$album) &&
(!$blogpost)) {
$title = $lang_front1;
$content = $lang_front2; }
####################
####################