Vulnerability Information
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.
Vulnerability Title
@fastify/static vulnerable to route guard bypass via non-canonical path segments
Vulnerability Description
@fastify/static before version 10.1.3 contains an incomplete fix for a previous route guard bypass. The static file handler rejected only parent directory segments, but it did not canonicalize dot segments, duplicate slashes, encoded dots, or backslashes before route matching and before delegating to the send layer. As a result, an unauthenticated attacker could request a file protected by a route based guard using a non canonical path form that misses the guarded route yet resolves back onto the protected file, disclosing its contents. Applications that protect a subtree of the static root with a route based guard are affected, while applications relying on the allowedPath option are not. This is fixed in @fastify/static 10.1.3, which canonicalizes the pathname, including rejecting backslashes, on the path used for routing and serving.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Vulnerability Title
Fastify @fastify/static 路径遍历漏洞
Vulnerability Description
Fastify @fastify/static是Fastify组织的一款提供静态文件服务的插件。 Fastify @fastify/static 10.1.3之前版本存在安全漏洞,该漏洞源于之前路由守卫绕过的修复不完整,未规范化点段、重复斜杠、编码点或反斜杠,可能导致未认证攻击者使用非规范路径形式请求受路由守卫保护的文件,泄露其内容。
CVSS Information
N/A
Vulnerability Type
N/A