Слушатель веб-сервисов Progressive Robot hMailServer 6.3.3 через 6.3.7 не применяет диапазоны сервера IP к соединениям, которые он принимает, что позволяет удаленному не аутентифицированному злоумышленнику угадывать пароли учетных записей на входах слушателя после того, как авто-бан запретил адрес злоумышленника. Слушатель выключен по умолчанию (WebServicesHttpPort и WebServicesHttpsPort 0). От 6.3.3 его CardDAV, а от 6.3.4 его CalDAV и его Outlook Autodiscover ответ на запрос, который несет учетные данные, войдите в учетную запись с HTTP Basic по HTTPS.
Неудачный вход там засчитывается в автоматический запрет, как неудачный вход в любой другой протокол: когда неудачи, отсчитанные с одного адреса, достигают MaxInvalidLogonAttempts (по умолчанию 3 в течение 30 минут), сервер записывает диапазон IP, который отказывается от адреса для AutoBanMinutes (по умолчанию 60), а слушатели SMTP, POP3, IMAP и ManageSieve отказываются от него. Слушатель веб-сервисов не спрашивал диапазон IP, когда он принимал соединение (в 6.3.3 ничего, от 6.3.4 только политика страны), поэтому он продолжал обслуживать такой адрес, независимо от того, был ли его запрет заработан там или на другом протоколе, а также адрес, который диапазон администратора IP не позволяет ничего держать. Каждый неудачный вход туда закрывал только свое соединение, а следующее соединение принималось, во время запрета и после него.
Правило брандмауэра и команда, которую может использовать автоматический бан (AutoBanFirewall и AutoBanCommand, отключены по умолчанию), сообщаются только портам SMTP, POP3 и IMAP, так что правило брандмауэра и упакованный хук не закрывали порты слушателя, а fail2ban jail упакован для Linux (выключен по умолчанию) перечисляет только порты почты и ManageSieve. Единственным ограничением, оставшимся на догадках на одной учетной записи, была блокировка по имени (AccountLockoutThreshold в hMailServer.ini, 0, выключен, по умолчанию), которая имеет отдельный дефект, исправленный в том же выпуске. Недостаток достигается на порту HTTPS слушателя: за TLS-терминирующим прокси слушатель видит адрес прокси для каждого клиента, и бан никогда не называл там клиента.
Показать оригинальное описание (EN)
The web services listener of Progressive Robot hMailServer 6.3.3 through 6.3.7 does not apply the server's IP ranges to the connections it accepts, which allows a remote unauthenticated attacker to go on guessing account passwords at the listener's sign-ins after the auto-ban has banned the attacker's address. The listener is off by default (WebServicesHttpPort and WebServicesHttpsPort 0). From 6.3.3 its CardDAV, and from 6.3.4 its CalDAV and its Outlook Autodiscover answer to a request that carries credentials, sign an account in with HTTP Basic over HTTPS. A failed sign-in there counts towards the auto-ban as a failed logon on any other protocol does: when the failures counted from one address reach MaxInvalidLogonAttempts (3 within 30 minutes by default), the server writes an IP range that refuses the address for AutoBanMinutes (60 by default), and the SMTP, POP3, IMAP and ManageSieve listeners refuse it. The web services listener asked no IP range when it accepted a connection (in 6.3.3 nothing, from 6.3.4 the country policy alone), so it went on serving such an address, whether its ban had been earned there or on another protocol, and also an address that an administrator's IP range allowing nothing holds. Each failed sign-in there closed only its own connection, and the next connection was accepted, during the ban and after it. The firewall rule and command the auto-ban can drive (AutoBanFirewall and AutoBanCommand, off by default) are told only the SMTP, POP3 and IMAP ports, so that the firewall rule and the packaged hook did not close the listener's ports, and the fail2ban jail packaged for Linux (off by default) lists only the mail and ManageSieve ports. The only limit left on the guesses at one account there was the per-name lockout (AccountLockoutThreshold in hMailServer.ini, 0, off, by default), which has a separate defect fixed in the same release. The flaw is reached on the listener's HTTPS port: behind a TLS-terminating proxy the listener sees the proxy's address for every client, and a ban never named the client there.
Характеристики атаки
Последствия
Строка CVSS v3.1