🇰🇷 한글 설명
MERAK Mail Server 8.3.8r 이전 버전과 VisNetic MailServer 8.5.0.5 이전 버전에서 validatefolder PHP 함수가 언어 설정 파라미터의 전체 Windows/UNC 경로를 검증하지 않아, 인증된 사용자가 임의의 파일을 포함할 수 있는 디렉토리 순회 취약점입니다. CVE-2005-4558에 대한 불완전한 패치로 인해 발생했습니다.
💡 쉬운 설명
메일 서버의 언어 설정 기능에서 공격자가 서버의 파일 경로를 조작해 다른 폴더의 파일에 접근할 수 있는 문제입니다. 인증된 사용자만 공격 가능합니다.
🇺🇸 원문 (English)
Absolute path directory traversal vulnerability in (1) MERAK Mail Server for Windows 8.3.8r with before IceWarp Web Mail 5.6.1 and (2) VisNetic MailServer before 8.5.0.5 allows remote authenticated users to include arbitrary files via a modified language parameter and a full Windows or UNC pathname in the lang_settings parameter to mail/index.html, which is not properly sanitized by the validatefolder PHP function, possibly due to an incomplete fix for CVE-2005-4558.
📍 영향받는 시스템
MERAK Mail Server 8.3.8r 이전, VisNetic MailServer 8.5.0.5 이전, IceWarp Web Mail 5.6.1 이전
⚔️ 공격 벡터
mail/index.html의 lang_settings 파라미터에 전체 Windows/UNC 경로를 입력하여 임의의 파일 포함 실행
🛡️ 대응 방법
MERAK Mail Server 및 VisNetic MailServer를 최신 버전으로 업데이트하고 사용자 입력에 대한 경로 검증 강화
🔧 검증 코드
오류나 경고 메시지가 반환되면 취약점이 존재하는 것으로 추정되며, 접근 제어를 강화하거나 서버를 업데이트해야 합니다.
curl -u user:pass 'http://target/mail/index.html?lang_settings=C:\Windows\system32\config\sam' 2>/dev/null | grep -i 'error\|warning'