forked frompython/cpython
- Notifications
You must be signed in to change notification settings - Fork0
Commitf48a96a
[3.10] [3.11]pythongh-102153: Start stripping C0 control and space chars in
pythongh-102153: Start stripping C0 control and space chars in `urlsplit` (pythonGH-102508)`urllib.parse.urlsplit` has already been respecting the WHATWG spec a bitpythonGH-25595.This adds more sanitizing to respect the "Remove any leading C0 control or space from input" [rule](https://url.spec.whatwg.org/GH-url-parsing:~:text=Remove%20any%20leading%20and%20trailing%20C0%20control%20or%20space%20from%20input.) in response to [CVE-2023-24329](https://nvd.nist.gov/vuln/detail/CVE-2023-24329).I simplified the docs by eliding the state of the world explanatoryparagraph in this security release only backport. (people will seethat in the mainline /3/ docs)---------(cherry picked from commit2f630e1)(cherry picked from commit610cc0a)Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>Co-authored-by: Illia Volochii <illia.volochii@gmail.com>Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>urlsplit
(pythonGH-102508) (pythonGH-104575) (python#104592)1 parent425065b commitf48a96a
File tree
4 files changed
+111
-3
lines changed- Doc/library
- Lib
- test
- urllib
- Misc/NEWS.d/next/Security
4 files changed
+111
-3
lines changedLines changed: 36 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
162 | 166 |
| |
163 | 167 |
| |
164 | 168 |
| |
| |||
324 | 328 |
| |
325 | 329 |
| |
326 | 330 |
| |
327 |
| - | |
328 |
| - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
329 | 339 |
| |
330 | 340 |
| |
331 | 341 |
| |
| |||
338 | 348 |
| |
339 | 349 |
| |
340 | 350 |
| |
| 351 | + | |
| 352 | + | |
| 353 | + | |
341 | 354 |
| |
342 | 355 |
| |
343 | 356 |
| |
| |||
414 | 427 |
| |
415 | 428 |
| |
416 | 429 |
| |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
417 | 451 |
| |
418 | 452 |
| |
419 | 453 |
| |
|
Lines changed: 60 additions & 1 deletion
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
| ||||
649 | 649 |
| ||
650 | 650 |
| 651 |
|
| 652 | + | ||
| 653 | + | ||
| 654 | + | ||
| 655 | + | ||
| 656 | + | ||
| 657 | + | ||
| 658 | + | ||
| 659 | + | ||
| 660 | + | ||
| 661 | + | ||
| 662 | + | ||
| 663 | + | ||
| 664 | + | ||
| 665 | + | ||
| 666 | + | ||
| 667 | + | ||
| 668 | + | ||
| 669 | + | ||
| 670 | + | ||
| 671 | + | ||
| 672 | + | ||
| 673 | + | ||
| 674 | + | ||
| 675 | + | ||
| 676 | + | ||
| 677 | + | ||
| 678 | + | ||
| 679 | + | ||
| 680 | + | ||
| 681 | + | ||
| 682 | + | ||
| 683 | + | ||
| 684 | + | ||
| 685 | + | ||
| 686 | + | ||
| 687 | + | ||
| 688 | + | ||
| 689 | + | ||
| 690 | + | ||
| 691 | + | ||
| 692 | + | ||
| 693 | + | ||
| 694 | + | ||
| 695 | + | ||
| 696 | + | ||
| 697 | + | ||
| 698 | + | ||
| 699 | + | ||
| 700 | + | ||
| 701 | + | ||
| 702 | + | ||
| 703 | + | ||
| 704 | + | ||
| 705 | + | ||
| 706 | + | ||
| 707 | + | ||
| 708 | + | ||
| 709 | + | ||
| 710 | + | ||
652 | 711 |
| ||
653 | 712 |
| ||
654 | 713 |
| ||
655 | 714 |
| ||
656 | 715 |
| ||
657 | 716 |
| ||
658 | 717 |
| ||
659 |
| - | ||
| 718 | + | ||
660 | 719 |
| ||
661 | 720 |
| ||
662 | 721 |
| ||
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 |
| |
29 | 33 |
| |
30 | 34 |
| |
| |||
78 | 82 |
| |
79 | 83 |
| |
80 | 84 |
| |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
81 | 89 |
| |
82 | 90 |
| |
83 | 91 |
| |
| |||
455 | 463 |
| |
456 | 464 |
| |
457 | 465 |
| |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
458 | 470 |
| |
459 | 471 |
| |
460 | 472 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + |
0 commit comments
Comments
(0)