🇰🇷 한글 설명
MKPortal 1.0.1 Final의 index.php에 존재하는 디렉토리 트래버설 취약점으로, language 쿠키를 통해 임의의 로컬 파일을 포함하고 실행할 수 있습니다. 공격자는 gl_session 쿠키를 이용해 error.log 파일에 PHP 코드를 주입한 후, ind 파라미터로 악의적인 명령을 실행할 수 있습니다.
💡 쉬운 설명
웹사이트의 폴더 구조를 벗어나 서버의 다른 파일들을 열 수 있는 보안 문제입니다. 공격자는 이를 이용해 악의적인 코드를 실행할 수 있습니다.
🇺🇸 원문 (English)
Directory traversal vulnerability in index.php in MKPortal 1.0.1 Final allows remote attackers to include and execute arbitrary local files via directory traversal sequences in the language cookie, as demonstrated by using a gl_session cookie to inject PHP sequences into the error.log file, which is then included by index.php with malicious commands accessible by the ind parameter.
📍 영향받는 시스템
MKPortal 1.0.1 Final
⚔️ 공격 벡터
language 쿠키와 gl_session 쿠키를 조작하여 error.log에 PHP 코드 주입 후 ind 파라미터로 실행
🛡️ 대응 방법
MKPortal을 최신 버전으로 업데이트하거나 입력값 검증 및 파일 포함 제한 패치 적용
🔧 검증 코드
/etc/passwd 파일 내용이 노출되면 취약점 확인; 403 Forbidden이나 정상 페이지 로딩은 패치된 상태
curl -s http://target/index.php -b 'language=../../../../etc/passwd' 2>&1 | head -20