XSS (Cross-Site Scripting) dans archivebox (CVE-2023-45815)
Résumé
XSS dans archivebox (CVE-2023-45815). Des informations confidentielles peuvent être exposées. Atténuation : mise à jour vers `0.9.0` ou plus.
Résumé IA snake-internal / snake-material-v2
Actions de réponse (7 étapes)
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'archivebox' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `archivebox` を grep し、稼働しているサービス・バージョンを把握する。
-
5Apply temporary workaround 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:/ を実施。回避策の副作用 (機能低下) を確認した上で。
-
6Apply patch patch
Upgrade archivebox to 0.9.0ステージング環境で 0.9.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Paquets affectés
Références
- 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