mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
[1.8.x] Fixed catastrophic backtracking in URLValidator.
Thanks João Silva for reporting the problem and Tim Graham for finding the problematic RE and for review. This is a security fix; disclosure to follow shortly.
This commit is contained in:
@@ -60,6 +60,13 @@ The undocumented, internally unused ``validate_integer()`` function is now
|
||||
stricter as it validates using a regular expression instead of simply casting
|
||||
the value using ``int()`` and checking if an exception was raised.
|
||||
|
||||
Denial-of-service possibility in URL validation
|
||||
===============================================
|
||||
|
||||
:class:`~django.core.validators.URLValidator` included a regular expression
|
||||
that was extremely slow to evaluate against certain invalid inputs. This regular
|
||||
expression has been simplified and optimized.
|
||||
|
||||
Bugfixes
|
||||
========
|
||||
|
||||
|
||||
Reference in New Issue
Block a user