漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Litestar: AllowedHostsMiddleware bypasses host validation via client-controlled X-Forwarded-Host header
Vulnerability Description
Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. In versions prior to 2.22.0, an attacker can bypass the allowed hosts validation by omitting the Host header and supplying an X-Forwarded-Host header set to a whitelisted domain. The AllowedHostsMiddleware trusts the X-Forwarded-Host header as a fallback when the Host header is absent. Since X-Forwarded-Host is a client-controllable header, this enables host header injection attacks such as password reset poisoning, cache poisoning, and server-side request routing manipulation. Any application using AllowedHostsConfig is affected when deployed without a reverse proxy that strips X-Forwarded-Host, or when accepting HTTP/1.0 connections. This issue has been fixed in version 2.22.0.
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Vulnerability Type
对HTTP头部进行脚本语法转义处理不恰当
Vulnerability Title
Litestar 跨站脚本漏洞
Vulnerability Description
Litestar是Litestar组织开源的一款基于Python的异步Web开发框架。 Litestar 2.22.0之前版本存在跨站脚本漏洞,该漏洞源于AllowedHostsMiddleware在缺少Host标头时信任客户端可控的X-Forwarded-Host标头作为回退,导致攻击者可以绕过允许主机验证,发起主机标头注入攻击,如密码重置投毒、缓存投毒和服务端请求路由操纵。
CVSS Information
N/A
Vulnerability Type
N/A