🇰🇷 한글 설명
phpMyAdmin 5.2.3 이하 버전에는 재인증 누락 취약점이 존재합니다. 인증된 공격자가 /config/set 경로에 2fa 키를 전송하여 2단계 인증을 재인증 없이 제거할 수 있습니다. 이 경우 이후 로그인은 MySQL 비밀번호만으로 가능해집니다.
💡 쉬운 설명
공격자가 탈취한 세션을 이용하면 계정의 2단계 인증 기능을 몰래 끌 수 있습니다. 그러면 비밀번호만 알아도 계정에 로그인할 수 있게 됩니다.
🇺🇸 원문 (English)
phpMyAdmin through 5.2.3 contains a missing re-authentication vulnerability that allows authenticated attackers to remove two-factor authentication by posting the 2fa key to /config/set. Attackers holding a hijacked session can submit key=2fa with a null JSON value to SetConfigController, stripping 2FA so later logins require only the MySQL password.
📍 영향받는 시스템
phpMyAdmin 5.2.3 이하 버전
⚔️ 공격 벡터
탈취한 인증 세션으로 /config/set에 key=2fa, 값 null을 전송해 2FA를 제거
🛡️ 대응 방법
phpMyAdmin을 취약점이 수정된 최신 버전으로 업데이트하고, 의심되는 세션을 무효화하며 2FA 설정을 재확인
🔧 검증 코드
출력된 버전 번호가 5.2.3 이하이면 취약하며, 5.2.4 이상이면 수정된 버전입니다. 출력이 없으면 설치 경로를 직접 확인해야 합니다.
grep -rhoE "['\"]?(PMA_VERSION|version)['\"]?\s*[=:]\s*['\"][0-9.]+['\"]" /usr/share/phpmyadmin/libraries/classes/Config.php /var/www/html/phpmyadmin/libraries/classes/Config.php 2>/dev/null | head -1