Удалённый злоумышленник может читать файлы внутри защищённой mod_auth директории без учётных данных, запрашивая их с другим регистром букв.
Исправлено в версиях: 9.3.2.727.3.4.17
Обходной путь: Разместите корень документов на файловой системе, чувствительной к регистру, где несовпадающий регистр не разрешается в защищённый файл.
| inets | с 5.10 → исправлено в 9.3.2.7 |
| otp | с 17.0 → исправлено в 27.3.4.17 |
Команды, использующие Erlang/OTP inets httpd с защищёнными mod_auth директориями на корнях документов в Windows или macOS, или других файловых системах, нечувствительных к регистру.
Удалённый злоумышленник может читать файлы внутри защищённой mod_auth директории без учётных данных, запрашивая их с другим регистром букв. Несовпадающий регистр всё равно разрешается в защищённый файл на файловой системе, нечувствительной к регистру.
Для ошибки требуется блок directory с требованиями аутентификации, защищающий директорию, и корень документов на файловой системе, которая разрешает пути без учёта регистра, например, по умолчанию в Windows и macOS. Затронуты версии OTP с 17.0 до 27.3.4.17, 28.5.0.6 или 29.0.6, и inets с 5.10 до 9.3.2.7, 9.6.2.3 или 9.7.2. Для проверки сравните вашу установленную версию OTP или inets с этими диапазонами и проверьте файловую систему под корнем документов.
Оригинальный заголовок: httpd mod_auth directory protection bypassed by request path casing on case-insensitive filesystems
Improper Handling of Case Sensitivity vulnerability in Erlang/OTP inets httpd allows a remote unauthenticated attacker to read files inside a mod_auth protected directory by requesting them with different casing, on deployments whose filesystem is case-insensitive. mod_auth:secret_path/3 decides whether a resolved filesystem path lies inside a protected directory block by running the configured directory path through re:run/3 without the caseless option. A request for /secret/file against a directory configured as /Secret therefore does not match, so the request is treated as unprotected and no authentication challenge is issued, while the filesystem resolves the differently cased path to the same file and mod_get serves it. Deployments on case-sensitive filesystems are unaffected, because there the filesystem itself rejects the mismatched casing. This issue affects OTP from OTP 17.0 before OTP 27.3.4.17, OTP 28.5.0.6, and OTP 29.0.6, corresponding to inets from 5.10 before 9.3.2.7, 9.6.2.3, and 9.7.2. Whether OTP before OTP 17.0, corresponding to inets before 5.10, is affected is unknown.