ncs-zigbeeのCI設定に不備があり、悪意あるプルリクエストでリモートからコードを実行される脆弱性
Summary
nrfconnect/ncs-zigbeeのGitHub Actionsのワークフロー(build_documentation.yml)に脆弱性があり、フォーク元からのプルリクエストで攻撃者が用意したコードを実行される可能性がありました。書き込み権限を持つGITHUB_TOKENが悪用されると、CI上でのリモートコード実行やトークンの持ち出し、リポジトリの内容やGitHub Pagesの不正な書き換えにつながるおそれがあります。該当のワークフローは無効化されたうえで書き直されているため、利用者は最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
nrfconnect/ncs-zigbeeのGitHub Actionsのワークフロー(build_documentation.yml)に脆弱性があり、フォーク元からのプルリクエストで攻撃者が用意したコードを実行される可能性がありました。書き込み権限を持つGITHUB_TOKENが悪用されると、CI上でのリモートコード実行やトークンの持ち出し、リポジトリの内容やGitHub Pagesの不正な書き換えにつながるおそれがあります。該当のワークフローは無効化されたうえで書き直されているため、利用者は最新の情報を確認してください。
Original description The description as published by the source.
In the nrfconnect/ncs-zigbee repository, the GitHub Actions workflow
.github/workflows/build_documentation.yml used the pull_request_target trigger
while checking out and executing untrusted pull request code. This allowed a
pull request from a fork to run attacker-controlled code in the base repository
context with a write-scoped GITHUB_TOKEN (contents: write, pages: write,
pull-requests: write), enabling remote code execution in CI, token
exfiltration, and unauthorized modification of repository content and GitHub
Pages. The workflow was disabled and then rewritten to remove the issue.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- web securitylab.github.com
- web securitylab.github.com
- web github.com