是 Fastify 的类 Express 中间件引擎。在 9.0.0 至 9.3.5 版本中, 函数将路径作用域中间件的挂载路径与插件作用域前缀拼接时,其结果可能与 Fastify 路由器实际处理的路径不一致。这种情况最常见于作用域前缀以斜杠结尾时,同时也可能出现在使用数组形式的挂载路径,或挂载路径未以斜杠开头的情形中。当这两条路径不一致时,中间件会被静默跳过,而路由处理器仍会正常执行,导致认证、授权或速率限制等路径作用域中间件可通过单次未认证请求被绕过。该问题已在 9.3.6 版本中修复,建议用户升级至 9.3.
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| @fastify/middie | @fastify/middie | 9.0.0 ~ 9.3.6 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet