🇰🇷 한글 설명
MariaDB Connector/J의 특정 버전에서 PAM 인증 과정 중 비밀번호가 암호화되지 않은 연결을 통해 전송될 수 있는 취약점이 발견되었습니다. 공격자가 중간자(MitM) 공격을 통해 인증 방식을 변경하도록 유도하면, 기본 설정 상태에서 사용자의 비밀번호가 평문으로 노출될 수 있습니다.
💡 쉬운 설명
데이터베이스에 접속할 때 사용하는 연결 도구에 보안 허점이 있어, 해커가 중간에서 사용자의 비밀번호를 가로챌 수 있습니다. 특히 보안 연결(SSL)을 사용하지 않는 설정에서 이 위험이 커집니다.
🇺🇸 원문 (English)
MariaDB Connector/J is used to connect applications developed in Java to MariaDB and MySQL databases. Prior to 2.7.14, 3.3.5, 3.4.3, and 3.5.9, PAM dialog authentication can be coerced into transmitting the account password over an insecure connection. The mysql_clear_password plugin is gated behind a secure transport, but the sibling PAM handler SendPamAuthPacketFactory, named dialog by the server, does not declare that requirement and inherits the default secure-required value false; older branches implement the same affected behavior in SendPamAuthPacket. A hostile or man-in-the-middle server can send an Authentication Switch Request for dialog over plain TCP, causing the driver to return the user's password in cleartext when sslMode=DISABLE and restrictedAuth=null, which is the default configuration. Properly verified TLS and local Unix sockets are not exposed to this transport vector. This issue is fixed in versions 2.7.14, 3.3.5, 3.4.3, and 3.5.9.
📍 영향받는 시스템
MariaDB Connector/J 2.7.14, 3.3.5, 3.4.3, 3.5.9 미만 버전
⚔️ 공격 벡터
중간자(MitM) 공격을 통해 서버가 인증 방식을 변경하도록 유도하여 평문 TCP 연결로 비밀번호 탈취
🛡️ 대응 방법
MariaDB Connector/J를 최신 패치 버전(2.7.14, 3.3.5, 3.4.3, 3.5.9 이상)으로 업데이트하거나 SSL 사용을 강제함
🔧 검증 코드
출력된 결과의 버전 번호가 취약한 버전 범위(2.7.14, 3.3.5, 3.4.3, 3.5.9 미만)에 해당하는지 확인합니다.
mvn dependency:list | grep -E 'mariadb-java-client:[0-9]\.'
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
💻 영향받는 소프트웨어
IBM WebSphere Application Server