Skip to content

Auto-fill browser functionality can override API keys for reCAPCTH and block Admin Panel access  #234

@sdzhepa

Description

@sdzhepa

If the Admin login is saved in Chrome, the login becomes the default values for the Google reCAPTCHA  Website Key and Secret Key. As a result, it is possible (and very easy) to lock all users out of the Admin by setting Security > Google reCAPTCHA Admin Panel  > Admin  - Enable for Login to "Yes."

  1. At some point in the past, the Admin login was saved in Chrome. As a result, the login becomes the default values for the Google reCAPTCHA  Website Key and Secret Key. 
  2. The user goes to Security >  Admin Panel and sets Enable for login to "Yes," without properly configuring the Google API Website Key and Secret Key, and saves the configuration.
  3. After logging out, the user cannot log back in, and all other Admin users are locked out.

reCAPTCHA-fields-login-values

Note

We were able to fix this from the command line:
 bin/magento security:recaptcha:disable-for-user-login
 

Posible solution

Use autocomplete="off" to turn off form autocompletion

Additional information

  • Internal jira ticket: MC-34718
  • Regression bug for 2.4.0
  • Priority: P1
  • Severity: S1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: Google reCAPTCHAIssues and Pull Requests related to reCAPTCHA should be marked with this labelSeverity: S1Affects critical data or functionality and forces users to employ a workaround.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions