From 0e390970ba51b14a5dc780be7c6f0d6d7baa67e3 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Thu, 17 Apr 2014 18:11:12 +0200 Subject: Bug 713926: (CVE-2014-1517) [SECURITY] Login form lacks CSRF protection r=dkl a=justdave --- Bugzilla/WebService.pm | 38 +++++++++++++++++--------------------- 1 file changed, 17 insertions(+), 21 deletions(-) (limited to 'Bugzilla/WebService.pm') diff --git a/Bugzilla/WebService.pm b/Bugzilla/WebService.pm index 9638d1132..ebad7930a 100644 --- a/Bugzilla/WebService.pm +++ b/Bugzilla/WebService.pm @@ -141,9 +141,7 @@ There are various ways to log in: =item C You can use L to log in as a Bugzilla -user. This issues standard HTTP cookies that you must then use in future -calls, so your client must be capable of receiving and transmitting -cookies. +user. This issues a token that you must then use in future calls. =item C and C @@ -163,30 +161,28 @@ WebService method to perform a login: =item C (boolean) - Optional. If true, then your login will only be valid for your IP address. -=item C (boolean) - Optional. If true, -then the cookie sent back to you with the method response will -not expire. - =back -The C and C options -are only used when you have also specified C and -C. - -Note that Bugzilla will return HTTP cookies along with the method -response when you use these arguments (just like the C method -above). +The C option is only used when you have also +specified C and C. -For REST, you may also use the C and C variable +For REST, you may also use the C and C variable names instead of C and C as a -convenience. +convenience. You may also use C instead of C. + +=item C + +B + +You can specify C as argument to any WebService method, +and you will be logged in as that user if the token is correct. This is +the token returned when calling C mentioned above. -=item B +An error is thrown if you pass an invalid token and you will need to log +in again to get a new token. -An error is now thrown if you pass invalid cookies or an invalid token. -You will need to log in again to get new cookies or a new token. Previous -releases simply ignored invalid cookies and token support was added in -Bugzilla B<5.0>. +Token support was added in Bugzilla B<5.0> and support for login cookies +has been dropped for security reasons. =back -- cgit v1.2.3-24-g4f1b