From 785f4e2711848eb8945894199d5870253a88584e Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Mon, 7 Sep 2015 21:23:14 +1000 Subject: [PATCH 1/2] Fix reCaptcha bypass Signed-off-by: Madhura Jayaratne --- ChangeLog | 3 ++ .../auth/AuthenticationCookie.class.php | 31 ++----------------- .../auth/PMA_AuthenticationCookie_test.php | 17 +++++----- 3 files changed, 15 insertions(+), 36 deletions(-) diff --git a/ChangeLog b/ChangeLog index 69d8cfd695ca..39124c9107e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ phpMyAdmin - ChangeLog ====================== +4.4.14.1 (Not yet released) +- issue [security] reCaptcha bypass + 4.4.14.0 (2015-08-20) - issue #11367 Export after search, missing WHERE clause - issue #11380 Incomplete message after import diff --git a/libraries/plugins/auth/AuthenticationCookie.class.php b/libraries/plugins/auth/AuthenticationCookie.class.php index c85f74a41fd8..2b75262e7e8f 100644 --- a/libraries/plugins/auth/AuthenticationCookie.class.php +++ b/libraries/plugins/auth/AuthenticationCookie.class.php @@ -223,18 +223,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 '