New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 832103 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Password could be exposed by accident in http basic authentication dialog

Reported by rinke.va...@citrus.nl, Apr 12 2018

Issue description

VULNERABILITY DETAILS
Presented with a basic authentication dialog, a user wants to left click the password field but accidentally right clicks it (by misuse of trackpad). The context menu immediately shows up suggesting to Look Up "secretpass".

In this case one might consider this a physically local accident, instead of an attack.

VERSION
Chrome Version: Version 66.0.3359.81 (Official Build) beta (64-bit)
Operating System: macOS 10.13.3 17D102

REPRODUCTION CASE
1. Trigger a basic auth dialog (e.g. https://www.httpwatch.com/httpgallery/authentication)
2. Let Chrome remember the password.
3. Close Chrome
4. Open Chrome
5. Trigger the same basic auth dialog
6. Right click password field.

 
Cool bug, thanks! It only seems to repro on Mac (not Views/Windows).

Due to the level "physically local" nature, I agree that this isn't a true security bug, but we should probably fix this up.
Labels: OS-Mac
Cc: ellyjo...@chromium.org
Components: UI Internals>Views
Labels: -Type-Bug-Security -Restrict-View-SecurityTeam Pri-2 Type-Bug
Status: Available (was: Unconfirmed)
+ellyjones@

Thanks for reporting this. Was able to repro this one on 67 on Mac (did not repro on 65). Agreed with elawrence that it doesn't seem like a security bug since it is local-only, derestricting.
Just a quick note. Although not severe, I do think it is security related. I think it should be protected exactly like a normal password input would. If we can agree that "we should probably fix this up" then we might also agree there is some value to this bug report.

For what it's worth, I would rate this as 'Information Leak - Baseline'
It's absolutely valuable, and thank you again for reporting it!

From a triage point-of-view, it simply falls out of scope for the threat model: https://chromium.googlesource.com/chromium/src/+/master/docs/security/faq.md#Why-arent-physically_local-attacks-in-Chromes-threat-model
I do not think it 'simply falls out of scope' because it is not an attack per se.

As a Chrome user I trust the software with my secret. I would hope the plaintext version of that secret to be more than one click away. Chrome seems to agree with me on this when dealing with a password field in HTML, and it seems we all agree that this 'feature' I discovered is something to be fixed.

Why did I report this issue, and why wouldn't we want to 'Look Up' arbitrary passwords on the internet? To me it is a real security issue and I'm glad to see it fixed. It's a shame a reward should not apply as this is clearly not an physically-local-attack (which obviously cannot/should not always be fixed) but definitely an issue that should (and probably will) be fixed.

Comment 7 by cthomp@chromium.org, Apr 13 2018

Labels: M-68
Summary: Password could be exposed by accident in http basic authentication dialog (was: Security: password could be exposed by accident in http basic authentication dialog)
A distinction that might help clarify the decision here: This is definitely a bug, and we'll figure out a fix for it, but it is not a vulnerability (where a malicious actor could exploit it above and beyond what they could do otherwise with physically-local attacks).

I do agree that one potentially escalating factor is that having a user accidentally leak their password to a third party service via the "Look up" function is bad. I think P-2 seems reasonable for this, meaning we should target having this fixed for M68. If the fix is reasonably simple, we might even try to get this merged back into M67.
Labels: MacViews-Controls Proj-MacViews Target-68
Owner: spqc...@chromium.org
Status: Assigned (was: Available)
spqchan: we should remove the "Look up" item from password fields probably (and maybe some other options too).
@cthomp: thanks for the clarification, it helps.
Status: Started (was: Assigned)
The fix for this is simple, let's merge it to M67 once it's landed.

Note: the code to retrieve text from a Views textfield is error prone. I'm going to submit a follow up CL after the fix so this won't happen again

Project Member

Comment 12 by bugdroid1@chromium.org, Apr 19 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/81671321cacaabd83b1e8d6effd21ea3132ef35e

commit 81671321cacaabd83b1e8d6effd21ea3132ef35e
Author: spqchan <spqchan@chromium.org>
Date: Thu Apr 19 22:55:07 2018

[MacViews] Fix Password Reveal in Views Textfield

Don't show the "Look Up" menu item in the textfield context
menu if the textfield is a password field.

Testing: views_unittests TextfieldTest.LookUpPassword.

Bug:  832103 
Change-Id: I1fd526b0e51b19ae6f118da1d628958f26da380b
Reviewed-on: https://chromium-review.googlesource.com/1013782
Reviewed-by: Michael Wasserman <msw@chromium.org>
Commit-Queue: Sarah Chan <spqchan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#552194}
[modify] https://crrev.com/81671321cacaabd83b1e8d6effd21ea3132ef35e/ui/views/controls/textfield/textfield.h
[modify] https://crrev.com/81671321cacaabd83b1e8d6effd21ea3132ef35e/ui/views/controls/textfield/textfield_unittest.cc
[modify] https://crrev.com/81671321cacaabd83b1e8d6effd21ea3132ef35e/ui/views/controls/views_text_services_context_menu_mac.mm

Labels: Merge-Request-67
Project Member

Comment 14 by sheriffbot@chromium.org, Apr 20 2018

Labels: -Merge-Request-67 Merge-Approved-67 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M67. Please go ahead and merge the CL to branch 3396 manually. Please contact milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), kbleicher@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
msw@, would it be possible for you to do the merge to M67 branch 3396 as spqchan@ is OOO until April 30th?
Cc: msw@chromium.org
+msw@ (CL reviewer), PTAL comment #15. Thank you.

