@fastify/static vulnerable to route guard bypass via path traversal
概要
@fastify/static vulnerable to route guard bypass via path traversal
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Impact
@fastify/static is vulnerable to a bypass of route-based middleware and guards via non-leading .. and %2E%2E path segments. find-my-way does not normalize .. when matching routes, so a request such as /foo/../deep/secret.txt matches the static plugin's catch-all instead of the guarded /deep/*. The getPathnameForSend helper introduced by the fix for GHSA-x428-ghpx-8j92 only guards against the %2F variant; .. and %2E%2E survive the decodeURI + encodeURI round-trip and are then collapsed away by @fastify/send's path.normalize before its own traversal guard runs.
Applications that rely on route-based middleware or guards to protect files served by @fastify/static can be bypassed with non-leading dot-dot path segments.
Patches
Upgrade to @fastify/static 10.1.1.
Workarounds
Do not use route-based middlewares or guards to protect files served by @fastify/static.
出典: NIST National Vulnerability Database NVD GitHub Advisory
AI要約
外部の AI が作成した要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
@fastify/staticのバージョン10.1.0までには、ファイル解決段階の前にリクエストのパス名でドットドットパスセグメントを拒否できない問題があります。この問題は認証されていない攻撃者が、ルートスコープのミドルウェアをバイパスして静的ルート内のファイルを読むことを可能にします。問題はバージョン10.1.1で修正されています。
@fastify/staticにおけるパストラバーサル脆弱性
バージョン10.1.0までの@fastify/static
認証されていない攻撃者が静的ルート内のファイルを読み取ることが可能
@fastify/staticをバージョン10.1.1以降にアップデートする
情報なし
バージョン10.1.0以下を使用しているか確認する
影響パッケージ
参照URL
- advisory nvd.nist.gov
- package github.com
- web cna.openjsf.org
- web github.com
- web github.com
- web github.com
- web github.com