🇰🇷 한글 설명
Progressive Robot hMailServer 6.0.0부터 6.3.5 버전에서 메시지 헤더 필드 디코딩 시 비효율적인 알고리즘 복잡성 문제가 발견되었습니다. 공격자가 특수하게 조작된 RFC 2047 인코딩된 헤더를 포함한 메시지를 보내면 서버의 작업 스레드가 과도하게 점유되어 IMAP, SMTP, POP3 서비스 및 웹메일이 중단될 수 있습니다.
💡 쉬운 설명
악의적인 메시지를 보내 서버가 헤더를 읽는 데 너무 많은 시간을 쓰게 만들어 서비스를 멈추게 하는 공격입니다. 마치 아주 긴 줄이 있는 문장을 읽을 때마다 처음부터 다시 읽어야 하는 비효율적인 상황을 이용하는 것입니다.
🇺🇸 원문 (English)
Inefficient algorithmic complexity in the decoding of message header fields in Progressive Robot hMailServer 6.0.0 through 6.3.5 allows a remote unauthenticated attacker to make the IMAP, SMTP and POP3 services, or the webmail, unavailable by sending a message. The server unfolded a decoded header value by finding each line break from the end of the value and removing it, moving the rest of the value each time, so its work grew with the square of the number of line breaks, and an RFC 2047 encoded word may decode to any number of them. A received message whose Subject or other header field holds such a value keeps a worker thread busy for minutes or longer each time the value is read: when the recipient's IMAP client searches, sorts or threads the folder by a header, when the webmail lists the folder, and, where configured, when a rule tests a header, a spam tag is added to the Subject or an abuse report is read during delivery. The IMAP worker threads are shared with SMTP and POP3, so a few such messages stop those services responding. The server's reading of a message header from its file also searched everything read so far after each 4,000 bytes, costing seconds for a header of tens of megabytes.
📍 영향받는 시스템
Progressive Robot hMailServer 6.0.0 ~ 6.3.5
⚔️ 공격 벡터
원격에서 인증되지 않은 공격자가 특수하게 조작된 헤더를 포함한 메시지를 전송
🛡️ 대응 방법
hMailServer를 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 6.0.0보다 크고 6.3.5보다 작거나 같으면 취약한 상태입니다.
powershell -Command "(Get-ItemProperty 'HKLM:\SOFTWARE\Progressive\hMailServer').Version"