Starlette — это легкий фреймворк/набор инструментов ASGI. До версии 1.0.1 заголовок запроса HTTP `Host` не проверялся перед использованием для восстановления `request.url`. Поскольку алгоритм маршрутизации опирается на необработанный путь HTTP, в то время как `request.url` перестраивается из заголовка `Host`, неверный заголовок может привести к тому, что `request.url.path` будет отличаться от фактически запрошенного пути.
Таким образом, промежуточное ПО и конечные точки, применяющие ограничения безопасности на основе `request.url` (а не исходного пути `scope`), можно обойти. Пользователям следует обновиться до версии, большей или равной версии 1.0.1, которая проверяет заголовок Host на соответствие грамматике RFC 9112 §3.2 / RFC 3986 §3.2.2 при создании `request.url` и возвращается к `scope["server"]` для неверных значений.
Показать оригинальное описание (EN)
Starlette is a lightweight ASGI framework/toolkit. Prior to version 1.0.1, the HTTP `Host` request header was not validated before being used to reconstruct `request.url`. Because the routing algorithm relies on the raw HTTP path while `request.url` is rebuilt from the `Host` header, a malformed header could make `request.url.path` differ from the path that was actually requested. Middleware and endpoints that apply security restrictions based on `request.url` (rather than the raw `scope` path) could therefore be bypassed. Users should upgrade to a version greater than or equal to version 1.0.1, which validates the `Host` header against the grammar of RFC 9112 §3.2 / RFC 3986 §3.2.2 when constructing `request.url` and falls back to `scope["server"]` for malformed values.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 12
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Encode Starlette
cpe:2.3:a:encode:starlette:*:*:*:*:*:python:*:*
|
0.8.3
|
1.0.1
|
|
Redhat Ai_Inference_Server
cpe:2.3:a:redhat:ai_inference_server:*:*:*:*:*:*:*:*
|
3.3.0
|
<= 3.3.5
|
|
Redhat Ansible_Automation_Platform
cpe:2.3:a:redhat:ansible_automation_platform:2.6:-:*:*:*:*:*:*
|
— | — |
|
Redhat Ansible_Automation_Platform
cpe:2.3:a:redhat:ansible_automation_platform:2.7:-:*:*:*:*:*:*
|
— | — |
|
Redhat Migration_Toolkit_For_Applications
cpe:2.3:a:redhat:migration_toolkit_for_applications:*:*:*:*:*:*:*:*
|
— |
8.2.0
|
|
Redhat Openshift_Ai
cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:*
|
3.3
|
3.3.5
|
|
Redhat Openshift_Ai
cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:*
|
3.4
|
3.4.2
|
|
Redhat Openshift_Lightspeed
cpe:2.3:a:redhat:openshift_lightspeed:-:*:*:*:*:*:*:*
|
— | — |
|
Redhat Satellite
cpe:2.3:a:redhat:satellite:6.17:*:*:*:*:*:*:*
|
— | — |
|
Redhat Satellite
cpe:2.3:a:redhat:satellite:6.18:*:*:*:*:*:*:*
|
— | — |
|
Redhat Satellite
cpe:2.3:a:redhat:satellite:6.19:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux_Ai
cpe:2.3:o:redhat:enterprise_linux_ai:3.0:*:*:*:*:*:*:*
|
— | — |