
PEACH
Un cadre d’isolation des locataires
TrieRouter looked up the handler of a route by the HTTP method name on a plain object. When the method of a request was the name of an inherited property such as __proto__, the router wrote a property to Object.prototype. As a result, later requests in the same process could fail until the process was restarted.
TrieRouter keeps the handlers of each route in an object keyed by the HTTP method. The object had the default prototype, so a method name such as __proto__ returned an inherited value instead of nothing. The router then treated this value as a matched handler and added a property to it.
For __proto__, the value is Object.prototype. The added property is enumerable, so it appears in every plain object in the process. Parts of Hono that iterate over plain objects, such as response header handling, then throw an error.
This issue arises when TrieRouter is in use and a method name chosen by the client reaches the router. The default Hono uses TrieRouter when the registered routes are not supported by RegExpRouter. Most runtimes and HTTP/1.1 parsers reject such method names, but they can reach the router over HTTP/2 on Node.js or through the Method Override Middleware.
An unauthenticated client may make later requests fail with a single request. This may lead to:
hono/method-override. Applications on Cloudflare Workers and Bun are not affected unless they use hono/method-override.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."