Open
Bug 146289
Opened 23 years ago
Updated 2 years ago
passwords in URLs are saved in URL dropdown
Categories
(SeaMonkey :: Location Bar, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: cajones, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
|
2.36 KB,
patch
|
Details | Diff | Splinter Review |
When a URL is entered in the form ftp://uswername:password@sitename the complete
string is saved in the URL dropdown, including the password. Username and
password is readable and accessable to anyone, which means that this is a
security issue.
Someone could select this information in the URL dropdown and access the secure
site.
Please always include build ID in bug-reports.
*** This bug has been marked as a duplicate of 130327 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Bug 130327 addresses the problem of the password in the history. This addresses
the problem of the password being save in the URL DROPDOWN. This is a different
issue.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Sorry. I always thought the urls in url dropdown depended on history.
Comment 5•23 years ago
|
||
Also happens for http passwords (http://foo:bar@host/).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Passwords in URLs are saved in URL dropdown → passwords in URLs are saved in URL dropdown
Comment 6•23 years ago
|
||
Dupe of bug 130327
*** This bug has been marked as a duplicate of 130327 ***
Status: NEW → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → DUPLICATE
Comment 7•23 years ago
|
||
I'll also add that the url dropdown list is obtained from history, so this is a
dupe. If its n0ot in history, it won't be autocompleted.
Comment 8•23 years ago
|
||
But it will come up in the dropdown. We have code in 130327 that removes it from
the global history, but it still shows up when you pop down the URL bar.
Comment 9•23 years ago
|
||
Even with a clean profile? If its already in history, your patch won't help -
that ohnly stops new entries from being added.
Comment 10•22 years ago
|
||
REOPEN:
I'm going to make this a depends because the two features should still be tested
separately.
Comment 11•21 years ago
|
||
see related bug 88771
Updated•20 years ago
|
Assignee: hewitt → ajschult
Status: REOPENED → NEW
Comment 12•20 years ago
|
||
I don't know what the best way to handle this is. We could do autocomplete, history drop down or both. We could also attempt to snip the password out of what was typed, although we might occaisionally screw that up.
Attachment #206222 -
Flags: review?(iann_bugzilla)
Comment 13•20 years ago
|
||
Comment on attachment 206222 [details] [diff] [review]
patch
I think this is the safest option
Attachment #206222 -
Flags: review?(iann_bugzilla) → review+
Updated•20 years ago
|
Attachment #206222 -
Flags: superreview?(jag)
Comment 14•20 years ago
|
||
Comment on attachment 206222 [details] [diff] [review]
patch
While I'm not sure not adding the URL to global history is the right approach to begin with[0], don't do your own URL parsing. Instead, create a URL object from the string and ask it if it has a password, and reject based on that.
[0] I'd rather we add the url without the password part, or perhaps add it with password but filter it out when constructing the results for autocomplete (which would also help existing profiles), but I guess that's bug 88771.
Attachment #206222 -
Flags: superreview?(jag) → superreview-
Comment 15•20 years ago
|
||
> [0] I'd rather we add the url without the password part, or perhaps add it with
> password but filter it out when constructing the results for autocomplete
> (which would also help existing profiles), but I guess that's bug 88771.
I thought about filtering after-the-fact too. But it would mean that passwords would be stored as plaintext in your profile. And assuming people have a sane limit on their history (a month? default is 9 days), the passwords will get purged fairly quickly. That also won't help the history dropdown, which is harder to filter.
Comment 16•20 years ago
|
||
This stores the passwordless URI in history but still doesn't add it to the history dropdown since it's a lot harder to remove it there reliably since we add what was typed to the dropdown instead of a URI.
Attachment #206222 -
Attachment is obsolete: true
Attachment #206282 -
Flags: superreview?(jag)
Attachment #206282 -
Flags: review?(iann_bugzilla)
Comment 17•20 years ago
|
||
Hmm, I wonder if it's better to store the fixed up URI (without password) than store nothing.
Comment 18•20 years ago
|
||
Well, the one advantage to storing it without the password is that the user would get "ftp://user@host.com/" the next time from autocomplete. They could select it and it would invoke the password dialog / password manager, which is better than if they get nothing and type it all out again (including password).
Comment 19•20 years ago
|
||
(In reply to comment #16)
> Created an attachment (id=206282) [edit]
> snip out the password
>
> This stores the passwordless URI in history but still doesn't add it to the
> history dropdown since it's a lot harder to remove it there reliably since we
> add what was typed to the dropdown instead of a URI.
>
Wouldn't it be possible just to special case those with username:password in for the history dropdown? Somehow making use of the fixedupuri perhaps?
Comment 20•20 years ago
|
||
Comment on attachment 206282 [details] [diff] [review]
snip out the password
Please assume this block is in a try/catch block:
>+ if (fixedUpURI.password) {
>+ // If the URI has a password, add to the typed history without the
>+ // password, and leave it out of the history dropdown completely.
>+ fixedUpURI.password = "";
>+ gGlobalHistory.markPageAsTyped(fixedUpURI);
>+ return;
>+ }
nsIURI.password might throw (nsSimpleURI does)
Comment 21•20 years ago
|
||
Comment on attachment 206282 [details] [diff] [review]
snip out the password
r=me as long as you answer the question from comment #19
Attachment #206282 -
Flags: review?(iann_bugzilla) → review+
Comment 22•20 years ago
|
||
Comment on attachment 206282 [details] [diff] [review]
snip out the password
>+ var fixedUpURI = gURIFixup.createFixupURI(url, 0);
I know this was a cut-n-paste job but this should really be FIXUP_FLAGS_NONE.
| Assignee | ||
Updated•17 years ago
|
Product: Core → SeaMonkey
Updated•17 years ago
|
Assignee: ajschult → nobody
QA Contact: claudius → location-bar
Comment 24•7 years ago
|
||
Comment on attachment 206282 [details] [diff] [review]
snip out the password
Clearing review. This patch would need to be redone.
Attachment #206282 -
Flags: superreview?(jag-mozilla)
Attachment #206282 -
Flags: review+
Updated•2 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•