1. 30 Sep, 2017 1 commit
    • David Benjamin's avatar
      Guard against DoS in name constraints handling. · 329a004f
      David Benjamin authored
      
      
      This guards against the name constraints check consuming large amounts
      of CPU time when certificates in the presented chain contain an
      excessive number of names (specifically subject email names or subject
      alternative DNS names) and/or name constraints.
      
      Name constraints checking compares the names presented in a certificate
      against the name constraints included in a certificate higher up in the
      chain using two nested for loops.
      
      Move the name constraints check so that it happens after signature
      verification so peers cannot exploit this using a chain with invalid
      signatures. Also impose a hard limit on the number of name constraints
      check loop iterations to further mitigate the issue.
      
      Thanks to NCC for finding this issue. Fix written by Martin Kreichgauer.
      
      Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
      Reviewed-by: default avatarAndy Polyakov <appro@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/4411)
      
      (cherry picked from commit 8545051c)
      
      Resolved conflicts:
      	crypto/x509v3/v3_ncons.c
      	test/recipes/25-test_verify.t
      329a004f
  2. 29 Sep, 2017 2 commits
  3. 27 Sep, 2017 3 commits
  4. 26 Sep, 2017 1 commit
  5. 23 Sep, 2017 2 commits
  6. 21 Sep, 2017 1 commit
  7. 19 Sep, 2017 1 commit
  8. 17 Sep, 2017 1 commit
  9. 15 Sep, 2017 2 commits
  10. 12 Sep, 2017 1 commit
  11. 11 Sep, 2017 1 commit
  12. 08 Sep, 2017 1 commit
  13. 07 Sep, 2017 1 commit
  14. 06 Sep, 2017 1 commit
  15. 01 Sep, 2017 3 commits
  16. 31 Aug, 2017 2 commits
  17. 28 Aug, 2017 1 commit
  18. 26 Aug, 2017 1 commit
  19. 25 Aug, 2017 4 commits
  20. 24 Aug, 2017 1 commit
  21. 23 Aug, 2017 2 commits
  22. 21 Aug, 2017 3 commits
  23. 18 Aug, 2017 4 commits