Commit 2625ed9
Forbid unsafe protocol URLs in Repo.clone{,_from}()
Since the URL is passed directly to git clone, and the remote-ext helper
will happily execute shell commands, so by default disallow URLs that
contain a "::" unless a new unsafe_protocols kwarg is passed.
(CVE-2022-24439)
Fixes #15151 parent 787359d commit 2625ed9Copy full SHA for 2625ed9
3 files changed
+70-1Lines changed: 70 additions & 1 deletion
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- git
- repo
- test
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
37 | 37 | |
38 | 38 | |
39 | 39 | |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
40 | 44 | |
41 | 45 | |
42 | 46 | |
|
Collapse file
+30-1Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
25 | 30 | |
26 | 31 | |
27 | 32 | |
| ||
128 | 133 | |
129 | 134 | |
130 | 135 | |
| 136 | + |
131 | 137 | |
132 | 138 | |
133 | 139 | |
| ||
1215 | 1221 | |
1216 | 1222 | |
1217 | 1223 | |
| 1224 | + |
| 1225 | + |
| 1226 | + |
| 1227 | + |
| 1228 | + |
| 1229 | + |
| 1230 | + |
| 1231 | + |
| 1232 | + |
| 1233 | + |
| 1234 | + |
| 1235 | + |
| 1236 | + |
| 1237 | + |
| 1238 | + |
1218 | 1239 | |
1219 | 1240 | |
1220 | 1241 | |
1221 | 1242 | |
1222 | 1243 | |
| 1244 | + |
1223 | 1245 | |
1224 | 1246 | |
1225 | 1247 | |
| ||
1230 | 1252 | |
1231 | 1253 | |
1232 | 1254 | |
| 1255 | + |
1233 | 1256 | |
1234 | 1257 | |
1235 | 1258 | |
1236 | 1259 | |
1237 | 1260 | |
1238 | 1261 | |
| 1262 | + |
| 1263 | + |
1239 | 1264 | |
1240 | 1265 | |
1241 | 1266 | |
| ||
1254 | 1279 | |
1255 | 1280 | |
1256 | 1281 | |
| 1282 | + |
1257 | 1283 | |
1258 | 1284 | |
1259 | 1285 | |
| ||
1268 | 1294 | |
1269 | 1295 | |
1270 | 1296 | |
| 1297 | + |
1271 | 1298 | |
1272 | 1299 | |
1273 | 1300 | |
1274 | 1301 | |
1275 | 1302 | |
| 1303 | + |
| 1304 | + |
1276 | 1305 | |
1277 | 1306 | |
1278 | 1307 | |
|
Collapse file
+36Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
| 16 | + |
16 | 17 | |
17 | 18 | |
18 | 19 | |
| ||
37 | 38 | |
38 | 39 | |
39 | 40 | |
| 41 | + |
40 | 42 | |
41 | 43 | |
42 | 44 | |
| ||
263 | 265 | |
264 | 266 | |
265 | 267 | |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
| 276 | + |
| 277 | + |
| 278 | + |
| 279 | + |
| 280 | + |
| 281 | + |
| 282 | + |
| 283 | + |
| 284 | + |
| 285 | + |
| 286 | + |
| 287 | + |
| 288 | + |
| 289 | + |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
| 301 | + |
266 | 302 | |
267 | 303 | |
268 | 304 | |
|
0 commit comments