🇰🇷 한글 설명
Adminer 6.0.2 미만 버전에서 CONNECTION_ID() 데이터베이스 결과가 적절한 이스케이프 처리 없이 자바스크립트에 삽입되는 XSS 취약점이 존재합니다. 공격자가 악성 데이터베이스 서버를 통해 인증된 사용자의 브라우저에서 임의의 자바스크립트를 실행할 수 있으며, 데이터베이스에 FILE 권한이 있는 경우 PHP 파일을 생성하여 원격 코드 실행(RCE)까지 가능합니다.
💡 쉬운 설명
데이터베이스가 보내는 정보를 웹사이트가 검증 없이 그대로 화면에 보여주다가 발생하는 보안 문제입니다. 이를 통해 해커가 사용자의 브라우저를 조종하거나 서버에 악성 파일을 심어 컴퓨터를 장악할 수 있습니다.
🇺🇸 원문 (English)
Adminer before 6.0.2 contains a cross-site scripting vulnerability where the CONNECTION_ID() database result is interpolated into JavaScript without proper escaping, allowing a malicious database server to execute arbitrary JavaScript in the authenticated Adminer origin. In co-located deployments where the database has FILE privileges and can write to the webroot, attackers can use the XSS to submit authenticated SQL requests that write PHP files via INTO DUMPFILE, achieving remote code execution as the web server account.
📍 영향받는 시스템
Adminer 6.0.2 미만 모든 버전
⚔️ 공격 벡터
악성 데이터베이스 서버를 통한 XSS 공격 및 이를 이용한 SQL 기반 파일 쓰기(INTO DUMPFILE)
🛡️ 대응 방법
Adminer를 최신 버전인 6.0.2 이상으로 즉시 업데이트하십시오.
🔧 검증 코드
출력된 결과에서 Adminer의 버전 정보를 확인하여 6.0.2 미만인지 체크합니다.
curl -s http://localhost/adminer.php | grep -E 'version|copyright' || echo 'Version not found'