-
Notifications
You must be signed in to change notification settings - Fork 44
Permit silently storing PSL matched credentials #59
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2089,12 +2089,31 @@ <h3 id="security-cross-origin-leakage">Cross-origin Credential Leakage</h3> | |
| MUST NOT offer credentials to an origin in response to | ||
| {{CredentialsContainer/get()}} without user mediation if the credential's | ||
| origin is not an exact match for the calling origin. That is, | ||
| {{Credential}} objects for <code>https://example.com</code> would not be | ||
| returned directly to <code>https://www.example.com</code>, but could be | ||
| {{Credential}} objects for <code>https://example.com/</code> would not be | ||
| returned directly to <code>https://www.example.com/</code>, but could be | ||
| offered to the user via the chooser. | ||
| </li> | ||
| <li> | ||
| MAY store credentials without user mediation when | ||
| {{CredentialsContainer/store()}} is called if the credential was | ||
| retrieved via a user mediated {{CredentialsContainer/get()}} from a | ||
| PSL-matched domain and new domain is still PSL-matching the original | ||
| domain for which the credentials were stored. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: |
||
| </ol> | ||
|
|
||
| <div class="example"> | ||
| A user stores a credential for <code>https://www.example.com/</code> on | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: |
||
| their computer. This credential is synced via the browser's syncing | ||
| technologies to the user's phone. The user visits | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: I'd suggest dropping the sync bit. It's irrelevant to your example. """ |
||
| <code>https://m.example.com/</code>. The browser may provide the stored | ||
| credential to <code>https://m.example.com/</code> in a user mediated way | ||
| due to the Public Suffix List [[!PSL]]. After that the website can call | ||
| {{CredentialsContainer/store()}} and the browser may silently store a | ||
| second credential or a reference that allows | ||
| <code>https://m.example.com/</code> to retrieve the credential without user | ||
| mediation in the future. | ||
| </div> | ||
|
|
||
| {{PasswordCredential}}s further mitigate the risk of data leakage by never | ||
| exposing the {{[[password]]}} slot directly to a page's JavaScript, but only | ||
| allowing its submission to a same-origin server-side endpoint via {{fetch()}}. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could be a little more precise. How about something like: "
... via a user-mediated {{CredentialsContainer/get()}}, if the credential's {{[[origin]]}}'s <a>registerable domain</a> is the same as the <a>current settings object</a>'s <a for="environment settings object">origin</a>'s <a>registerable domain</a>."