🇰🇷 한글 설명
phpMyAdmin의 여러 기능(Zoom search, GIS editor, Relation view, Transformations, XML/MediaWiki export 등)에서 입력값이 제대로 이스케이프되지 않아 XSS 공격이 가능한 취약점입니다. 공격자가 악의적인 SQL 쿼리나 데이터베이스 콘텐츠를 통해 웹 페이지에 악성 스크립트를 주입할 수 있습니다.
💡 쉬운 설명
phpMyAdmin 웹 인터페이스에서 사용자 입력이 안전하게 처리되지 않아, 해커가 악성 코드를 삽입해 관리자의 브라우저를 통해 계정을 탈취하거나 데이터베이스를 조작할 수 있습니다. 4.0, 4.4, 4.6 버전 초기 릴리스가 영향을 받습니다.
🇺🇸 원문 (English)
XSS issues were discovered in phpMyAdmin. This affects Zoom search (specially crafted column content can be used to trigger an XSS attack); GIS editor (certain fields in the graphical GIS editor are not properly escaped and can be used to trigger an XSS attack); Relation view; the following Transformations: Formatted, Imagelink, JPEG: Upload, RegexValidation, JPEG inline, PNG inline, and transformation wrapper; XML export; MediaWiki export; Designer; When the MySQL server is running with a specially-crafted log_bin directive; Database tab; Replication feature; and Database search. All 4.6.x versions (prior to 4.6.4), 4.4.x versions (prior to 4.4.15.8), and 4.0.x versions (prior to 4.0.10.17) are affected.
📍 영향받는 시스템
phpMyAdmin 4.6.x (< 4.6.4), 4.4.x (< 4.4.15.8), 4.0.x (< 4.0.10.17)
⚔️ 공격 벡터
특별히 구성된 SQL 쿼리 결과나 데이터베이스 컬럼 콘텐츠를 통해 GIS editor, search, export 기능에서 XSS 페이로드 주입
🛡️ 대응 방법
phpMyAdmin을 4.6.4, 4.4.15.8, 4.0.10.17 이상 버전으로 즉시 업그레이드
🔧 검증 코드
phpMyAdmin의 버전 번호를 확인합니다. 4.6.4 미만, 4.4.15.8 미만, 또는 4.0.10.17 미만이면 즉시 업그레이드 필요
grep -i 'version' /path/to/phpmyadmin/libraries/Config.class.php 2>/dev/null | head -1 || find /var/www -name 'version.json' -exec cat {} \; 2>/dev/null | grep -oP '"version":\s*"\K[^"]+' | head -1