Commit 9bddc73
committed
Fix(security): Prevent path traversal in LaunchEditor
The LaunchEditor function was vulnerable to path traversal (G304, CWE-22).
The 'fileName' parameter could be manipulated to access files outside
the intended local storage root.
The fix adds a check to ensure that the resolved path remains within
the local storage root, preventing unauthorized file access.1 parent 353ed37 commit 9bddc73
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
0 commit comments