Addressable является альтернативой реализации URI, которая является частью стандартной библиотеки Ruby's. От 2.0.0 до 2.9.1 реализация Addressable::IDNA.to_unicode в чистом виде декодирует некорректные Punycode A-метки вместо того, чтобы возвращать их без изменений. Таким образом, метки, которые декодируются в текст ASCII или не конвертируются обратно в тот же A-метку, могут заставить Addressable::URI#display_uri показывать хост, которому доверяют, в то время как хост, normalized_host, и цель подключения сохраняют управляемый злоумышленником закодированный хост.
Сравнение доверенного имени с использованием вывода Addressable::IDNA.to_unicode также может рассматривать два разных хоста как один и тот же, не отображая URI. Нативная реализация либидна, to_ascii и normalized_host не затрагиваются. Эта проблема исправлена в версии 2.9.1.
Показать оригинальное описание (EN)
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.0.0 until 2.9.1, the pure-Ruby Addressable::IDNA.to_unicode implementation decodes invalid Punycode A-labels instead of returning them unchanged. Labels that decode to ASCII text or fail to convert back to the same A-label can therefore make Addressable::URI#display_uri show a trusted-looking host while host, normalized_host, and the connection target retain the attacker-controlled encoded host. A trusted-name comparison using Addressable::IDNA.to_unicode output can also treat two different hosts as the same without displaying the URI. The native libidn implementation, to_ascii, and normalized_host are unaffected. This issue is fixed in version 2.9.1.
Характеристики атаки
Последствия
Строка CVSS v3.1