React Router — это маршрутизатор для React. В версиях @react-router/node с 7.0.0 по 7.9.3, @remix-run/deno до версии 2.17.2 и @remix-run/node до версии 2.17.2, если createFileSessionStorage() используется из @react-router/node (или @remix-run/node/@remix-run/deno в Remix v2) с неподписанный файл cookie, злоумышленник может заставить сеанс попытаться выполнить чтение/запись из местоположения за пределами указанного каталога файлов сеанса. Успех атаки будет зависеть от разрешений процесса веб-сервера на доступ к этим файлам.
Прочитанные файлы не могут быть возвращены непосредственно злоумышленнику. Чтение файла сеанса будет успешным только в том случае, если файл соответствует ожидаемому формату файла сеанса. Если файл соответствует формату файла сеанса, данные будут внесены в сеанс на стороне сервера, но не будут возвращены злоумышленнику напрямую, если только логика приложения не вернет конкретную информацию о сеансе.
Эта проблема исправлена в @react-router/node версии 7.9.4, @remix-run/deno версии 2.17.2 и @remix-run/node версии 2.17.2.
Показать оригинальное описание (EN)
React Router is a router for React. In @react-router/node versions 7.0.0 through 7.9.3, @remix-run/deno prior to version 2.17.2, and @remix-run/node prior to version 2.17.2, if createFileSessionStorage() is being used from @react-router/node (or @remix-run/node/@remix-run/deno in Remix v2) with an unsigned cookie, it is possible for an attacker to cause the session to try to read/write from a location outside the specified session file directory. The success of the attack would depend on the permissions of the web server process to access those files. Read files cannot be returned directly to the attacker. Session file reads would only succeed if the file matched the expected session file format. If the file matched the session file format, the data would be populated into the server side session but not directly returned to the attacker unless the application logic returned specific session information. This issue has been patched in @react-router/node version 7.9.4, @remix-run/deno version 2.17.2, and @remix-run/node version 2.17.2.
Характеристики атаки
Последствия
Строка CVSS v3.1