LFI to RCE 취약점 수정

This commit is contained in:
thisgun committed 2017-03-20 17:44:56 +09:00
1 parent 8eb465d26f
commit 23a91b346d
7 files changed
+51 -10

No files matched your search

+9
View File
@@ -3259,4 +3259,13 @@ function check_write_token($bo_table)
return true;
}
// include 하는 경로에 data file 경로가 포함되어 있는지 체크합니다.
function is_include_path_check($path='')
{
if( !$path || preg_match('/\/data\/(file|editor)\/[A-Za-z0-9_]{1,20}\//', $path) ){
return false;
}
return true;
}
?>