by JonathanBeuys · 2y ago · 0 comments
https://name:password@news.ycombinator.com
1: When you bookmark them, it shows the auth part when you hover the bookmark with the mouse.
2: When you open them from the command line
firefox https://name:password@news.ycombinator.com
And then ctrl+click links on the site, it opens the new tab and shows the auth part in the tab title as long as the link loads. It seems the "current url" in Firefox code is stored with the auth part, and it passes that part on to local links.These issues make it insecure to use auth urls because as soon as someone looks over your shoulder (or there is a camera like in many cafes), you are p0wned.
I wish we had a better way to log into a website from the command line, like ssh keys. But for now, we are stuck with what we have. And Firefox makes it insecure to use it. So for now, I continue to use Chromium.
That is the bigger security issue you have, not how Firefox is handling the display of the URL.
If anything, Firefox is highlighting your insecure security practice.
Regarding storing them in plain text: That's not much different from ssh keys. When someone can read your ssh key, they can log in as you.
If you know a better way to automatically log a user into a website, let us know!
In the end, every security mechanism is "plain text". Even ssh keys. When someone gains access to your ssh key, which is just an ascii string, they can log in as you.
I strongly suggest looking into multi-factor authentication, or other modern authorization/security mechanisms if you want to see examples of security systems that are not just plain text.
> Chromium does not display it.
Security by obscurity is not ideal, although I can understand that the lack of this feature in Firefox hinders your usecase.
You would also have to get hold of my machine and get past it's security mechanisms.
You can put as many layers on top of what you call "obscurity". But at the bottom it's still just a simple string that holds the power to authenticate you.
And "multi-factor authentication" does not help with the situation "User is allowed to use this script, so they are also allowed to use that website. Let's open it for them.".