Blog

보안 패치가 포함된 Core를 배포 합니다.


(r123000)


수정사항
  • Webshell 방어코드 추가

보안패치된 내용은 아래 링크에서 확인하실 수 있습니다.

http://code.google.com/p/xe-core/source/detail?r=12300

직접 수정해 주실 경우에는 다음 부분을 수정해 주시면 됩니다.


1. ./classes/context/Context.class.php 파일

155번째 라인 var $is_uploaded = false; 다음에 다음 코드 추가.

 * @var bool true if attached file exists
 */
var $is_uploaded = false;

/**
 * Check init
 * @var bool false if init fail
 */
var $isSuccessInit = true;

809 라인 _setRequestArgument() 메소드 시작 부분에 아래 코드 추가.

$pattern = array(
'/<\?/iUsm',
'/<\%/iUsm',
'/<script(\s|\S)*language[\s]*=("|\')php("|\')(\s|\S)*/iUsm'
);

824 라인 다음 코드를

if($set_to_vars)
{
$val = preg_replace('/<\?.*(\?>)?/iUsm', '', $val);
$val = preg_replace('/<\%.*(\%>)?/iUsm', '', $val);
$val = preg_replace('/<script(\s|\S)*language[\s]*=("|\')php("|\')(\s|\S)*>.*<[\s]*\/[\s]*script[\s]*>/iUsm', '', $val);
}

아래 코드로 변경

if($set_to_vars)
{
foreach($pattern AS $key2=>$value2)
{
$result = preg_match($value2, $val);
if($result)
{
$this->isSuccessInit = false;
break;
}
}
}



2. ./classes/module/ModuleHandler.class.php 파일

40 번째 라인을 아래 다음 코드로 추가

$this->act = Context::get('act');
return;
}

$oContext = Context::getInstance();
if($oContext->isSuccessInit == false)
{
$this->error = 'msg_invalid_request';
return;
}
// Set variables from request arguments
$this->module = $module?$module:Context::get('module');
$this->act    = $act?$act:Context::get('act');

=================================================================================================================


1.4.5.X사용자가 1.5.0 이상 버전으로 업데이트를 하는 경우에는 반드시 관리자 제어판에 노출되는 모든 모듈업데이트를 완료 후 서비스 이용하시기 바랍니다.

(업데이트시 모듈 업데이트 미 완료로인해 로그인화면이 노출되지 않는 이슈가 발생할 수 있사오니, 가급적 관리자 로그인 상태에서 코드 업데이트를 하시기를 권장합니다.)

실서비스에 1.5.0 이상 버전을 적용하고자 하는 사용자는 반드시 DB및 코드 백업 이후 진행
제목 최종 글 날짜
공지 XE1 신규 보안 취약점 신고 포상제 종료 안내   2019.10.23
공지 [중요!] Object 클래스의 이름 변경 안내(PHP 7.2 버전 호환성) [7] 2020.08.16 by 천재 2017.11.27
XE 1.8.0 Release Note [24] file 2015.04.14 by 다복이네집 2015.04.08
XEICON 1.0.4 릴리즈 공지 [8] file 2015.04.11 by 류망스 2015.04.07
[BETA] XE 1.8.0-beta.3 Release Note [2] 2015.04.08 by kanstar 2015.03.24
XE 1.7.13 Release Note [2] 2015.03.31 by 류망스 2015.03.30
[BETA] XE 1.8.0-beta.2 Release Note [5] 2015.03.24 by 모바일ㅇ 2015.03.10
[BETA] XE 1.8.0.beta Release Note [3] 2015.03.01 by SOFTA 2015.02.27
XE 1.7.11 Release Note - [보안패치] [3] 2015.02.19 by 컴공의자랑 2015.02.17
XE 1.7.10 Release Note - [보안패치] [1] 2015.02.08 by 노에르 2015.02.06
XE Core 1.7.9 Release [보안패치] [4] 2015.01.13 by 키스미베이베 2015.01.07
XpressEngine Core 1.7.8 Release [4] 2014.12.13 by 스무스스 2014.12.09
XpressEngine Core 1.7.5.6 Release (보안패치) [1] 2014.10.30 by 올데이럭키 2014.07.28
XpressEngine Core 1.7.7 Release (보안패치 & 1.7.6 로그인 문제 수정) [2] 2014.09.27 by EnterTM 2014.09.23
XpressEngine Core 1.7.6 Release (보안패치) [14] 2014.09.22 by 스무스스 2014.09.18
XpressEngine Core 1.7.5.7 Release   2014.08.07
XpressEngine Core 1.7.5.5 Release [1] 2014.07.23 by 종스 2014.07.22
XE SyndicationAPI module 4.0.0-beta.2 Release   2014.07.22
XpressEngine Core 1.7.5.4 Release [4] 2014.07.21 by 일단놓고말해 2014.07.21
XE SyndicationAPI module 4.0.0-beta.1 Release [2] 2014.07.21 by 일단놓고말해 2014.07.21
XpressEngine Core 1.7.5.2 Release (보안패치)   2014.06.10
XpressEngine Core 1.7.5.3 Release (보안패치)   2014.06.18