プラットフォーム
php
コンポーネント
spatie/browsershot
修正版
5.0.2
5.0.2
CVE-2024-21547は、PHPパッケージspatie/browsershotのバージョン5.0.1以前に存在するディレクトリトラバーサル脆弱性です。この脆弱性を悪用されると、攻撃者はサーバー上の任意のファイルを読み取ることが可能となり、機密情報の漏洩につながる可能性があります。影響を受けるバージョンは5.0.1以前であり、バージョン5.0.2で修正されています。
この脆弱性は、spatie/browsershotを使用しているアプリケーションにおいて、攻撃者がファイル://プロトコルチェックをバイパスし、サーバー上の任意のファイルにアクセスすることを可能にします。例えば、攻撃者は設定ファイル、ソースコード、または機密データを含むファイルを読み取る可能性があります。この脆弱性は、特にファイルアクセスを許可する設定でspatie/browsershotを使用している場合に深刻な影響を及ぼします。攻撃者は、この脆弱性を利用して、サーバーの機密情報を窃取し、さらなる攻撃の足がかりに利用する可能性があります。
CVE-2024-21547は、2024年12月18日に公開されました。現時点では、公的なPoC(Proof of Concept)は確認されていませんが、脆弱性の性質上、悪用される可能性は否定できません。CISAのKEV(Known Exploited Vulnerabilities)カタログへの登録状況は不明です。
Applications using the spatie/browsershot package in their PHP projects are at risk. This includes websites and web applications that rely on browsershot for generating screenshots or PDFs from web pages. Shared hosting environments where the spatie/browsershot package is installed globally are particularly vulnerable.
• php / composer:
composer show spatie/browsershotIf the version is <=5.0.1, the system is vulnerable. • generic web:
curl -I 'http://your-website.com/browsershot?url=file:\\\/etc/passwd' # Check for 200 OK and file content in response• generic web:
Check access logs for requests containing file:\\\
disclosure
エクスプロイト状況
EPSS
0.05% (16% パーセンタイル)
CISA SSVC
CVSS ベクトル
この脆弱性への対応策として、まずspatie/browsershotをバージョン5.0.2以上にアップデートすることを推奨します。アップデートが困難な場合は、ファイルアクセスを制限する設定変更や、WAF(Web Application Firewall)によるファイルアクセス制御などの緩和策を検討してください。また、ファイルパスの検証を強化し、不正なファイルアクセスを防止するためのカスタムコードを実装することも有効です。アップデート後、ファイルアクセスを試みることで、脆弱性が修正されていることを確認してください。
Actualice la biblioteca spatie/browsershot a la versión 5.0.2 o superior. Esto solucionará la vulnerabilidad de path traversal. Ejecute `composer update spatie/browsershot` para actualizar a la versión segura.
脆弱性分析と重要アラートをメールでお届けします。
CVE-2024-21547は、spatie/browsershotのバージョン5.0.1以前に存在するディレクトリトラバーサル脆弱性で、攻撃者がサーバー上の任意のファイルを読み取れる可能性があります。
はい、spatie/browsershotのバージョン5.0.1以前を使用している場合は、この脆弱性に影響を受けます。
spatie/browsershotをバージョン5.0.2以上にアップデートすることで、この脆弱性を修正できます。
現時点では公的なPoCは確認されていませんが、悪用される可能性は否定できません。
spatie/browsershotの公式アドバイザリは、GitHubリポジトリで確認できます: [https://github.com/spatie/browsershot/security/advisories/CVE-2024-21547](https://github.com/spatie/browsershot/security/advisories/CVE-2024-21547)