Title: gh-79096: Protect cookie file created by {LWP,Mozilla}CookieJar.save() by pSub · Pull Request #93463 · python/cpython · GitHub
Open Graph Title: gh-79096: Protect cookie file created by {LWP,Mozilla}CookieJar.save() by pSub · Pull Request #93463 · python/cpython
X Title: gh-79096: Protect cookie file created by {LWP,Mozilla}CookieJar.save() by pSub · Pull Request #93463 · python/cpython
Description: Cookies can store sensitive information and should therefore be protected against unauthorized third parties. This is also described in issue #79096. Note: This change is not effective on Microsoft Windows. The filesystem permissions are currently set to 644, everyone can read the file. This commit changes the permissions to 600, only the creater of the file can read and modify it. This improves security, because it reduces the attack surface. Now the attacker needs control of the user that created the cookie or a ways to circumvent the filesystems permissions. This change is backwards incompatible. Systems that rely on world-readable cookies will breake. However, one could argue that those are misconfigured in the first place.
Open Graph Description: Cookies can store sensitive information and should therefore be protected against unauthorized third parties. This is also described in issue #79096. Note: This change is not effective on Microsoft...
X Description: Cookies can store sensitive information and should therefore be protected against unauthorized third parties. This is also described in issue #79096. Note: This change is not effective on Microsoft...
Opengraph URL: https://github.com/python/cpython/pull/93463
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:2bb1ddc3-825e-00f3-aa2c-603b4ff441a6 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | C732:1E165C:A69D2B:DFAB9E:69697FB3 |
| html-safe-nonce | 83ef58c25314fd826c4d17843c40c448b0db9ab150fca0e024e6fb40bd7fec4d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzMyOjFFMTY1QzpBNjlEMkI6REZBQjlFOjY5Njk3RkIzIiwidmlzaXRvcl9pZCI6Ijg2MzMyNzU5OTM1MTU3MjA2MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f290ff7f465ac79dfb777762ae76ae65ba443eab417dc87f9b2773ff5811aed5 |
| hovercard-subject-tag | pull_request:957368425 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/93463/checks |
| twitter:image | https://avatars.githubusercontent.com/u/83842?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/83842?s=400&v=4 |
| og:image:alt | Cookies can store sensitive information and should therefore be protected against unauthorized third parties. This is also described in issue #79096. Note: This change is not effective on Microsoft... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 48f380098b30acbb700b04f1724481ca10d574fc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width