archivebox に クロスサイトスクリプティング (CVE-2023-45815)
概要
archivebox に XSS (クロスサイトスクリプティング) (CVE-2023-45815) が存在。機密情報が外部に流出する可能性があります。対策: `0.9.0` 以上に更新。
AI要約 snake-internal / snake-material-v2
対応アクション (7段階)
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'archivebox' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `archivebox` を grep し、稼働しているサービス・バージョンを把握する。
-
5暫定回避策の適用 mitigate
Disable the risky extractors by setting [`archivebox config --set SAVE_WGET=False SAVE_DOM=False`](https://github.com/ArchiveBox/ArchiveBox/wiki/Configuration#save_wget), ensure you are always logged out, or serve only a [static HTML version](https:/パッチが適用されるまでの応急処置として、Disable the risky extractors by setting [`archivebox config --set SAVE_WGET=False SAVE_DOM=False`](https://github.com/ArchiveBox/ArchiveBox/wiki/Configuration#save_wget), ensure you are always logged out, or serve only a [static HTML version](https:/ を実施。回避策の副作用 (機能低下) を確認した上で。
-
6パッチ適用 patch
Upgrade archivebox to 0.9.0ステージング環境で 0.9.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
影響パッケージ
参照URL
- advisory https://nvd.nist.gov/vuln/detail/CVE-2023-45815
- package https://github.com/ArchiveBox/ArchiveBox
- web https://github.com/ArchiveBox/ArchiveBox/security/advisories/GHSA-cr45-98w9-gwqx
- web https://github.com/ArchiveBox/ArchiveBox/issues/239
- web https://en.wikipedia.org/wiki/Cross-site_request_forgery
- web https://github.com/ArchiveBox/ArchiveBox#caveats
- web https://github.com/ArchiveBox/ArchiveBox/wiki/Configuration#save_wget
- web https://github.com/ArchiveBox/ArchiveBox/wiki/Publishing-Your-Archive#2-export-and-host-it-as-static-html
- web https://github.com/ArchiveBox/ArchiveBox/wiki/Publishing-Your-Archive#security-concerns
- web https://github.com/ArchiveBox/ArchiveBox/wiki/Security-Overview
- web https://github.com/pypa/advisory-database/tree/main/vulns/archivebox/PYSEC-2023-229.yaml
- web https://github.com/ArchiveBox/ArchiveBox/pull/1773
- web https://github.com/ArchiveBox/ArchiveBox/commit/a6548df8d0aae1d3d326deb1191b128232708166
- web https://github.com/advisories/GHSA-cr45-98w9-gwqx