MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / static-analysis-injection.test.mjs

File static-analysis-injection.test.mjs

test/main/static-analysis-injection.test.mjs:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Test: CWE-78 command injection via targetPath in static analysis
2// Verifies that shell metacharacters in targetPath cannot be used for injection
3
4import { describe, it, before, after } from "node:test";

Callers

nothing calls this directly

Calls 1

runStaticAnalysisFunction · 0.85

Tested by

no test coverage detected