| 제목 | Node.js danger 13.0.7 OS Command Injection |
|---|
| 설명 | [email protected] appears to allow shell command injection during the public danger local workflow when a Dangerfile calls danger.git.diffForFile() on changed file paths.
The issue is triggered through the CLI, not by importing internal modules directly:
danger local --staging --dangerfile Dangerfile.js --text-only
-> LocalGit.getPlatformGitRepresentation()
-> Dangerfile calls danger.git.diffForFile(file)
-> localGetFileAtSHA(file, repo, sha)
-> child_process.exec(`git show ${sha}:"${path}"`)
If a changed file path contains a double quote and shell metacharacters, the path breaks out of the quoted git show argument and the shell executes the injected command. |
|---|
| 원천 | ⚠️ https://github.com/danger/danger-js/pull/1513 |
|---|
| 사용자 | wjm2 (UID 99050) |
|---|
| 제출 | 2026. 06. 16. PM 07:20 (4 개월 ago) |
|---|
| 모더레이션 | 2026. 07. 22. PM 06:02 (1 month later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 382377 [danger danger-js 까지 13.0.7 CLI localGetFileAtSHA.ts danger.git.diffForFile file 권한 상승] |
|---|
| 포인트들 | 20 |
|---|