--
Ticket URL: <https://code.djangoproject.com/ticket/29252>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* easy: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/29252#comment:1>
Old description:
> The current implementation in django.contrib.auth.views.LogoutView allows
> both GET and POST requests without any CSRF protection. A simple
> {{{
> <img src="http://djangoapp/logout" />
> }}}
> on an exploit page could log out the user. While this is a low security
> risk, it's still a DoS issue and could prevent the user from using the
> app.
New description:
The current implementation in django.contrib.auth.views.LogoutView allows
both GET and POST requests without any CSRF protection. A simple
{{{
<img src="http://djangoapp/logout" />
}}}
on an exploit page could log out the user. While this is a low security
risk, it's still a DoS issue and could prevent the user from using the
app.
Instead of fixing the view, it maybe makes sense to just change the
[https://docs.djangoproject.com/en/2.0/topics/auth/default/#django.contrib.auth.views.LogoutView
docs] to warn the programmer of such a problem and suggest overriding
LogoutView and changing dispatch().
--
--
Ticket URL: <https://code.djangoproject.com/ticket/29252#comment:2>
* status: new => closed
* resolution: => duplicate
Comment:
Duplicate of #15619.
--
Ticket URL: <https://code.djangoproject.com/ticket/29252#comment:3>