🇰🇷 한글 설명
MySQL 및 MariaDB에서 FILE 특권이 부적절하게 할당된 경우, 인증된 사용자가 이를 악용하여 관리자 권한으로 파일을 생성할 수 있습니다. 이는 특권 상승 공격으로 이어질 수 있으며, 공급업체는 설치 문서의 권장사항을 따르면 방지 가능하다고 주장합니다.
💡 쉬운 설명
MySQL 데이터베이스에서 파일 관련 권한을 잘못 설정하면, 일반 사용자가 관리자 권한으로 파일을 생성할 수 있습니다. 이를 통해 시스템 제어권을 획득하는 보안 문제입니다.
🇺🇸 원문 (English)
MySQL 5.5.19 and possibly other versions, and MariaDB 5.5.28a and possibly other versions, when configured to assign the FILE privilege to users who should not have administrative privileges, allows remote authenticated users to gain privileges by leveraging the FILE privilege to create files as the MySQL administrator. NOTE: the vendor disputes this issue, stating that this is only a vulnerability when the administrator does not follow recommendations in the product's installation documentation. NOTE: it could be argued that this should not be included in CVE because it is a configuration issue.
📍 영향받는 시스템
MySQL 5.5.19 이상, MariaDB 5.5.28a 이상 (FILE 특권이 할당된 구성에서)
⚔️ 공격 벡터
인증된 사용자가 FILE 특권을 악용하여 MySQL 관리자 계정으로 파일 생성 및 수정
🛡️ 대응 방법
FILE 특권을 필요하지 않은 사용자에게 할당하지 않기, 최신 보안 패치 적용, MySQL 공식 문서의 권장 설정 준수
🔧 검증 코드
FILE 권한('Y')이 할당된 사용자 목록이 나타나면 각 사용자에 대해 FILE 권한이 필요한지 확인하고 불필요한 권한은 제거
mysql -u root -e "SELECT user, File_priv FROM mysql.user WHERE File_priv='Y';" 2>/dev/null | grep -v 'user\|File_priv'