Repository navigation
feat(apps): Migrate app management code from @rocket.chat/apps-engine to @rocket.chat/apps internal package - #40343
Layne — failure
Found 3 issue(s): 0 critical, 3 high, 0 medium, 0 low.
Blocking findings:
- LAYNE-c62cb997f4757617 [semgrep/app.config.semgrep.rules.nodejs.child-process-execution] packages/apps/scripts/deno-cache.js:39
- LAYNE-b7a114d497e516af [semgrep/app.config.semgrep.rules.nodejs.child-process-execution] packages/apps/scripts/deno-cache.js:82
- LAYNE-8fde114514b41f27 [semgrep/app.config.semgrep.rules.nodejs.child-process-execution] packages/apps/src/server/runtime/deno/AppsEngineDenoRuntime.ts:249
To approve, post a comment:
/layne exception-approve LAYNE-c62cb997f4757617 LAYNE-b7a114d497e516af LAYNE-8fde114514b41f27 reason:
Annotations
Check failure on line 39 in packages/apps/scripts/deno-cache.js
rc-layne / Layne Security Scan
[semgrep] app.config.semgrep.rules.nodejs.child-process-execution
[R39] Child process execution detected. Ensure command and arguments are not user-controlled.
Command injection (CWE-78) can occur if untrusted input flows into spawn/exec calls.
Remediation:
- Use allowlists for permitted commands
- Validate/sanitize all arguments
- Avoid shell=True or string-based command interpolation
- Prefer execFile/spawn over exec when possible
Check failure on line 82 in packages/apps/scripts/deno-cache.js
rc-layne / Layne Security Scan
[semgrep] app.config.semgrep.rules.nodejs.child-process-execution
[R82] Child process execution detected. Ensure command and arguments are not user-controlled.
Command injection (CWE-78) can occur if untrusted input flows into spawn/exec calls.
Remediation:
- Use allowlists for permitted commands
- Validate/sanitize all arguments
- Avoid shell=True or string-based command interpolation
- Prefer execFile/spawn over exec when possible
Check failure on line 249 in packages/apps/src/server/runtime/deno/AppsEngineDenoRuntime.ts
rc-layne / Layne Security Scan
[semgrep] app.config.semgrep.rules.nodejs.child-process-execution
[R249] Child process execution detected. Ensure command and arguments are not user-controlled.
Command injection (CWE-78) can occur if untrusted input flows into spawn/exec calls.
Remediation:
- Use allowlists for permitted commands
- Validate/sanitize all arguments
- Avoid shell=True or string-based command interpolation
- Prefer execFile/spawn over exec when possible