Автоматический запрет Progressive Robot hMailServer 6.0.0-B1 через 6.3.7 можно запретить адрес после повторных неудачных входов, что позволяет удаленному неаутентифицированному злоумышленнику, который может подключиться с двух или более адресов, угадывать пароли учетных записей - через SMTP AUTH, IMAP и POP3, а также через ManageSieve, CalDAV / CardDAV и REST API, где они включены (по умолчанию). Когда неудачные входы в систему из одного адреса достигают MaxInvalidLogonAttempts (3 по умолчанию), сервер очищает количество адресов, сохраняет диапазон IP, который отказывается от адреса для AutoBanMinutes (60 по умолчанию) и прекращает соединение. Диапазон называется " Auto-ban: " , за которым следует имя пользователя входа, которое достигло предела, и никакие два диапазона не могут иметь одно и то же имя.
Сервер выбирает имя, проверяя кандидатов как написанное - имя, затем имя с номером, случайным суффиксом или GUID - и только затем сокращает его до 100 символов, которые содержит столбец базы данных, так что с именем пользователя из 90 символов или более каждый кандидат один раз вырезан. В то время как один диапазон, названный в честь такого имени пользователя, стоит, каждый последующий запрет, названный в честь имени пользователя с теми же первыми 90 символами, поэтому терпит неудачу в базе данных: ни один диапазон не сохраняется, адрес не отклоняется, и, поскольку его количество уже очищено, ему дается следующий полный набор попыток. Имя пользователя от 78 до 89 символов делает более поздние баны терпят неудачу таким же образом: со второго, третьего или двенадцатого, в зависимости от его длины и базы данных, или, от 78 до 85 символов, случайно.
Злоумышленник, у которого когда-то был запрещен адрес под таким именем, может таким образом угадывать пароли с любого другого адреса, заканчивая каждый набор попыток входом под именем такого рода; каждое неудачное сохранение сообщается в журнале ошибок сервера (как ошибка базы данных HM5032, а из 6.2.19 также как HM6099). В SQL Server имя пользователя, содержащее символы за пределами кодовой страницы базы данных, имеет тот же эффект в любой длине, потому что проверка сравнивала имена в этой кодовой странице; это сохранение отклоняется собственной проверкой сервера имени, без ошибки базы данных, и сообщается только из 6.2.19 (HM6099). A user name holding a NUL character, which the web services listener's HTTP Basic sign-in (off by default) carries from 6.3.3 and, on the Linux builds, IMAP LOGIN, offered as installed, from 6.3.0, makes bans fail at any length: on MySQL, MariaDB and PostgreSQL the statements that check the name and save the range end at the character, so that every ban named after such a name fails, from the first and from a single address, and, its count having already been cleared, the address is given the next full set of attempts; on SQL Server and SQL Server Compact the name is bound only as far as the character, so that while one range under the part before it stands, every later ban named after such a name fails.
На SQL Server, а также на MySQL и MariaDB для учетной записи, чья локальная часть имеет девять символов или более, предположение на учетной записи может само по себе содержать имя такого рода, поскольку эти базы данных находят учетную запись под ее адресом, за которой следуют пробелы (и SQL Server также под одним удерживающим символы, которые игнорирует его сравнение), так что даже MaxInvalidLogonAttempts из 1, который запрещает каждый неудачный вход под именем, которое он дал, избегает его.
Показать оригинальное описание (EN)
The auto-ban of Progressive Robot hMailServer 6.0.0-B1 through 6.3.7 can be kept from banning an address after repeated failed logons, which allows a remote unauthenticated attacker who can connect from two or more addresses to go on guessing account passwords - over SMTP AUTH, IMAP and POP3, and over ManageSieve, CalDAV/CardDAV and the REST API where those are turned on (off by default) - without being banned. When the failed logons counted from one address reach MaxInvalidLogonAttempts (3 by default), the server clears that address's count, saves an IP range that refuses the address for AutoBanMinutes (60 by default) and drops the connection. The range is named "Auto-ban: " followed by the user name of the logon that reached the limit, and no two ranges may have the same name. The server chooses the name by checking candidates as written - the name, then the name with a number, a random suffix or a GUID added - and only then cuts it to the 100 characters the database column holds, so that with a user name of 90 characters or more every candidate is the same once cut. While one range named after such a user name stands, every later ban named after a user name with the same first 90 characters therefore fails at the database: no range is saved, the address is not refused, and, its count having already been cleared, it is given the next full set of attempts. A user name of 78 to 89 characters makes later bans fail in the same way: from the second, the third or the twelfth on, depending on its length and the database, or, from 78 to 85 characters, by chance. An attacker who has once had an address banned under such a name can in this way keep guessing passwords from any other address, ending each set of attempts with a logon under a name of that kind; each failed save is reported in the server's error log (as the database error HM5032, and from 6.2.19 also as HM6099). On SQL Server a user name holding characters outside the database's code page has the same effect at any length, because the check compared names in that code page; that save is refused by the server's own check of the name, with no database error, and is reported only from 6.2.19 (HM6099). A user name holding a NUL character, which the web services listener's HTTP Basic sign-in (off by default) carries from 6.3.3 and, on the Linux builds, IMAP LOGIN, offered as installed, from 6.3.0, makes bans fail at any length: on MySQL, MariaDB and PostgreSQL the statements that check the name and save the range end at the character, so that every ban named after such a name fails, from the first and from a single address, and, its count having already been cleared, the address is given the next full set of attempts; on SQL Server and SQL Server Compact the name is bound only as far as the character, so that while one range under the part before it stands, every later ban named after such a name fails. On SQL Server, and on MySQL and MariaDB for an account whose local part has nine characters or more, a guess at the account can itself carry a name of that kind, since those databases find an account under its address followed by spaces (and SQL Server also under one holding characters its comparison ignores), so that not even a MaxInvalidLogonAttempts of 1, which bans each failed logon under the name it gave, avoids it there.
Характеристики атаки
Последствия
Строка CVSS v3.1