🇰🇷 한글 설명
Turnkey Web Tools PHP Live Helper의 디렉토리 순회 취약점으로, language 쿠키를 통해 임의의 로컬 파일을 포함하고 실행할 수 있습니다. 공격자가 gl_session 쿠키로 PHP 코드를 업로드하면 error.log에 저장되고, initiate.php가 이를 포함 실행하여 원격 코드 실행이 가능합니다.
💡 쉬운 설명
웹 애플리케이션의 쿠키 검증이 부족해서 공격자가 악의적인 파일 경로를 삽입할 수 있는 문제입니다. 공격자가 이를 악용하면 서버에서 자신의 코드를 실행시킬 수 있습니다.
🇺🇸 원문 (English)
Directory traversal vulnerability in (1) initiate.php and (2) possibly other PHP scripts in Turnkey Web Tools PHP Live Helper 1.8, and possibly later versions, allows remote authenticated users to include and execute arbitrary local files via directory traversal sequences in the language cookie, as demonstrated by uploading PHP code in a gl_session cookie to users.php, which causes the code to be stored in error.log, which is then included by initiate.php.
📍 영향받는 시스템
Turnkey Web Tools PHP Live Helper 1.8 및 이후 버전
⚔️ 공격 벡터
인증된 사용자가 language 쿠키에 디렉토리 순회 시퀀스를 삽입하거나, gl_session 쿠키로 PHP 코드를 업로드하여 수행
🛡️ 대응 방법
Turnkey Web Tools를 최신 버전으로 업데이트하고, 쿠키 입력값에 대한 엄격한 검증 로직 적용
🔧 검증 코드
PHP Live Helper 설치 경로를 찾으면 해당 버전과 설치 상태를 확인할 수 있습니다.
find /var/www -name 'initiate.php' -o -name '*Live Helper*' 2>/dev/null | head -5