From 0314e67900f01410bc8c81c58a40dc0515e3c91d Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Tue, 8 Sep 2015 07:02:16 +1000 Subject: [PATCH] Fix reCaptcha bypass Signed-off-by: Madhura Jayaratne --- ChangeLog | 3 +++ .../plugins/auth/AuthenticationCookie.class.php | 29 +--------------------- .../plugin/auth/PMA_AuthenticationCookie_test.php | 19 +++++++------- 3 files changed, 14 insertions(+), 37 deletions(-) diff --git a/libraries/plugins/auth/AuthenticationCookie.class.php b/libraries/plugins/auth/AuthenticationCookie.class.php index c901248..fed2281 100644 --- a/libraries/plugins/auth/AuthenticationCookie.class.php +++ b/libraries/plugins/auth/AuthenticationCookie.class.php @@ -218,18 +218,9 @@ public function auth() . $GLOBALS['server'] . '" />'; } // end if (server choice) - // We already have one correct captcha. - $skip = false; - if ( isset($_SESSION['last_valid_captcha']) - && $_SESSION['last_valid_captcha'] - ) { - $skip = true; - } - // Add captcha input field if reCaptcha is enabled if ( !empty($GLOBALS['cfg']['CaptchaLoginPrivateKey']) && !empty($GLOBALS['cfg']['CaptchaLoginPublicKey']) - && !$skip ) { // If enabled show captcha to the user on the login screen. echo '