Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autocomplete="off" for input type="password" to appease the scanners #56922

Merged
merged 5 commits into from
Feb 13, 2020

Conversation

kobelb
Copy link
Contributor

@kobelb kobelb commented Feb 5, 2020

This PR adds the autocomplete="off" attribute to password fields to ensure that outdated scanning tools won't create false positive results. This attribute is a hint to the browser -- respecting it is not mandatory -- and the vast majority of browsers ignore it in the case of password fields.

Allowing the use of autocomplete on password fields is expected behavior, as it facilitates the use of password managers, which is a net gain for user security.

Reference: The autocomplete attribute and login fields | MDN

@kobelb kobelb requested a review from jportner February 5, 2020 21:37
@kobelb kobelb requested a review from a team as a code owner February 5, 2020 21:37
@kobelb kobelb added release_note:skip Skip the PR/issue when compiling release notes v8.0.0 v7.7.0 labels Feb 5, 2020
Copy link
Contributor

@jportner jportner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we should also change the password fields located in x-pack/plugins/security/public/management/users/edit_user/edit_user_page.tsx.

Also, I'll edit the issue description to include a reference regarding autocomplete.

@kobelb
Copy link
Contributor Author

kobelb commented Feb 12, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jportner jportner self-requested a review February 12, 2020 23:54
Copy link
Contributor

@jportner jportner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kobelb kobelb merged commit bc8a41a into elastic:master Feb 13, 2020
@kobelb kobelb deleted the password-autocomplete branch February 13, 2020 00:02
gmmorris added a commit to gmmorris/kibana that referenced this pull request Feb 13, 2020
* master:
  add `absolute` option to `getUrlForApp` (elastic#57193)
  [Telemetry] Migrate public to NP (elastic#56285)
  address flaky test where instances might have different start… (elastic#57506)
  fix(NA): support legacy plugins path in plugins (elastic#57472)
  build immutable bundles for new platform plugins (elastic#53976)
  [SIEM] [Detection Engine] Reject if duplicate rule_id in request payload (elastic#57057)
  Add autocomplete="off" for input type="password" to appease the scanners (elastic#56922)
  Use default spaces suffix for signals index if spaces disabled (elastic#57244)
  [Alerting] Create alert design cleanup (elastic#56929)
mbondyra added a commit to mbondyra/kibana that referenced this pull request Feb 13, 2020
* master: (22 commits)
  Use log4j pattern syntax (elastic#57433)
  [ML] Categorization field example endpoint tests (elastic#57471)
  [Lens] Filter out pinned filters from saved object of Lens (elastic#57197)
  Lens client side shim cleanup (elastic#56976)
  [Maps] do not show border color for icon in legend when border width is zero (elastic#57501)
  refactors 'data-providers' tests (elastic#57474)
  add `absolute` option to `getUrlForApp` (elastic#57193)
  [Telemetry] Migrate public to NP (elastic#56285)
  address flaky test where instances might have different start… (elastic#57506)
  fix(NA): support legacy plugins path in plugins (elastic#57472)
  build immutable bundles for new platform plugins (elastic#53976)
  [SIEM] [Detection Engine] Reject if duplicate rule_id in request payload (elastic#57057)
  Add autocomplete="off" for input type="password" to appease the scanners (elastic#56922)
  Use default spaces suffix for signals index if spaces disabled (elastic#57244)
  [Alerting] Create alert design cleanup (elastic#56929)
  Management Api - add to migration guide (elastic#56892)
  fixing maps (elastic#56706)
  [Maps] Autocomplete for custom color palettes and custom icon palettes (elastic#56446)
  [Alerting] make actionGroup name's i18n-able (elastic#57404)
  fixed flaky test (elastic#57490)
  ...

# Conflicts:
#	src/legacy/core_plugins/telemetry/public/components/__snapshots__/telemetry_form.test.js.snap
#	src/plugins/telemetry/public/components/telemetry_management_section.tsx
kobelb added a commit that referenced this pull request Feb 13, 2020
…ers (#56922) (#57523)

* Add autocomplete="off" for input type="password" to appease the scanners

* Using new-password instead of off for the new/confirm passwords

* Setting more autoComplete="new-password" attributes

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants