1. 28 Jun, 2019 2 commits
  2. 26 Jun, 2019 1 commit
  3. 25 Jun, 2019 1 commit
  4. 24 Jun, 2019 3 commits
  5. 23 Jun, 2019 1 commit
  6. 21 Jun, 2019 1 commit
  7. 20 Jun, 2019 1 commit
  8. 19 Jun, 2019 1 commit
  9. 18 Jun, 2019 3 commits
  10. 17 Jun, 2019 1 commit
  11. 16 Jun, 2019 1 commit
  12. 15 Jun, 2019 2 commits
  13. 11 Jun, 2019 1 commit
  14. 09 Jun, 2019 1 commit
  15. 08 Jun, 2019 1 commit
  16. 07 Jun, 2019 2 commits
  17. 05 Jun, 2019 1 commit
  18. 04 Jun, 2019 2 commits
  19. 03 Jun, 2019 1 commit
  20. 31 May, 2019 1 commit
  21. 29 May, 2019 2 commits
  22. 28 May, 2019 2 commits
  23. 24 May, 2019 1 commit
  24. 23 May, 2019 1 commit
  25. 22 May, 2019 1 commit
  26. 21 May, 2019 2 commits
    • SH's avatar
      bpo-35907, CVE-2019-9948: urllib rejects local_file:// scheme (GH-11842) · b15bde80
      SH authored
       CVE-2019-9948: Avoid file reading as disallowing the unnecessary URL scheme in urllib.urlopen().
      b15bde80
    • Victor Stinner's avatar
      bpo-30458: Disallow control chars in http URLs (GH-12755) (GH-13154) (GH-13315) · bb8071a4
      Victor Stinner authored
      Disallow control chars in http URLs in urllib2.urlopen.  This
      addresses a potential security problem for applications that do not
      sanity check their URLs where http request headers could be injected.
      
      Disable https related urllib tests on a build without ssl (GH-13032)
      These tests require an SSL enabled build. Skip these tests when
      python is built without SSL to fix test failures.
      
      Use httplib.InvalidURL instead of ValueError as the new error case's
      exception. (GH-13044)
      
      Backport Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
      
      (cherry picked from commit 7e200e0763f5b71c199aaf98bd5588f291585619)
      
      Notes on backport to Python 2.7:
      
      * test_urllib tests urllib.urlopen() which quotes the URL and so is
        not vulerable to HTTP Header Injection.
      * Add tests to test_urllib2 on urllib2.urlopen().
      * Reject non-ASCII characters: range 0x80-0xff.
      bb8071a4
  27. 20 May, 2019 2 commits
  28. 17 May, 2019 1 commit
    • Benjamin Peterson's avatar
      closes bpo-36755: Suppress noisy error output in test HTTPS server by default. (GH-13370) · 951af2d7
      Benjamin Peterson authored
      TLS 1.3 has a more efficient handshake protocol. The client can reject the server's credentials and close the connection before the server has even finished writing out all of its initial data. Depending on whether the server finishes writing the rest of its handshake before the it sees the connection is reset, the server will read an empty line or see a ECONNRESET OSError. Nothing is really wrong here with the server or client, so just suppress the error output in the OSError case to fix the test.
      
      This fix isn't required in Python 3 because clients that reject the server's certificate will shut down the TLS layer before closing the TCP connection.
      951af2d7