Allure 2 является ответвлением версии 2.x от Allure Report, многоязычного тестового средства отчетности. До 2.39.0 сервер HTTP, запущенный с помощью allure serve и allure open, использует URI.getPath() в Commands.setUpServer() в allure-commandline/src/main/java/io/qameta/allure/Commands.java и проходит декодированный в процентах путь запроса к reportDirectory.resolve() без нормализации результата или подтверждения того, что он остается внутри этого каталога. Неаутентифицированный клиент, который может достичь сервера, может представить сегменты родительского каталога, включая сегменты с процентным кодированием, и заставить serveFile () вернуть любой обычный файл, читаемый процессом Allure.
Сервер связывается с localhost по умолчанию, но опция --host может предоставить его другим системам, и локальные пользователи, соседние контейнеры или атаки браузера могут достичь локального слушателя. Это может раскрыть учетные данные, конфигурацию, исходный код, секреты сборки и другие данные CI / CD. Эта проблема исправлена в версии 2.39.0.
Показать оригинальное описание (EN)
Allure 2 is the version 2.x branch of Allure Report, a multi-language test reporting tool. Prior to 2.39.0, the HTTP server started by allure serve and allure open uses URI.getPath() in Commands.setUpServer() in allure-commandline/src/main/java/io/qameta/allure/Commands.java and passes the percent-decoded request path to reportDirectory.resolve() without normalizing the result or confirming that it remains inside that directory. An unauthenticated client that can reach the server can submit parent-directory segments, including percent-encoded segments, and cause serveFile() to return any regular file readable by the Allure process. The server binds to localhost by default, but the --host option can expose it to other systems, and local users, adjacent containers, or browser-origin attacks may reach a local listener. This can disclose credentials, configuration, source code, build secrets, and other CI/CD data. This issue is fixed in version 2.39.0.
Характеристики атаки
Последствия
Строка CVSS v3.1