
PEACH
Un cadre d’isolation des locataires
getPath() assumed that the URL of a request always has a scheme and a host. On Bun, the URL of a request without a usable Host header has only the path. For such a request, Hono dropped the first segment of the path before routing. As a result, a request could reach a route that a reverse proxy in front of the application blocks by path.
Hono takes the path of a request from its URL string. The code looked for the start of the path after the scheme and the host, so it needed an absolute URL.
Bun passes the request target as it is when it cannot build the host part. This happens for an HTTP/1.0 request without a Host header and for a request with an empty Host header. The URL then starts with the path, and Hono started the path at the second slash.
Hono itself stays consistent, because the router and the middleware use the same value. The difference is between Hono and a component in front of it that saw the original path.
This issue arises when the application runs on Bun, and a reverse proxy that restricts access by path passes a request without a usable Host header to it. Node.js with @hono/node-server, Deno, and Cloudflare Workers always give an absolute URL and are not affected.
An unauthenticated client may make Hono route a request with a different path from the one the reverse proxy checked. This may lead to:
Source: NVD
Évaluation gratuite des vulnérabilités
Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.
Obtenez une démo personnalisée
"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."