From 73478d5961b22921d84293d68d157c18273ca9ed Mon Sep 17 00:00:00 2001 From: thisgun Date: Tue, 9 Jul 2019 14:11:48 +0900 Subject: [PATCH] =?UTF-8?q?KVE-2019-1142=20LFI=20&=20Command=20Injection?= =?UTF-8?q?=20=EC=B7=A8=EC=95=BD=EC=A0=90=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 2 +- plugin/okname/hpcert.config.php | 2 +- plugin/okname/hpcert1.php | 4 ++-- plugin/okname/hpcert2.php | 6 +++--- plugin/okname/ipin.config.php | 2 +- plugin/okname/ipin1.php | 4 ++-- plugin/okname/ipin2.php | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index ab0569188..6f9d0e906 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -3510,7 +3510,7 @@ function is_include_path_check($path='', $is_input='') // 장태진 @jtjisgod 추가 // 보안 목적 : rar wrapper 차단 - if( stripos($path, 'rar:') !== false || stripos($path, 'php:') !== false || stripos($path, 'zlib:') !== false || stripos($path, 'bzip2:') !== false || stripos($path, 'zip:') !== false || stripos($path, 'data:') !== false || stripos($path, 'phar:') !== false ){ + if( stripos($path, 'rar:') !== false || stripos($path, 'php:') !== false || stripos($path, 'zlib:') !== false || stripos($path, 'bzip2:') !== false || stripos($path, 'zip:') !== false || stripos($path, 'data:') !== false || stripos($path, 'phar:') !== false || stripos($path, 'file:') !== false ){ return false; } diff --git a/plugin/okname/hpcert.config.php b/plugin/okname/hpcert.config.php index 06b54b4c7..3ccdc0f15 100644 --- a/plugin/okname/hpcert.config.php +++ b/plugin/okname/hpcert.config.php @@ -5,7 +5,7 @@ if(!$config['cf_cert_use'] || $config['cf_cert_hp'] != 'kcb') alert('기본환경설정에서 KCB 휴대폰본인확인 서비스로 설정해 주십시오.'); // key 디렉토리 체크 -include_once('./key_dir_check.php'); +require_once('./key_dir_check.php'); /************************************************************************** * okname 생년월일 본인 확인서비스 파라미터 diff --git a/plugin/okname/hpcert1.php b/plugin/okname/hpcert1.php index d81aaeb73..a0638ddc4 100644 --- a/plugin/okname/hpcert1.php +++ b/plugin/okname/hpcert1.php @@ -15,8 +15,8 @@ foreach($check_arrays as $key){ certify_count_check($member['mb_id'], 'hp'); // KISA 취약점 내용(KVE-2018-0291) hpcert1.php의 $cmd 함수에 대한 인자 값은 hpcert_config.php 파일에서 설정되나, 이를 다른 페이지에서 포함한 뒤 호출할 시 임의 값 설정 가능 -// 이에 include_once 를 include 로 수정함 -include('./hpcert.config.php'); +// 이에 include_once 를 require 로 수정함 +require('./hpcert.config.php'); /************************************************************************** okname 실행 **************************************************************************/ diff --git a/plugin/okname/hpcert2.php b/plugin/okname/hpcert2.php index ab8d24240..bf706be22 100644 --- a/plugin/okname/hpcert2.php +++ b/plugin/okname/hpcert2.php @@ -1,7 +1,7 @@