🇰🇷 한글 설명
MySQL 5.1.x 버전 5.1.41 이전에서 로컬 사용자가 MyISAM 테이블 생성 시 DATA DIRECTORY/INDEX DIRECTORY 인자를 심볼릭 링크로 조작하여 권한 검사를 우회할 수 있는 취약점입니다. MySQL 데이터 디렉토리 외부의 파일에 부당하게 접근할 수 있습니다.
💡 쉬운 설명
MySQL에서 로컬 사용자가 심볼릭 링크 트릭을 사용해 접근하면 안 되는 파일에 접근할 수 있는 문제입니다. 디렉토리 경로를 조작해서 보안 제한을 무시할 수 있습니다.
🇺🇸 원문 (English)
MySQL 5.1.x before 5.1.41 allows local users to bypass certain privilege checks by calling CREATE TABLE on a MyISAM table with modified (1) DATA DIRECTORY or (2) INDEX DIRECTORY arguments that are originally associated with pathnames without symlinks, and that can point to tables created at a future time at which a pathname is modified to contain a symlink to a subdirectory of the MySQL data home directory, related to incorrect calculation of the mysql_unpacked_real_data_home value. NOTE: this vulnerability exists because of an incomplete fix for CVE-2008-4098 and CVE-2008-2079.
📍 영향받는 시스템
MySQL 5.1.0 ~ 5.1.40
⚔️ 공격 벡터
로컬 사용자가 CREATE TABLE 명령어로 심볼릭 링크를 포함한 데이터/인덱스 디렉토리 경로를 지정
🛡️ 대응 방법
MySQL을 5.1.41 이상 버전으로 업그레이드
🔧 검증 코드
명령 실행 후 'Safe'가 출력되면 패치됨, 'Vulnerable'이 출력되거나 5.1.40 이하 버전이 표시되면 취약
mysql --version 2>/dev/null | grep -E '5\.1\.(4[1-9]|[5-9][0-9])' && echo 'Safe' || echo 'Vulnerable'