Comment 17 by msw@chromium.org, Apr 21 2018

Status: Fixed (was: Started)
Merged to M67 in https://chromium-review.googlesource.com/c/chromium/src/+/1023190
Please help verify the fix on the next build, thanks.
Project Member

Comment 18 by bugdroid1@chromium.org, Apr 21 2018

Labels: -merge-approved-67 merge-merged-3396
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/bead3ed8ff25c2fa78539e410a04bffbe7869b96

commit bead3ed8ff25c2fa78539e410a04bffbe7869b96
Author: spqchan <spqchan@chromium.org>
Date: Sat Apr 21 00:05:06 2018

[MacViews] Fix Password Reveal in Views Textfield

Don't show the "Look Up" menu item in the textfield context
menu if the textfield is a password field.

Testing: views_unittests TextfieldTest.LookUpPassword.

Bug:  832103 
Change-Id: I1fd526b0e51b19ae6f118da1d628958f26da380b
Reviewed-on: https://chromium-review.googlesource.com/1013782
Reviewed-by: Michael Wasserman <msw@chromium.org>
Commit-Queue: Sarah Chan <spqchan@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#552194}(cherry picked from commit 81671321cacaabd83b1e8d6effd21ea3132ef35e)
Reviewed-on: https://chromium-review.googlesource.com/1023190
Cr-Commit-Position: refs/branch-heads/3396@{#189}
Cr-Branched-From: 9ef2aa869bc7bc0c089e255d698cca6e47d6b038-refs/heads/master@{#550428}
[modify] https://crrev.com/bead3ed8ff25c2fa78539e410a04bffbe7869b96/ui/views/controls/textfield/textfield.h
[modify] https://crrev.com/bead3ed8ff25c2fa78539e410a04bffbe7869b96/ui/views/controls/textfield/textfield_unittest.cc
[modify] https://crrev.com/bead3ed8ff25c2fa78539e410a04bffbe7869b96/ui/views/controls/views_text_services_context_menu_mac.mm

Labels: TE-Verified-M67 TE-Verified-M68 TE-Verified-67.0.3396.33 TE-Verified-68.0.3418.0
Able to reproduce this issue on build without fix hence verifying on latest canary 68.0.3419.0 and latest M67 - 67.0.3396.33 using Mac 10.12.6.

Now Look Up field is not seen on context menu, after saving password. Attaching screenshots for reference.

As fix is working as intended adding TE-Verified labels.

Thanks!
832103_M68.png
168 KB View Download
832103_M67.png
256 KB View Download

Sign in to add a comment