Vulnérabilité dans zope (CVE-2021-32807)
Résumé
vulnérabilité dans zope (CVE-2021-32807). Les données peuvent être altérées par des attaquants. Exploitable via ``AccessControl``. Atténuation : mise à jour vers `5.2` 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 'zope' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `zope` を grep し、稼働しているサービス・バージョンを把握する。
-
5Apply temporary workaround mitigate
A site administrator can restrict adding/editing `Script (Python)` objects through the web using the standard Zope user/role permission mechanisms.パッチが適用されるまでの応急処置として、A site administrator can restrict adding/editing `Script (Python)` objects through the web using the standard Zope user/role permission mechanisms. を実施。回避策の副作用 (機能低下) を確認した上で。
-
6Apply patch patch
Upgrade zope to 5.2ステージング環境で 5.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、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-2021-32807
- package https://github.com/zopefoundation/AccessControl
- web https://github.com/zopefoundation/AccessControl/blob/master/CHANGES.rst#51-2021-07-30
- web https://github.com/zopefoundation/AccessControl/commit/b42dd4badf803bb9fb71ac34cd9cb0c249262f2c
- web https://github.com/zopefoundation/AccessControl/security/advisories/GHSA-qcx9-j53g-ccgf
- web https://github.com/zopefoundation/Zope/security/advisories/GHSA-g4gq-j4p2-j8fr
- web https://github.com/zopefoundation/AccessControl/commit/ae2dab0cc34e6dd1561c5b12d4a56cd140f87e1d
- web https://github.com/zopefoundation/Zope/commit/869f947e586517566509e0ccdd4d99b60704cc02
- web https://github.com/zopefoundation/Zope/commit/f72a18dda8e9bf2aedb46168761668464a4be988
- web https://github.com/pypa/advisory-database/tree/main/vulns/accesscontrol/PYSEC-2021-335.yaml
- web https://github.com/pypa/advisory-database/tree/main/vulns/accesscontrol/PYSEC-2021-370.yaml
- web https://github.com/pypa/advisory-database/tree/main/vulns/zope/PYSEC-2021-368.yaml
- web https://github.com/pypa/advisory-database/tree/main/vulns/zope/PYSEC-2021-875.yaml
- web https://github.com/advisories/GHSA-qcx9-j53g-ccgf