🇰🇷 한글 설명
MariaDB의 CONNECT 엔진 플러그인 내 특정 파일 액세스 UDF 함수들이 FILE 권한이나 secure_file_priv 설정을 강제하지 않는 취약점이 발견되었습니다. 이를 통해 권한이 낮은 공격자가 데이터베이스 계정의 권한을 넘어 운영체제 권한 범위 내의 파일을 읽거나 쓸 수 있습니다.
💡 쉬운 설명
데이터베이스의 특정 기능이 보안 규칙을 제대로 확인하지 않아 발생하는 문제입니다. 이를 이용하면 해커가 허가되지 않은 컴퓨터 파일을 몰래 읽거나 수정할 수 있습니다.
🇺🇸 원문 (English)
MariaDB server is a community developed fork of MySQL server. From 10.6.1 until 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2, the CONNECT engine plugin file-access UDFs json_file(), bson_file(), jfile_make(), bfile_make(), and jbin_file() are affected because each does not enforce FILE privilege or the secure_file_priv setting. A low-privileged attacker can trigger the issue by calling a CONNECT file-access UDF with a filesystem path, then invoke a CONNECT file-access UDF to access a filesystem path and read or write files that the database account is not authorized to access, subject to operating-system permissions. This issue is fixed in versions 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2.
📍 영향받는 시스템
MariaDB 10.6.1~10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2 (일부 버전)
⚔️ 공격 벡터
낮은 권한을 가진 공격자가 CONNECT 엔진의 파일 액세스 UDF 함수를 호출하여 파일 경로를 지정함으로써 공격 수행
🛡️ 대응 방법
MariaDB를 수정된 버전(10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2 이상)으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 취약한 범위에 포함되는지 확인하여 업데이트 필요 여부를 판단합니다.
mariadb --version | grep -E '10.6\[0-9]|10.11\[0-9]|11.4\[0-9]|11.8\[0-9]|12.3\[0-9]|13.0\[0-9]'