Commit 87d9f79
committed
fix(security)(utils): predictable global cache directory in /tmp enables
The cache directory is a fixed, shared path (`/tmp/ncc-cache`). On multi-user systems this can be pre-created or manipulated by another user (symlink/hardlink attacks), potentially causing cache poisoning, unintended file writes, or data leakage between builds/users depending on how cache files are later written.
Affected files: ncc-cache-dir.js
Signed-off-by: tuanaiseo <221258316+tuanaiseo@users.noreply.github.com>1 parent 91ba339 commit 87d9f79
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments