Vulnérabilité dans projen (CVE-2021-21423)
Résumé
Vulnérabilité dans projen (CVE-2021-21423). Des informations confidentielles peuvent être exposées. Exploitable via projen. Atténuation : mise à jour vers 0.16.41 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
projen is a project generation tool that synthesizes project configuration files such as package.json, tsconfig.json, .gitignore, GitHub Workflows, eslint, jest, and more, from a well-typed definition written in JavaScript. Users of projen's NodeProject project type (including any project type derived from it) include a .github/workflows/rebuild-bot.yml workflow that may allow any GitHub user to trigger execution of un-trusted code in the context of the "main" repository (as opposed to that of a fork). In some situations, such untrusted code may potentially be able to commit to the "main" repository.
The rebuild-bot workflow is triggered by comments including @projen rebuild on pull-request to trigger a re-build of the projen project, and updating the pull request with the updated files. This workflow is triggered by an issue_comment event, and thus always executes with a GITHUB_TOKEN belonging to the repository into which the pull-request is made (this is in contrast with workflows triggered by pull_request events, which always execute with a GITHUB_TOKEN belonging to the repository from which the pull-request is made).
Repositories that do not have branch protection configured on their default branch (typically main or master) could possibly allow an untrusted user to gain access to secrets configured on the repository (such as NPM tokens, etc). Branch protection prohibits this escalation, as the managed GITHUB_TOKEN would not b…
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-21423 a été découverte dans projen.
Des attaquants peuvent cibler un point d'entrée spécifique comme projen à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées.
Action : mettez à jour projen vers 0.16.41 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « projen CVE-2021-21423 » sur le site de l'éditeur.
CVE-2021-21423 (projen) — CWE-527
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : projen / eslint / jest / NodeProject
Correctif : 0.16.41 — appliquer immédiatement
Contournement : The recommended way to address the vulnerability is to upgrade projen.
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-527) affecte projen. Les attaquants atteignent le code vulnérable via projen.
Consultez l'avis de l'éditeur pour les versions affectées de projen. Surface d'attaque : projen / eslint / jest / NodeProject.
Gravité : ?. Des informations confidentielles peuvent être exposées.
Mettre à jour vers 0.16.41.
Contournement : The recommended way to address the vulnerability is to upgrade projen.
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 'projen' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
projenを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
The recommended way to address the vulnerability is to upgrade `projen`.パッチが適用されるまでの応急処置として、The recommended way to address the vulnerability is to upgrade
projen. を実施。回避策の副作用 (機能低下) を確認した上で。 -
3Apply patch patch
Upgrade projen to 0.16.41ステージング環境で 0.16.41 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
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 npmjs.com