CyberRota Analysis
AI-GeneratedApplications utilizing the Litestar ASGI framework prior to version 2.22.0 are vulnerable to host header injection attacks due to improper validation of the X-Forwarded-Host header when the Host header is omitted. This vulnerability can lead to serious impacts such as password reset poisoning and cache manipulation. Organizations using AllowedHostsConfig without proper reverse proxy configurations or those accepting HTTP/1.0 connections should prioritize upgrading to version 2.22.0 to mitigate these risks.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD 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.