Spatie Browsershotに任意のサーバーファイルを読まれる脆弱性
Summary
Spatie Browsershot 2.2.0以降5.5.0未満に、setHtml()に渡されたHTMLを通じてサーバー上のファイルを読み取られる脆弱性が見つかりました。読み取られた内容は、生成されるPDFやスクリーンショットに描画されるおそれがあります。修正版の5.5.0に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Spatie Browsershot 2.2.0以降5.5.0未満に、setHtml()に渡されたHTMLを通じてサーバー上のファイルを読み取られる脆弱性が見つかりました。読み取られた内容は、生成されるPDFやスクリーンショットに描画されるおそれがあります。修正版の5.5.0に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| spatiebrowsershot |
≥ 2.2.0, < 5.5.0→ 5.5.0 |
5.5.0 |
Original description The description as published by the source.
Spatie Browsershot 2.2.0 before 5.5.0 contains a local file read vulnerability that allows attackers to read server files by supplying root-relative references in HTML passed to setHtml(). Attackers can embed iframe, img, link or script elements referencing paths like /etc/passwd, which resolve to file:// URLs and render file contents into the returned PDF or screenshot.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com
- web packagist.org