diff --git a/adm/contentform.php b/adm/contentform.php
index 7b7751301..b7bedd389 100644
--- a/adm/contentform.php
+++ b/adm/contentform.php
@@ -109,8 +109,8 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
diff --git a/adm/menu_list_update.php b/adm/menu_list_update.php
index 4244d3343..324f26209 100644
--- a/adm/menu_list_update.php
+++ b/adm/menu_list_update.php
@@ -23,7 +23,7 @@ for ($i=0; $i<$count; $i++)
$code = $_POST['code'][$i];
$me_name = $_POST['me_name'][$i];
- $me_link = preg_match('/^javascript/', $_POST['me_link'][$i]) ? G5_URL : strip_tags($_POST['me_link'][$i]);
+ $me_link = preg_match('/^javascript/i', $_POST['me_link'][$i]) ? G5_URL : strip_tags($_POST['me_link'][$i]);
if(!$code || !$me_name || !$me_link)
continue;
diff --git a/bbs/confirm.php b/bbs/confirm.php
index fcf94e0e9..a80f5eab1 100644
--- a/bbs/confirm.php
+++ b/bbs/confirm.php
@@ -2,9 +2,9 @@
include_once('./_common.php');
include_once(G5_PATH.'/head.sub.php');
-$url1 = clean_xss_tags($url1);
-$url2 = clean_xss_tags($url2);
-$url3 = clean_xss_tags($url3);
+$url1 = preg_replace("/[\<\>\'\"\\\'\\\"\(\)]/", "", clean_xss_tags($url1));
+$url2 = preg_replace("/[\<\>\'\"\\\'\\\"\(\)]/", "", clean_xss_tags($url2));
+$url3 = preg_replace("/[\<\>\'\"\\\'\\\"\(\)]/", "", clean_xss_tags($url3));
// url 체크
check_url_host($url1);
diff --git a/bbs/email_certify.php b/bbs/email_certify.php
index 2fc735b32..83465e706 100644
--- a/bbs/email_certify.php
+++ b/bbs/email_certify.php
@@ -1,6 +1,9 @@
]*+>#i', '', $str);
+ $str = str_replace(array('',''), '', $str);
+
return $str;
}
@@ -3577,6 +3579,27 @@ function get_real_client_ip(){
return preg_replace('/[^0-9.]/', '', $real_ip);
}
+function check_mail_bot($ip=''){
+
+ //아이피를 체크하여 메일 크롤링을 방지합니다.
+ $check_ips = array('211.249.40.');
+ $bot_message = 'bot 으로 판단되어 중지합니다.';
+
+ if($ip){
+ foreach( $check_ips as $c_ip ){
+ if( preg_match('/^'.preg_quote($c_ip).'/', $ip) ) {
+ die($bot_message);
+ }
+ }
+ }
+
+ // user agent를 체크하여 메일 크롤링을 방지합니다.
+ $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
+ if ($user_agent === 'Carbon' || strpos($user_agent, 'BingPreview') !== false || strpos($user_agent, 'Slackbot') !== false) {
+ die($bot_message);
+ }
+}
+
function get_call_func_cache($func, $args=array()){
static $cache = array();
diff --git a/plugin/lgxpay/AuthOnlyReq.php b/plugin/lgxpay/AuthOnlyReq.php
index f8c42b1b6..571d7d9c9 100644
--- a/plugin/lgxpay/AuthOnlyReq.php
+++ b/plugin/lgxpay/AuthOnlyReq.php
@@ -165,6 +165,8 @@ $_SESSION['lgd_certify'] = $payReqMap;
$value) {
+ $key = htmlspecialchars(strip_tags($key));
+ $value = htmlspecialchars(strip_tags($value));
echo "".PHP_EOL;
}
?>
diff --git a/plugin/lgxpay/returnurl.php b/plugin/lgxpay/returnurl.php
index e0cd0a37b..b40e8940e 100644
--- a/plugin/lgxpay/returnurl.php
+++ b/plugin/lgxpay/returnurl.php
@@ -57,6 +57,8 @@ $payReqMap = $_SESSION['lgd_certify'];//결제 요청시, Session에 저장했