🇰🇷 한글 설명
cPanel이 메인 서버와 물리적 디렉토리를 공유하는 가상 호스트 간에 PHP open_basedir 설정 지침을 자동으로 동기화하지 않는 취약점입니다. 이로 인해 로컬 사용자가 메인 서버 URL(~username 등)을 사용하는 PHP 스크립트를 통해 자신의 open_basedir 제한을 우회하여 다른 가상 호스트에 접근할 수 있습니다.
💡 쉬운 설명
웹사이트의 접근 제한 설정이 서버 전체 설정과 일치하지 않아 발생하는 문제입니다. 공격자가 특수한 경로를 이용해 허용되지 않은 다른 사용자의 파일에 접근할 수 있게 됩니다.
🇺🇸 원문 (English)
cPanel does not automatically synchronize the PHP open_basedir configuration directive between the main server and virtual hosts that share physical directories, which might allow a local user to bypass open_basedir restrictions and access other virtual hosts via a PHP script that uses a main server URL (such as ~username) that is blocked by the user's own open_basedir directive, but not the main server's open_basedir directive.
📍 영향받는 시스템
cPanel (CVE-2006-2825 영향 버전)
⚔️ 공격 벡터
메인 서버 URL을 이용한 PHP 스크립트 실행을 통해 open_basedir 제한 우회 및 타 가상 호스트 접근
🛡️ 대응 방법
cPanel을 최신 버전으로 업데이트하고 PHP open_basedir 설정의 일관성을 검토하십시오.
🔧 검증 코드
설정 파일 내에서 메인 서버와 가상 호스트 간의 open_basedir 경로 설정이 서로 다르게 지정되어 있는지 확인합니다.
grep -r "open_basedir" /etc/apache2/conf.d/ 2>/dev/null | grep -E 'open_basedir'