MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / shadow-traversal.test.mjs

File shadow-traversal.test.mjs

test/main/shadow-traversal.test.mjs:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// PoC test for CWE-22: Path traversal in shadow restore system
2// FEATURE: Security regression test for path traversal in createRestorePoint / restorePoint
3
4import { describe, it, after, before } from "node:test";

Callers

nothing calls this directly

Calls 3

createRestorePointFunction · 0.85
restorePointFunction · 0.85
setupFunction · 0.70

Tested by

no test coverage detected