Élévation de privilèges dans wrangler (CVE-2023-7080)
Résumé
Vulnérabilité dans wrangler (CVE-2023-7080). Des informations confidentielles peuvent être exposées. Exploitable via Origin. Atténuation : mise à jour vers 2.20.2 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
The V8 inspector intentionally allows arbitrary code execution within the Workers sandbox for debugging. wrangler dev would previously start an inspector server listening on all network interfaces. This would allow an attacker on the local network to connect to the inspector and run arbitrary code. Additionally, the inspector server did not validate Origin/Host headers, granting an attacker that can trick any user on the local network into opening a malicious website the ability to run code. If wrangler dev --remote was being used, an attacker could access production resources if they were bound to the worker.
Patches
This issue was fixed in wrangler@3.19.0 and wrangler@2.20.2. Whilst wrangler dev's inspector server listens on local interfaces by default as of wrangler@3.16.0, an SSRF vulnerability in miniflare allowed access from the local network until wrangler@3.18.0. wrangler@3.19.0 and wrangler@2.20.2 introduced validation for the Origin/Host headers.
Workarounds
Unfortunately, Wrangler doesn't provide any configuration for which host that inspector server should listen on. Please upgrade to at least wrangler@3.16.0, and configure Wrangler to listen on local interfaces instead with wrangler dev --ip 127.0.0.1 to prevent SSRF. This removes the local network as an attack vector, but does not prevent an attack from visiting a malicious we…
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-2023-7080 a été découverte dans wrangler.
Des attaquants peuvent cibler un point d'entrée spécifique comme Origin à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées.
Action : mettez à jour wrangler vers 2.20.2 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « wrangler CVE-2023-7080 » sur le site de l'éditeur.
CVE-2023-7080 (wrangler) — CWE-269
Vecteur d'attaque : réseau adjacent / non authentifié / sans interaction utilisateur
Surface d'attaque : Origin / Host / miniflare
Correctif : 2.20.2 — appliquer immédiatement
Contournement : Unfortunately, Wrangler doesn't provide any configuration for which host that inspector server should listen on.
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-269) affecte wrangler. Les attaquants atteignent le code vulnérable via Origin sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de wrangler. Surface d'attaque : Origin / Host / miniflare.
Gravité : ?. Des informations confidentielles peuvent être exposées.
Mettre à jour vers 2.20.2.
Contournement : Unfortunately, Wrangler doesn't provide any configuration for which host that inspector server should listen on.
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 'wrangler' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
wranglerを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
Unfortunately, Wrangler doesn't provide any configuration for which host that inspector server should listen on.パッチが適用されるまでの応急処置として、Unfortunately, Wrangler doesn't provide any configuration for which host that inspector server should listen on. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3Apply patch patch
Upgrade wrangler to 2.20.2ステージング環境で 2.20.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
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
- web github.com
- web github.com
- web github.com
- web github.com