🇰🇷 한글 설명
Adminer 5.5.1부터 6.0.1 버전의 host_port() 함수에서 로그인 서버 문자열을 부적절하게 파싱하여 발생하는 취약점입니다. 공격자가 조작된 서버 값을 입력하면 권한 제한 검사를 우회하여 내부 네트워크의 임의 호스트 및 특권 포트로 TCP 연결을 시도할 수 있습니다. 이를 통해 서버 측 요청 위조(SSRF) 및 내부 포트 스캐닝이 가능합니다.
💡 쉬운 설명
관리자 도구인 Adminer의 입력값 검사 오류를 이용해, 공격자가 내부 네트워크의 다른 컴퓨터나 서비스에 몰래 접속을 시도할 수 있는 보안 결함입니다. 이를 통해 내부망의 정보를 알아내거나 보안망을 우회하는 공격이 가능해집니다.
🇺🇸 원문 (English)
Adminer 5.5.1 through 6.0.1 improperly parses the login 'server' string in the host_port() function in adminer/include/functions.inc.php. The port capture group requires pure digits anchored to the end of the string, so any server value with a non-digit tail fails the regex and falls back to returning the whole string as the host with an empty port. Because the privileged-port restriction in adminer/include/auth.inc.php inspects only the parsed port, the check is skipped, and the mysqli/mysqlnd client subsequently re-parses host:port from the host string and opens a TCP connection. A remote, unauthenticated attacker who can reach the Adminer login page can submit a crafted value such as 127.0.0.1:80/x to make the server initiate TCP connections to arbitrary internal hosts and privileged ports before credentials are validated, enabling server-side request forgery and blind internal port scanning (connection refused vs. handshake vs. timeout acts as a liveness oracle). This is a regression that re-opens the bypass fixed in 5.5.0 (GHSA-58cq-mgw2-38m5). Fixed in 6.0.2.
📍 영향받는 시스템
Adminer 5.5.1 ~ 6.0.1
⚔️ 공격 벡터
인증되지 않은 원격 공격자가 Adminer 로그인 페이지의 'server' 입력란에 조작된 호스트:포트 값을 입력하여 공격
🛡️ 대응 방법
Adminer를 최신 보안 패치가 적용된 버전인 6.0.2 이상으로 업데이트하십시오.
🔧 검증 코드
Adminer 소스 파일 내 버전 정보가 취약한 범위(5.5.1~6.0.1)에 해당하는지 확인하십시오.
php -r "echo 'Adminer version check required via manual file inspection';" && grep -E 'Adminer [55].[5-9]\.[0-9]|Adminer 6\.0\.[0-1]' adminer.php 2>/dev/null