Title: Some supposedly invalid addresses in the documentation point toward malicious websites · Issue #102627 · python/cpython · GitHub
Open Graph Title: Some supposedly invalid addresses in the documentation point toward malicious websites · Issue #102627 · python/cpython
X Title: Some supposedly invalid addresses in the documentation point toward malicious websites · Issue #102627 · python/cpython
Description: Describe the problem I found in the documentation about concurrency some examples that have been "exploited" by malicious people: in the ThreadPoolExecutor Example import concurrent.futures import urllib.request URLS = ['http://www.foxne...
Open Graph Description: Describe the problem I found in the documentation about concurrency some examples that have been "exploited" by malicious people: in the ThreadPoolExecutor Example import concurrent.futures import ...
X Description: Describe the problem I found in the documentation about concurrency some examples that have been "exploited" by malicious people: in the ThreadPoolExecutor Example import concurrent.futur...
Opengraph URL: https://github.com/python/cpython/issues/102627
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Some supposedly invalid addresses in the documentation point toward malicious websites","articleBody":"## Describe the problem\r\n\r\nI found in the documentation about concurrency some examples that have been \"exploited\" by malicious people:\r\nin the [ThreadPoolExecutor Example](https://docs.python.org/3/library/concurrent.futures.html#threadpoolexecutor-example)\r\n```python\r\nimport concurrent.futures\r\nimport urllib.request\r\n\r\nURLS = ['http://www.foxnews.com/',\r\n 'http://www.cnn.com/',\r\n 'http://europe.wsj.com/',\r\n 'http://www.bbc.co.uk/',\r\n 'http://some-made-up-domain.com/'] # \u003c\u003c\u003c (DO NOT TRY IT IN A BROWSER)\r\n...\r\n```\r\nThe last domain name is supposed to be non existent.\r\nHowever, when I tried the snippet, I got a valid response on second try (the first one woke up their server).\r\nIt's not problematic with the code example, since the code of the page is just plain text, but anyone trying to go there through their browser might end up in some kind of troubles...\r\n\r\nThe content of the hosted page is apparently a \"hard redirection\" toward... something :\r\n```js\r\n\u003chtml\u003e\u003chead\u003e\u003ctitle\u003eLoading...\u003c/title\u003e\u003c/head\u003e\r\n\u003cbody\u003e\r\n \u003cscript type='text/javascript'\u003ewindow.location.replace(\r\n 'http://some-made-up-domain.com/?ch=1\u0026js=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJKb2tlbiIsImV4cCI6MTY3ODYxNjgxMywiaWF0IjoxNjc4NjA5NjEzLCJpc3MiOiJKb2tlbiIsImpzIjoxLCJqdGkiOiIydDVwdDM2ajgyNjU0YjRma281ZjhhMGciLCJuYmYiOjE2Nzg2MDk2MTMsInRzIjoxNjc4NjA5NjEzODAyNDEzfQ.H4l5qNGb5Ex8ehG3hxX_kWx8ODqTMRgJs0HBeQyCx1Q\u0026sid=a4f97e10-c0af-11ed-b324-9d77bf5b132c'\r\n );\r\n \u003c/script\u003e\r\n\u003c/body\u003e\r\n\u003c/html\u003e\r\n```\r\n## Expected solution\r\n\r\nAny invalid address in the docs should point to invalid page in trustful domains, to not allow this kind of security hole.\r\n\r\n---\r\n\r\nCheers\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-102630\n* gh-102664\n* gh-102665\n* gh-102666\n* gh-102667\n* gh-102668\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/Blind4Basics","@type":"Person","name":"Blind4Basics"},"datePublished":"2023-03-12T17:19:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/102627/cpython/issues/102627"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5b54ab3d-f499-bf16-d49f-1f47741c8873 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A006:1301FE:10B2FC9:164B6DA:69699312 |
| html-safe-nonce | 106083f297eae3b2a6eef6a7cf6ddab8f0708570f4530735811ce17051586fc8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDA2OjEzMDFGRToxMEIyRkM5OjE2NEI2REE6Njk2OTkzMTIiLCJ2aXNpdG9yX2lkIjoiMTE5MTQ4MDU0NTkzNzgyMjQ4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c8f20f8186bf42acb66e6adce12c62035fd76a0f96b173df5d7778733551baca |
| hovercard-subject-tag | issue:1620446178 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/102627/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b39b8575cdc030cde5836a59c610fddf12bb98a5240b9495dbdb0726096336d0/python/cpython/issues/102627 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b39b8575cdc030cde5836a59c610fddf12bb98a5240b9495dbdb0726096336d0/python/cpython/issues/102627 |
| og:image:alt | Describe the problem I found in the documentation about concurrency some examples that have been "exploited" by malicious people: in the ThreadPoolExecutor Example import concurrent.futures import ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Blind4Basics |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width