Passwords in urls are saved in history
Categories
(Toolkit :: Places, defect, P3)
Tracking
()
People
(Reporter: cajones, Assigned: daisuke)
References
(Blocks 2 open bugs)
Details
(Keywords: sec-low, Whiteboard: [adv-main125-][snt-scrubbed][places-security][places-privacy])
Attachments
(5 files, 8 obsolete files)
2.13 KB,
patch
|
jst
:
review+
smaug
:
superreview-
|
Details | Diff | Splinter Review |
4.05 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
![]() |
||
Updated•23 years ago
|
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
Comment 3•23 years ago
|
||
Comment 4•23 years ago
|
||
Comment 5•23 years ago
|
||
Comment 6•23 years ago
|
||
Comment 7•23 years ago
|
||
Comment 10•23 years ago
|
||
Comment 11•23 years ago
|
||
Comment 12•23 years ago
|
||
Comment 13•23 years ago
|
||
Comment 14•23 years ago
|
||
Comment 15•23 years ago
|
||
Comment 16•23 years ago
|
||
Updated•23 years ago
|
Comment 17•22 years ago
|
||
Comment 18•22 years ago
|
||
Comment 19•22 years ago
|
||
Updated•22 years ago
|
Comment 20•22 years ago
|
||
Comment 21•21 years ago
|
||
Comment 22•21 years ago
|
||
Comment 23•21 years ago
|
||
Comment 24•19 years ago
|
||
Updated•18 years ago
|
Updated•18 years ago
|
Comment 27•17 years ago
|
||
Comment 30•15 years ago
|
||
Comment 31•15 years ago
|
||
Comment 32•15 years ago
|
||
Comment 33•15 years ago
|
||
Updated•15 years ago
|
Comment 35•15 years ago
|
||
Comment 36•15 years ago
|
||
Comment 37•14 years ago
|
||
Comment 38•14 years ago
|
||
Comment 39•14 years ago
|
||
Comment 40•14 years ago
|
||
Comment 41•14 years ago
|
||
Comment 42•14 years ago
|
||
Comment 43•14 years ago
|
||
Comment 44•14 years ago
|
||
Comment 45•14 years ago
|
||
Comment 46•14 years ago
|
||
Comment 47•14 years ago
|
||
Comment 48•14 years ago
|
||
Comment 49•14 years ago
|
||
Updated•14 years ago
|
Comment 50•14 years ago
|
||
Comment 51•12 years ago
|
||
Updated•10 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Comment 53•6 years ago
|
||
Wow. 18 years. In Chrome the links like this don't even work:
https://login:pass@example.com/secured-path/
So I'm quite sure any concerns that removing auth data from history are simply invalid by now.
Do note that navigating to the url via JS does work in Chrome. Something like this does work and creates a Basic Auth session in Chrome.
location.href = 'https://login:pass@example.com/secured-path/';
After this, in Chrome history, you will see https://example.com/secured-path/
. I believe this is valid, expected and desired behaviour.
Comment hidden (metoo) |
Updated•3 years ago
|
Updated•3 years ago
|
Comment 56•3 years ago
|
||
In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.
Assignee | ||
Comment 57•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 58•2 years ago
|
||
We will remove the user and pass from the URL for Histories and Favicons using
nsIOService::CreateExposableURI()[1], store them to the database. And, for
Favicons, we read them from the database as well without the user and pass.
Therefore, as the frequency calling CreateExposableURI() will be higher, we
optimize it. Currently, CreateExposableURI() gets/copies the String of UserPass
to check whether there is a user pass info in the URL, and its copying is waste.
So, we prevent from the copying, implement hasUserPass in nsIURI, and refer to
it instead.
[1] https://searchfox.org/mozilla-central/rev/90dce6b0223b4dc17bb10f1125b44f70951585f9/netwerk/base/nsIOService.cpp#1031
[2] https://searchfox.org/mozilla-central/rev/90dce6b0223b4dc17bb10f1125b44f70951585f9/netwerk/base/nsIOService.cpp#1017
Assignee | ||
Comment 59•2 years ago
|
||
Depends on D193623
Updated•2 years ago
|
Comment 60•2 years ago
|
||
Daisuke, I'd suggest to split the nsIURI patches to its own bug, or in general start splitting things that can land sooner into their own bugs, otherwise landing will be a nightmare if we end up with 10 parts or more.
Comment 62•2 years ago
|
||
Comment on attachment 9363629 [details]
Bug 130327: Add hasUserPass attriubte to nsIURI
Revision D193623 was moved to bug 1864985. Setting attachment 9363629 [details] to obsolete.
Comment 63•2 years ago
|
||
Comment on attachment 9363630 [details]
Bug 130327: Use nsIURI::GetHasUserPass() instead of checking user pass string
Revision D193624 was moved to bug 1864985. Setting attachment 9363630 [details] to obsolete.
Assignee | ||
Comment 64•2 years ago
|
||
Depends on D193271
Assignee | ||
Comment 65•2 years ago
|
||
Depends on D193763
Comment 66•2 years ago
|
||
Hi everyone, Desktop is tring to figure out how to handle this in history, and we'd like to coordinate with Mobile and other stakeholders before moving on, to have a coherent path forward.
The idea, so far, is to store history for the exposable URI (URI without userpass) even when the user visits a URI containing a userpass.
This is because not storing history at all would probably be confusing for the user.
This is coherent with Chrome, based on my research, the exposable URI is added to their History
database.
Any concerns with that?
Then, there is still one problem with visited link coloring.
Let me start saying that Chrome is handling it properly, but only because they generate a Visited Links
hashmap out of History, and apparently userpass sites are manually added into it.
We don't have such a thing, thus we're left with some options, all having downsides:
- we never mark userpass uris as visited (as they won't be in history). This may be confusing for the user because they visit the link, but the link remains unvisited.
- we use the exposable uri to mark visitedness coloring. This means urls with different userpass tuples will all be marked as visited when one is visited.
- we handle them as embed visits, thus the link is marked as visited, but only until the next page reload. This is a volatile state that may be fine for the session.
If I should sort by preference I'd probably say 3, 2, 1.
Please forward to a more appropriate person in case.
Comment 67•2 years ago
|
||
I think given how uncommon these uris are nowadays, I agree with your assessment: 3 seems preferable and reasonably simple, 2 seems like an ok compromise, 1 would be unfortunate...
Comment 69•1 year ago
|
||
Comment 70•1 year ago
|
||
Backed out for causing build bustages @ toolkit/components/places/nsFaviconService.cpp
Backout link: https://hg.mozilla.org/integration/autoland/rev/e11b17390ffa5411434159e4a4a3c31e2c2304bf
Comment 71•1 year ago
|
||
Assignee | ||
Updated•1 year ago
|
Comment 72•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/49acd145a636
https://hg.mozilla.org/mozilla-central/rev/e1dc34d01733
https://hg.mozilla.org/mozilla-central/rev/d9c6cd169312
Updated•1 year ago
|
Updated•1 year ago
|
Comment 77•1 year ago
|
||
[discussed over Slack. Also, I agree with Emilio on option 3 being preferable]
Updated•1 year ago
|
Updated•1 year ago
|
Description
•