1. 25 Mar, 2018 1 kayıt (commit)
  2. 05 Mar, 2018 1 kayıt (commit)
  3. 04 Mar, 2018 1 kayıt (commit)
    • Jamie Davis's avatar
      bpo-32981: Fix catastrophic backtracking vulns (#5955) · 0e6c8ee2
      Jamie Davis yazdı
      * Prevent low-grade poplib REDOS (CVE-2018-1060)
      
      The regex to test a mail server's timestamp is susceptible to
      catastrophic backtracking on long evil responses from the server.
      
      Happily, the maximum length of malicious inputs is 2K thanks
      to a limit introduced in the fix for CVE-2013-1752.
      
      A 2KB evil response from the mail server would result in small slowdowns
      (milliseconds vs. microseconds) accumulated over many apop calls.
      This is a potential DOS vector via accumulated slowdowns.
      
      Replace it with a similar non-vulnerable regex.
      
      The new regex is RFC compliant.
      The old regex was non-compliant in edge cases.
      
      * Prevent difflib REDOS (CVE-2018-1061)
      
      The default regex for IS_LINE_JUNK is susceptible to
      catastrophic backtracking.
      This is a potential DOS vector.
      
      Replace it with an equivalent non-vulnerable regex.
      
      Also introduce unit and REDOS tests for difflib.
      Co-authored-by: 's avatarTim Peters <tim.peters@gmail.com>
      Co-authored-by: 's avatarChristian Heimes <christian@python.org>
      0e6c8ee2
  4. 24 Şub, 2018 1 kayıt (commit)
    • Christian Heimes's avatar
      [bpo-28414] Make all hostnames in SSL module IDN A-labels (GH-5128) · 11a1493b
      Christian Heimes yazdı
      Previously, the ssl module stored international domain names (IDNs)
      as U-labels. This is problematic for a number of reasons -- for
      example, it made it impossible for users to use a different version
      of IDNA than the one built into Python.
      
      After this change, we always convert to A-labels as soon as possible,
      and use them for all internal processing. In particular, server_hostname
      attribute is now an A-label, and on the server side there's a new
      sni_callback that receives the SNI servername as an A-label rather than
      a U-label.
      11a1493b
  5. 19 Eyl, 2017 1 kayıt (commit)
  6. 06 Eyl, 2017 2 kayıt (commit)
    • Devin Jeanpierre's avatar
      bpo-29505: Add fuzz tests for float(str), int(str), unicode(str) (#2878) · c5bace2b
      Devin Jeanpierre yazdı
      Add basic fuzz tests for a few common builtin functions.
      
      This is an easy place to start, and these functions are probably safe.
      We'll want to add more fuzz tests later.  Lets bootstrap using these.
      
      While the fuzz tests are included in CPython and compiled / tested on a
      very basic level inside CPython itself, the actual fuzzing happens as
      part of oss-fuzz (https://github.com/google/oss-fuzz). The reason to
      include the tests in CPython is to make sure that they're maintained
      as part of the CPython project, especially when (as some eventually
      will) they use internal implementation details in the test.
      
      (This will be necessary sometimes because e.g. the fuzz test should
      never enter Python's interpreter loop, whereas some APIs only expose
      themselves publicly as Python functions.)
      
      This particular set of changes is part of testing Python's builtins,
      tracked internally at Google by b/37562550.
      
      The _xxtestfuzz module that this change adds need not be shipped with binary distributions of Python.
      c5bace2b
    • Christian Heimes's avatar
      bpo-29781: Fix SSLObject.version before handshake (#3364) · 68771116
      Christian Heimes yazdı
      SSLObject.version() now correctly returns None when handshake over BIO has
      not been performed yet.
      Signed-off-by: 's avatarChristian Heimes <christian@python.org>
      68771116
  7. 05 Eyl, 2017 1 kayıt (commit)
  8. 04 Eyl, 2017 1 kayıt (commit)
  9. 18 Agu, 2017 1 kayıt (commit)
  10. 22 Haz, 2017 1 kayıt (commit)