Commit 37cdc28
fix: add validation to avoid path-traversal vulnerabilities (#755)
* fix: add validation to avoid path-traversal vulnerabilities
* fix: update init value is_safe
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* refactor: extract zip check
* fix: dont need to check relative path
* fix: disable check zip file (zipfile have taken it)
---------
Co-authored-by: kan_cin <kan@cinnamon.is>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: phv2312 <kat87yb@gmail.com>1 parent ec1f6ab commit 37cdc28
1 file changed
Lines changed: 23 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1059 | 1059 | | |
1060 | 1060 | | |
1061 | 1061 | | |
| 1062 | + | |
1062 | 1063 | | |
1063 | 1064 | | |
1064 | 1065 | | |
1065 | 1066 | | |
| 1067 | + | |
1066 | 1068 | | |
1067 | 1069 | | |
1068 | 1070 | | |
1069 | 1071 | | |
1070 | 1072 | | |
| 1073 | + | |
1071 | 1074 | | |
1072 | 1075 | | |
1073 | 1076 | | |
| |||
1084 | 1087 | | |
1085 | 1088 | | |
1086 | 1089 | | |
1087 | | - | |
| 1090 | + | |
1088 | 1091 | | |
1089 | 1092 | | |
1090 | 1093 | | |
| |||
1100 | 1103 | | |
1101 | 1104 | | |
1102 | 1105 | | |
1103 | | - | |
| 1106 | + | |
1104 | 1107 | | |
1105 | 1108 | | |
1106 | 1109 | | |
1107 | 1110 | | |
1108 | 1111 | | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
1109 | 1117 | | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
1117 | 1122 | | |
1118 | 1123 | | |
1119 | 1124 | | |
| |||
1569 | 1574 | | |
1570 | 1575 | | |
1571 | 1576 | | |
1572 | | - | |
| 1577 | + | |
1573 | 1578 | | |
1574 | 1579 | | |
1575 | 1580 | | |
| |||
1598 | 1603 | | |
1599 | 1604 | | |
1600 | 1605 | | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
1601 | 1614 | | |
1602 | 1615 | | |
1603 | 1616 | | |
| |||
0 commit comments