﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10777	AuthenticationForm.is_valid after validation should reset password field for security reason	Robert Lujo	nobody	"When you use django.contrib.auth.views.login for login procedure it works like classic form: 
 - GET - creates empty AuthenticationForm object
 - POST - validates usr/pwd against auth backend 
 - POST - if ok then you're being logged in and redirected to somewhere
 - POST - if not ok - then you're again on the same page with information that credentials are not ok, and the form is already filled with username and password which you typed in on the page before. 

In last case (POST FAIL) the password travels client->server->client. I think the last server->client travel is not needed and can be treated as security issue. Why to pre-fill the password field when it is false anyway, and why to expose password over the network twice, when it could be exposed only once. I didn't had time to investigate how to solve this exactly, but my suggestion is to do work on the AuthenticationForm.is_valid overridden method (can be seen in diff file I attach). Diff is against r1105.
"		closed	contrib.auth	dev		fixed	security		Design decision needed	1	0	0	0	0	0
