CVE-2026-48710 Starlette has missing Host header validation that poisons request.url.path, bypassing path-based security checks
Starlette에는 경로 기반 보안 검사를 우회하여 request.url.path를 독살하는 호스트 헤더 유효성 검사가 없습니다. 기계 번역
설명
Starlette는 경량 ASGI 프레임 워크 / 툴킷입니다. 버전 1.0.1 이전에 HTTP `Host` 요청 헤더가 `request.url`을 재구성하는 데 사용되기 전에 유효성이 검사되지 않았습니다. 라우팅 알고리즘은 `request.url`이 `Host` 헤더에서 다시 빌드되는 동안 원시 HTTP 경로에 의존하기 때문에, 잘못된 헤더는 실제로 요청된 경로와 `request.url.path`를 다르게 만들 수 있다. 따라서, ('scope' 경로가 아닌) 'request.url'에 기반한 보안 제한을 적용하는 미들웨어와 엔드포인트는 우회될 수 있다. 사용자는 버전 1.0.1보다 크거나 같은 버전으로 업그레이드해야 하는데, 이는 잘못된 형식의 값에 대해 `request.url`을 구성할 때 `Host` 헤더가 RFC 9112 3.2 / RFC 3986 3.2.2의 문법에 대해 유효성을 검사하는 것이다.
기계 번역
원문 보기
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.
영향 받는 제품 제품 1개
-
해결 버전 있음
Kludex
starlette
영향 받는 버전
- 1.0.1 미만
해결 버전
- 1.0.1 이상