🇰🇷 한글 설명
phpMyAdmin SQL-Parser 6.0.0 및 6.0.1의 src/Statements/ExplainStatement.php 파일 parse 함수에서 취약점이 발견되었습니다. nextToken 인자를 조작하면 잘못된 타입 변환이 발생하며, 원격에서 공격이 가능하고 익스플로잇이 공개되었습니다. 벤더에 사전 통보했으나 응답이 없었습니다.
💡 쉬운 설명
SQL 문을 분석하는 phpMyAdmin 구성요소에 결함이 있어, 악의적인 입력으로 프로그램이 잘못 동작할 수 있습니다. 공격 코드가 이미 공개되어 있어 빠른 점검과 조치가 필요합니다.
🇺🇸 원문 (English)
A vulnerability was found in phpMyAdmin SQL-Parser 6.0.0/6.0.1. The affected element is the function parse of the file src/Statements/ExplainStatement.php. Performing a manipulation of the argument nextToken results in incorrect type conversion. The attack is possible to be carried out remotely. The exploit has been made public and could be used. The vendor was contacted early about this disclosure but did not respond in any way.
📍 영향받는 시스템
phpMyAdmin SQL-Parser 6.0.0, 6.0.1 버전을 사용하는 시스템
⚔️ 공격 벡터
원격에서 조작된 nextToken 인자를 전달해 잘못된 타입 변환을 유발하는 방식
🛡️ 대응 방법
SQL-Parser를 취약점이 수정된 최신 버전으로 업데이트하고, 수정 전까지 외부 노출을 차단합니다.
🔧 검증 코드
출력된 versions 값이 6.0.0 또는 6.0.1이면 취약하며, 그 외 수정된 버전이면 해당 취약점에서 벗어난 것입니다.
composer show sql-parser 2>/dev/null | grep -E 'versions|name'