KVE-2019-1142 LFI & Command Injection 취약점 수정
This commit is contained in:
@ -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 생년월일 본인 확인서비스 파라미터
|
||||
|
||||
@ -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 실행
|
||||
**************************************************************************/
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$check_arrays = array('exe', 'keypath', 'memId', 'endPointURL', 'logPath');
|
||||
$check_arrays = array('exe', 'keypath', 'memId', 'endPointURL', 'endPointUrl', 'logPath');
|
||||
|
||||
foreach($check_arrays as $key){
|
||||
if( isset($_REQUEST[$key]) && $_REQUEST[$key] ){
|
||||
@ -12,8 +12,8 @@ foreach($check_arrays as $key){
|
||||
}
|
||||
|
||||
// KISA 취약점 내용(KVE-2018-0291) hpcert1.php의 $cmd 함수에 대한 인자 값은 hpcert_config.php 파일에서 설정되나, 이를 다른 페이지에서 포함한 뒤 호출할 시 임의 값 설정 가능
|
||||
// 이에 include_once 를 include 로 수정함
|
||||
include('./hpcert.config.php');
|
||||
// 이에 include_once 를 require 로 수정함
|
||||
require('./hpcert.config.php');
|
||||
/**************************************************************************
|
||||
파일명 : safe_hs_cert3.php
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ if(!$config['cf_cert_use'] || $config['cf_cert_ipin'] != 'kcb')
|
||||
alert('기본환경설정에서 KCB 아이핀 본인확인 서비스로 설정해 주십시오.');
|
||||
|
||||
// key 디렉토리 체크
|
||||
include_once('./key_dir_check.php');
|
||||
require_once('./key_dir_check.php');
|
||||
|
||||
$exe = '';
|
||||
// 실행모듈
|
||||
|
||||
@ -15,8 +15,8 @@ foreach($check_arrays as $key){
|
||||
certify_count_check($member['mb_id'], 'ipin');
|
||||
|
||||
// KISA 취약점 내용(KVE-2018-0291) hpcert1.php의 $cmd 함수에 대한 인자 값은 hpcert_config.php 파일에서 설정되나, 이를 다른 페이지에서 포함한 뒤 호출할 시 임의 값 설정 가능
|
||||
// 이에 include_once 를 include 로 수정함
|
||||
include('./ipin.config.php');
|
||||
// 이에 include_once 를 require 로 수정함
|
||||
require('./ipin.config.php');
|
||||
|
||||
$option = "C";// Option
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ foreach($check_arrays as $key){
|
||||
$$key = '';
|
||||
}
|
||||
|
||||
include('./ipin.config.php');
|
||||
require('./ipin.config.php');
|
||||
|
||||
//아이핀팝업에서 조회한 PERSONALINFO이다.
|
||||
@$encPsnlInfo = $_POST["encPsnlInfo"];
|
||||
|
||||
Reference in New Issue
Block a user