| 제목 | Node.js find-cypress-specs 1.54.12 OS Command Injection |
|---|
| 설명 | find-cypress-specs accepts a --branch option to print specs changed against origin/<branch>.
The --branch value is interpolated directly into shell command strings and executed with shell.exec(). A branch name containing shell metacharacters can therefore execute additional commands.
Tested version:
find-cypress-specs 1.54.12
Public CLI used:
npx find-cypress-specs --branch <branch>
Relevant code:
// src/index.js
shell.exec(`git merge-base origin/${branch} HEAD`, {
silent: true,
})
// ...
const command = `git diff --name-only --diff-filter=AMR origin/${branch}`
const result = shell.exec(command, { silent: true })
The README documents --branch as a normal branch-name parameter:
npx find-cypress-specs --branch main |
|---|
| 원천 | ⚠️ https://github.com/bahmutov/find-cypress-specs/issues/423 |
|---|
| 사용자 | wjm2 (UID 99050) |
|---|
| 제출 | 2026. 06. 17. AM 08:41 (1 월 ago) |
|---|
| 모더레이션 | 2026. 07. 23. AM 09:37 (1 month later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 382478 [bahmutov find-cypress-specs 까지 1.54.12 Branch src/index.js shell.exec --branch 권한 상승] |
|---|
| 포인트들 | 20 |
|---|