* cc: djfische@… (added)
* easy: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/13751#comment:12>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by claudep):
Even if we don't cover all use cases of this ticket, I think that progress
has been made with commit [a2f2a399566dd68ce] (#18856).
I think we should now better document:
* Add `is_safe_url` in docs/ref/utils
* Add a note in `HttpResponseRedirect` docs that if the path parameter
comes from user input, it should be passed first to `is_safe_url` to make
sure that the redirection is not going to an unwanted location.
Comment (by aaugustin):
#19992 was a duplicate.
--
Ticket URL: <https://code.djangoproject.com/ticket/13751#comment:13>
* owner: nobody => marcaurele
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/13751#comment:14>
Comment (by marcaurele):
Added a new settings REDIRECT_WHITELIST_URLS to allow a list of urls for
redirection outside the application host. The match is done in
utils.http.is_safe_url(). All tests passed, and the new setting has been
documented.
https://github.com/marcaurele/django/tree/ticket_13751
--
Ticket URL: <https://code.djangoproject.com/ticket/13751#comment:15>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/13751#comment:16>
Comment (by apollo13):
I am for wontfixing, I do not see a good usecase for this now that we have
ALLOWED_HOSTS already. Russ, since you initially accepted it: what are
your thoughts on that?
--
Ticket URL: <https://code.djangoproject.com/ticket/13751#comment:17>
Comment (by ubernostrum):
I feel like there are some tricky issues here, especially with the example
given in the documentation -- the part where if a URL in
REDIRECT_WHITELIST_URLS is a prefix of the URL being redirected to
especially scares me, because it creates the possibility of breaking out
of this feature by finding an open redirect on *that* host.
--
Ticket URL: <https://code.djangoproject.com/ticket/13751#comment:18>
Comment (by marcaurele):
After another thought on that fix, I must say that I share apollo13 point
of view and don't see a good use case. I'm for a wontfixing.
--
Ticket URL: <https://code.djangoproject.com/ticket/13751#comment:19>
* owner: marcaurele =>
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/13751#comment:20>
* status: new => closed
* resolution: => wontfix
--
Ticket URL: <https://code.djangoproject.com/ticket/13751#comment:21>