Fix security hole
This commit is contained in:
parent
4eedec0274
commit
3b01b8cb47
@ -67,7 +67,9 @@ $conffiletoshow = "htdocs/conf/conf.php";
|
|||||||
|
|
||||||
// Include configuration
|
// Include configuration
|
||||||
// --- End of part replaced by Dolibarr packager makepack-dolibarr
|
// --- End of part replaced by Dolibarr packager makepack-dolibarr
|
||||||
|
|
||||||
// Replace conf filename with "conf" parameter on url by GET
|
// Replace conf filename with "conf" parameter on url by GET
|
||||||
|
/* Disabled. This is a serious security hole
|
||||||
if (! empty($_GET['conf']))
|
if (! empty($_GET['conf']))
|
||||||
{
|
{
|
||||||
$confname=basename($_GET['conf']);
|
$confname=basename($_GET['conf']);
|
||||||
@ -77,7 +79,7 @@ if (! empty($_GET['conf']))
|
|||||||
$confname=basename(empty($_COOKIE['dolconf']) ? 'conf' : $_COOKIE['dolconf']);
|
$confname=basename(empty($_COOKIE['dolconf']) ? 'conf' : $_COOKIE['dolconf']);
|
||||||
$conffile = 'conf/'.$confname.'.php';
|
$conffile = 'conf/'.$confname.'.php';
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// Include configuration
|
// Include configuration
|
||||||
$result=@include_once $conffile; // Keep @ because with some error reporting this break the redirect
|
$result=@include_once $conffile; // Keep @ because with some error reporting this break the redirect
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user