Commit 26be208
committed
lib,permission: require full read and write to symlink APIs
Refs: https://hackerone.com/reports/3417819
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com>
PR-URL: nodejs-private/node-private#760
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
CVE-ID: CVE-2025-551301 parent f0a8916 commit 26be208Copy full SHA for 26be208
File tree
Expand file treeCollapse file tree
6 files changed
+52
-62
lines changedOpen diff view settings
Filter options
- lib
- internal/fs
- test
- fixtures/permission
- parallel
Expand file treeCollapse file tree
6 files changed
+52
-62
lines changedOpen diff view settings
Collapse file
+11-23Lines changed: 11 additions & 23 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
59 | 59 | |
60 | 60 | |
61 | 61 | |
62 | | - |
63 | 62 | |
64 | 63 | |
65 | 64 | |
| ||
1777 | 1776 | |
1778 | 1777 | |
1779 | 1778 | |
1780 | | - |
1781 | | - |
1782 | | - |
1783 | | - |
1784 | | - |
1785 | | - |
1786 | | - |
1787 | | - |
1788 | | - |
1789 | | - |
1790 | | - |
1791 | | - |
| 1779 | + |
| 1780 | + |
| 1781 | + |
| 1782 | + |
| 1783 | + |
| 1784 | + |
1792 | 1785 | |
1793 | 1786 | |
1794 | 1787 | |
| ||
1852 | 1845 | |
1853 | 1846 | |
1854 | 1847 | |
1855 | | - |
1856 | | - |
1857 | | - |
1858 | | - |
1859 | | - |
1860 | | - |
1861 | | - |
1862 | | - |
1863 | | - |
1864 | | - |
| 1848 | + |
| 1849 | + |
| 1850 | + |
| 1851 | + |
| 1852 | + |
1865 | 1853 | |
1866 | 1854 | |
1867 | 1855 | |
|
Collapse file
lib/internal/fs/promises.js
Copy file name to clipboardExpand all lines: lib/internal/fs/promises.js+5-15Lines changed: 5 additions & 15 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
21 | 20 | |
22 | 21 | |
23 | 22 | |
| ||
31 | 30 | |
32 | 31 | |
33 | 32 | |
34 | | - |
35 | | - |
36 | 33 | |
37 | 34 | |
38 | 35 | |
| ||
88 | 85 | |
89 | 86 | |
90 | 87 | |
91 | | - |
92 | | - |
93 | 88 | |
94 | 89 | |
95 | 90 | |
| ||
992 | 987 | |
993 | 988 | |
994 | 989 | |
995 | | - |
996 | | - |
997 | | - |
998 | | - |
999 | | - |
1000 | | - |
1001 | | - |
1002 | | - |
1003 | | - |
1004 | | - |
| 990 | + |
| 991 | + |
| 992 | + |
| 993 | + |
| 994 | + |
1005 | 995 | |
1006 | 996 | |
1007 | 997 | |
|
Collapse file
test/fixtures/permission/fs-symlink-target-write.js
Copy file name to clipboardExpand all lines: test/fixtures/permission/fs-symlink-target-write.js+2-16Lines changed: 2 additions & 16 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | | - |
30 | | - |
| 29 | + |
31 | 30 | |
32 | 31 | |
33 | 32 | |
| ||
37 | 36 | |
38 | 37 | |
39 | 38 | |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | 39 | |
53 | 40 | |
54 | 41 | |
| ||
66 | 53 | |
67 | 54 | |
68 | 55 | |
69 | | - |
70 | | - |
| 56 | + |
71 | 57 | |
72 | 58 | |
73 | 59 | |
|
Collapse file
test/fixtures/permission/fs-symlink.js
Copy file name to clipboardExpand all lines: test/fixtures/permission/fs-symlink.js+15-3Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
54 | 54 | |
55 | 55 | |
56 | 56 | |
57 | | - |
58 | 57 | |
59 | 58 | |
60 | 59 | |
| ||
68 | 67 | |
69 | 68 | |
70 | 69 | |
71 | | - |
72 | 70 | |
73 | 71 | |
74 | 72 | |
| ||
82 | 80 | |
83 | 81 | |
84 | 82 | |
85 | | - |
86 | 83 | |
87 | 84 | |
88 | 85 | |
89 | 86 | |
90 | 87 | |
91 | 88 | |
92 | 89 | |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
93 | 105 | |
Collapse file
test/parallel/test-permission-fs-symlink-relative.js
Copy file name to clipboardExpand all lines: test/parallel/test-permission-fs-symlink-relative.js+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
2 | 2 | |
3 | 3 | |
4 | 4 | |
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | | - |
| 18 | + |
19 | 19 | |
20 | 20 | |
21 | 21 | |
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
35 | | - |
| 35 | + |
36 | 36 | |
37 | 37 | |
38 | 38 | |
39 | 39 | |
40 | 40 | |
41 | | - |
42 | | - |
| 41 | + |
| 42 | + |
43 | 43 | |
44 | 44 | |
45 | 45 | |
|
Collapse file
test/parallel/test-permission-fs-symlink.js
Copy file name to clipboardExpand all lines: test/parallel/test-permission-fs-symlink.js+14Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
| 30 | + |
| 31 | + |
30 | 32 | |
31 | 33 | |
32 | 34 | |
33 | 35 | |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
34 | 42 | |
35 | 43 | |
36 | 44 | |
37 | 45 | |
| 46 | + |
38 | 47 | |
| 48 | + |
| 49 | + |
39 | 50 | |
40 | 51 | |
41 | 52 | |
| ||
44 | 55 | |
45 | 56 | |
46 | 57 | |
| 58 | + |
47 | 59 | |
48 | 60 | |
49 | 61 | |
| ||
53 | 65 | |
54 | 66 | |
55 | 67 | |
| 68 | + |
| 69 | + |
56 | 70 | |
57 | 71 | |
58 | 72 | |
|
0 commit comments