Astro: Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystems
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| withastroastro | — | 記載なし |
| npm@astrojs/node |
11.1.11 以前→ 記載なし |
記載なし |
| npmastro |
5.14.3 以上 7.4.7 未満→ 7.4.7 |
7.4.7 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Astro is a web framework for content-driven websites. From 5.14.3 until 7.4.7, Astro's /_image endpoint compared the requested local-image path with the build output directory without preserving case on case-sensitive filesystems. A sibling directory whose path differed from the output directory only by letter case could therefore pass the containment check, allowing an unauthenticated requester to read image files accepted by the image service from outside the output directory. Exploitation required on-demand rendering with the @astrojs/node adapter, a case-sensitive filesystem, and a preexisting case-variant sibling directory; ordinary traversal to unrelated paths was already rejected. This issue is fixed in Astro version 7.4.7.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com