Canceling the OS auth dialog is wrongly counted as an invalid login attempt
Categories
(Firefox :: about:logins, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox75 | --- | unaffected |
| firefox76 | --- | wontfix |
| firefox77 | --- | verified |
People
(Reporter: cmuntean, Assigned: jaws)
References
Details
Attachments
(2 files)
[Affected versions]:
- Nightly 77.0a1;
- Beta 76.0b8;
[Affected Platforms]:
- Windows 10 x64;
- Windows 7 x64;
- Windows 8.1 x32;
[Prerequisites]:
- Have an OS password set.
- Have at least one login saved.
- Have an account lockout policy set to 5 invalid logon attempts.
[Steps to reproduce]:
- Open the latest Nightly Firefox browser.
- Navigate to the "about:logins" page and select a saved login.
- Click on the "Show Password" button.
- Click the "Cancel" button of the OS auth dialog.
- Repeat 4 more times the step 3 and 4.
- Click again the "Show Password" button.
- In the OS auth dialog enter the valid password.
- Observe the behavior.
[Expected result]:
- The password is shown.
[Actual result]:
- "The referenced account is currently locked out and may not be logged on to." message is displayed and the password is not shown.
[Notes]:
- Also, the "
pwmgr reauthenticate os_auth fail" telemetry event is registered when the OS auth dialog is canceled. This telemetry event is also sent on Mac OS when the auth dialog is canceled. - Attached a screen recording with the issue.
| Assignee | ||
Comment 2•5 years ago
|
||
The lockout is because the blank password auth attempt is happening on each show of the dialog. That will be fixed by bug 1633090.
The line at https://searchfox.org/mozilla-central/rev/158bac3df3a1890da55bdb6ffdaf9a7ffc0bfb0a/toolkit/modules/OSKeyStore.jsm#258 needs to be changed to fix the Telemetry issue that was mentioned in the notes. We will either need to add a "canceled" value or remove it.
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 3•5 years ago
|
||
Turns out this is less of a bug than was originally thought. Both for Master Password as well as OS auth (Windows and Linux), the only way to exit the dialog without a valid authentication attempt is through cancel. So there is no separation between "fail" or "cancel", just misleading terminology.
I will attach a patch that changes "fail" to "cancel" and add more to the Events.yaml description.
| Assignee | ||
Comment 4•5 years ago
|
||
Updated•5 years ago
|
| Assignee | ||
Comment 5•5 years ago
|
||
This change will cause some inconsistencies with Telemetry data as users update, but the Telemetry probe is recent enough that we may be OK with changing the name.
Updated•5 years ago
|
Comment 7•5 years ago
|
||
| bugherder | ||
| Reporter | ||
Comment 8•5 years ago
|
||
I have verified this issue and the description is correctly updated in the probe dictionary. Considering this I will mark this issue as verified - fixed.
Updated•5 years ago
|
Description
•