So yeah, um, this is not okay. It is not discoverable and could easily leak sensitive information. Auth credentials even, seriously? Also Chrome does this too. And it is preserved across `mv` to another filesystem.https://twitter.com/gynvael/status/1077671412847046657 …
-
Show this thread
-
Replying to @marcan42
not that having a password in the URL would be a good security design anyway
1 reply 0 retweets 4 likes -
Replying to @Arisotura
This is how HTTP Basic authentication works. It's part of the HTTP URI standard. And wget is smart enough to hide the password when showing its messages on stderr, but then goes ahead and dumps it in the xattr verbatim.
2 replies 1 retweet 10 likes -
Replying to @marcan42
You don’t need to support credentials in URLs in order to support basic auth. The credentials are placed in header fields in the HTTP get request.
1 reply 0 retweets 0 likes -
Replying to @mathew
Credentials in a URI is one (perhaps the only?) standard way for supplying the contents of that header field that is cross-application.
2 replies 0 retweets 0 likes -
Actually, working with basic auth recently I found that most browsers have already dropped support for URL creds. Too easy to exploit. Wget needs to fix, but one possible fix is dropping URL creds entirely.
1 reply 0 retweets 0 likes -
Replying to @GrandOpener @mathew
Chrome and Firefox support it, >77% market share right there. Who are these "most browsers"?
1 reply 0 retweets 0 likes -
Are you sure Chrome supports it? Didn’t work for me.
1 reply 0 retweets 0 likes -
-
Ah, did you just type the url in? It might still work like that. It was intentionally disabled for subresource requests in Chrome 59, and stopped working for opening Chrome from CLI around the same time. Makes it kinda useless for scripting.
1 reply 0 retweets 0 likes
I also tested it from the command line, and from <a> links on another origin. It works.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
$ getfattr -d -m - test
user.xdg.origin.url="https://user:passwd@gynvael.coldwind.pl/"