🇰🇷 한글 설명
Progressive Robot hMailServer 6.2.1부터 6.3.6까지의 발신자 주소 재작성 방식(SRS)에서 권한 검증이 잘못되어, 원격 공격자가 서버를 통해 외부 주소로 메일을 릴레이할 수 있습니다. SRS가 활성화되면 서버는 유효한 SRS 주소로 향하는 모든 메일을 발신자와 관계없이 로컬 수신자 전달로 처리하여 릴레이 규칙과 SMTP 인증이 적용되지 않습니다. SRS는 기본적으로 비활성화되어 있습니다.
💡 쉬운 설명
메일 서버가 특정 형식의 주소로 온 메일을 아무 확인 없이 외부로 전달해 버리는 문제입니다. 이 때문에 스팸이나 악성 메일을 제3자가 서버를 이용해 보낼 수 있습니다.
🇺🇸 원문 (English)
Incorrect authorization in the Sender Rewriting Scheme (SRS) of Progressive Robot hMailServer 6.2.1 through 6.3.6 allows a remote attacker to relay mail through the server to outside addresses. With SRS enabled, the server rewrites the envelope sender of mail it forwards to a signed SRS address at the forwarding domain, and passes a bounce to that address back to the original sender; but it took every message to a valid SRS address, whatever its sender, as delivery to a local recipient, so the relay rules and the SMTP authentication they require were not applied, and the message was delivered to the outside address the SRS address encodes. Anyone holding a valid SRS address of the server, such as the recipient of a forwarded message, could have the server relay mail to the address it encodes for 21 days, and an account holder whose account forwards to an outside mailbox could obtain one for any address. SRS is off by default.
📍 영향받는 시스템
hMailServer 6.2.1 ~ 6.3.6 (SRS 기능 활성화 시)
⚔️ 공격 벡터
서버의 유효한 SRS 주소(예: 전달 메일의 수신자 또는 외부 메일함으로 전달 설정된 계정 보유자)를 확보한 뒤, 그 주소로 메일을 보내 인코딩된 외부 주소로 릴레이시킴
🛡️ 대응 방법
hMailServer를 6.3.7 이상으로 업그레이드하거나, SRS 기능을 비활성화
🔧 검증 코드
SRS 설정이 활성화(Enabled=1 등)되어 있고 버전이 6.2.1~6.3.6 범위에 해당하면 취약하며, 6.3.7 이상이거나 SRS가 비활성화되어 있으면 영향받지 않습니다.
grep -i 'SRS' /path/to/hmailserver/Bin/hMailServer.ini 2>/dev/null; grep -i 'version' /path/to/hmailserver/Bin/hMailServer.ini 2>/dev/null