Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Commit2084f94
Note: This change is not effective on Microsoft Windows.Cookies can store sensitive information and should therefore be protectedagainst unauthorized third parties. This is also described in issue#79096.The filesystem permissions are currently set to 644, everyone can read thefile. This commit changes the permissions to 600, only the creater of the filecan read and modify it. This improves security, because it reduces the attacksurface. Now the attacker needs control of the user that created the cookie ora ways to circumvent the filesystems permissions.This change is backwards incompatible. Systems that rely on world-readablecookies will breake. However, one could argue that those are misconfigured inthe first place.Co-authored-by: Łukasz Langa <lukasz@langa.pl>Co-authored-by: Pascal Wittmann <mail@pascal-wittmann.de>Co-authored-by: Christian Heimes <christian@python.org>
1 parent92f8786 commit2084f94
File tree
3 files changed
+39
-11
lines changed- Lib
- http
- test
- Misc/NEWS.d/next/Security
3 files changed
+39
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1890 | 1890 | | |
1891 | 1891 | | |
1892 | 1892 | | |
1893 | | - | |
| 1893 | + | |
1894 | 1894 | | |
1895 | 1895 | | |
1896 | 1896 | | |
| |||
2086 | 2086 | | |
2087 | 2087 | | |
2088 | 2088 | | |
2089 | | - | |
| 2089 | + | |
2090 | 2090 | | |
2091 | 2091 | | |
2092 | 2092 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
364 | 367 | | |
365 | 368 | | |
366 | 369 | | |
367 | | - | |
368 | | - | |
| 370 | + | |
369 | 371 | | |
370 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
371 | 401 | | |
372 | 402 | | |
373 | 403 | | |
| |||
391 | 421 | | |
392 | 422 | | |
393 | 423 | | |
394 | | - | |
395 | | - | |
| 424 | + | |
396 | 425 | | |
397 | 426 | | |
398 | 427 | | |
| |||
496 | 525 | | |
497 | 526 | | |
498 | 527 | | |
499 | | - | |
| 528 | + | |
500 | 529 | | |
501 | 530 | | |
502 | 531 | | |
| |||
1766 | 1795 | | |
1767 | 1796 | | |
1768 | 1797 | | |
1769 | | - | |
1770 | | - | |
| 1798 | + | |
1771 | 1799 | | |
1772 | 1800 | | |
1773 | 1801 | | |
| |||
1826 | 1854 | | |
1827 | 1855 | | |
1828 | 1856 | | |
1829 | | - | |
1830 | | - | |
| 1857 | + | |
1831 | 1858 | | |
1832 | 1859 | | |
1833 | 1860 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments
Comments
(0)