Vulnérabilité dans zope (CVE-2021-32811)
Résumé
Vulnérabilité dans zope (CVE-2021-32811). L'exploitation peut entraîner la prise de contrôle totale du système. Exploitable via Products.PythonScripts. Atténuation : mise à jour vers 5.3 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
Background: The optional add-on package Products.PythonScripts adds Script (Python) to the list of content items a user can add to the Zope object database. Inside these scripts users can write Python code that is executed when rendered through the web. The code environment in these script objects is limited, it relies on the RestrictedPython package to provide a "safe" subset of Python instructions as well as the AccessControl package that defines security policies for execution in the context of a Zope application.
Recently the AccessControl package was updated to fix a remote code execution security issue. A link to the security advisory is provided in the References section below. The bug tightens the AccessControl security policies for Zope by blocking access to unsafe classes inside the Python string module.
You are only affected if the following are true:
- You use Python 3 for your Zope deployment (Zope 4 on Python 2 is not affected)
- You run Zope 4 below version 4.6.3 or Zope 5 below version 5.3
- You have installed the optional
Products.PythonScriptsadd-on package
By default, you need to have the admin-level Zope "Manager" role to add or edit Script (Python) objects through the web. Only sites that allow untrusted users to add/edit these scripts through the web - which would be a very unusual configuration to begin with - are at risk.
Patches
The problem has been fixed in AccessControl versions 4.3 and 5.2. Zope releases 4.6.3…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2021-32811 a été découverte dans zope.
Des attaquants peuvent cibler un point d'entrée spécifique comme Products.PythonScripts à distance pour détourner le produit.
L'exploitation peut entraîner la prise de contrôle totale du système.
Action : mettez à jour zope vers 5.3 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « zope CVE-2021-32811 » sur le site de l'éditeur.
CVE-2021-32811 (zope) — CWE-1321
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : Products.PythonScripts / RestrictedPython / AccessControl / string
Correctif : 5.3 — appliquer immédiatement
Contournement : A site administrator can restrict adding/editing Script (Python) objects through the web using the standard Zope user/role permission mechanisms.
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-1321) affecte zope. Les attaquants atteignent le code vulnérable via Products.PythonScripts.
Consultez l'avis de l'éditeur pour les versions affectées de zope. Surface d'attaque : Products.PythonScripts / RestrictedPython / AccessControl / string.
Gravité : ?. L'exploitation peut entraîner la prise de contrôle totale du système.
Mettre à jour vers 5.3.
Contournement : A site administrator can restrict adding/editing Script (Python) objects through the web using the standard Zope user/role permission mechanisms.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
É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 し、稼働しているサービス・バージョンを把握する。 -
2Apply 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. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3Apply patch patch
Upgrade zope to 5.3ステージング環境で 5.3 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com