News for hackers. Stuff that matters.
Re:Stopping FTP support in Firefox 90 by antisol on Tuesday July 20, 2021 @03:42PM (#27898306)
I'd just like to add to this that ftp is a relatively simple protocol, not particularly complicated to implement. It's not a constantly fluctuating standard that requires a team of 50 developers to keep pace with. Supporting FTP isn't some big technical challenge. The code has been there in the firefox codebase for nearly 20 years now, running just fine. All you need to do to continue to support ftp is nothing at all. If having the small amount of code to do FTP support in there is making your job really hard, that would seem to indicate to me that you're not very good at your job.

I also find the incredibly vague and nonspecific "but security!" scaremongering language to be quite hyperbolic, a repeat of the borderline lies mozilla peddled when they decided to dump xul for webextensions.

It seems to me that the removal of features like this amounts to "I don't use/understand it, therefore I'm going to assume it's not useful to anybody".

Of course, Mozilla being out of touch with its user base is hardly news, so this comes as no surprise at all to me.

(While I'm talking about browsers and particularly mozilla, I'd just like to take a moment to congratulate them on finally getting their market share down below that of edge. They've been working hard at driving firefox into the ground for a long time now, and I'm sure they must be feeling very proud to have finally achieved this important milestone in their seemingly unending quest to achieve that holy grail of 0 users. So I'd just like to say: Nice work, Mozilla!)

Re:Stopping FTP support in Firefox 90 by billyhoffman on Tuesday July 20, 2021 @04:36PM (#27898950)
> ftp is a relatively simple protocol, not particularly complicated to implement

Parts of it are, sure, but parts of it are an absolutely horror show (The client opens a port, and then the server connects back to it!?), text conversion and binary modes that's based on ASCII, different list formats, etc. It's not great. Worse, it doesn't support the good stuff like implicit TLS extensions

> Supporting FTP isn't some big technical challenge. The code has been there in the firefox codebase for nearly 20 years now, running just fine. All you need to do to continue to support ftp is nothing at all.

Not at all. Continuing to support FTP means continuing to defend attack surface that's implemented as 20 year-old code, to deliver a feature that in 2021 the majority of people do not use.

It's a cost-benefit analysis. I want Mozilla to do more. If they believe removing FTP support enables them to do more, I'll all for it.

Re:Stopping FTP support in Firefox 90 by antisol on Tuesday July 20, 2021 @05:00PM (#27899255)
>It's not great

It's simpler than a pdf viewer.

>It's a cost-benefit analysis

If it were, they'd have never added a pdf viewer in the first place. Everyone already had one. Near-zero benefit, huge cost.

>I want Mozilla to do more.

At this point I'm afraid we're just going to have to agree to disagree. For the last 5+ years, Every time Mozilla "do more", I throw up in my mouth a little.

Re:Stopping FTP support in Firefox 90 by oblio on Wednesday July 21, 2021 @04:13AM (#27903673)
> If it were, they'd have never added a pdf viewer in the first place. Everyone already had one. Near-zero benefit, huge cost.

Every time I clicked a PDF online, I dreaded the external viewer opening (especially Adobe Reader). I very much liked when they integrated a PDF viewer. Chrome also has one.

I'm willing to bet the internal PDF viewer has at least 100x (more likely 1000x) the users the FTP client had.

Re:Stopping FTP support in Firefox 90 by antisol on Wednesday July 21, 2021 @05:01AM (#27903971)
Sounds like you had a shitty pdf viewer installed. Which is not my problem.

Why was I forced to install a substandard, feature-poor, ridiculously slow pdf viewer that I never wanted and which took over as the default pdf viewer against my wishes and without asking me, just because you couldn't be bothered to install a decent one?

>I'm willing to bet the internal PDF viewer has at least 100x (more likely 1000x) the users the FTP client had.

Yeah, that tends to happen when you change the defaults without asking.

Re:Stopping FTP support in Firefox 90 by oblio on Wednesday July 21, 2021 @05:09AM (#27904008)
Vent, rant, get it out of your system :-)
Re:Stopping FTP support in Firefox 90 by antisol on Wednesday July 21, 2021 @05:10AM (#27904009)
Way ahead of ya ;)

but you didn't address my question

Re:Stopping FTP support in Firefox 90 by oblio on Wednesday July 21, 2021 @07:11AM (#27904739)
All PDF viewers are crap in my experience. If you don't agree, you haven't used PDF enough. PDF has Javascript as a programming language, it has extensions for 3D models and a ton of other stuff (I think even sound). As a format it's almost as complex as the entire web stack.

Multiple web browsers have embedded PDF viewers because the PDF viewing experience for most people sucked so much. That's not a product decision taken lightly.

Your personal experience does not reflect that of many other browser users, it seems. Even on mobile I dread clicking a PDF link.

Re:Stopping FTP support in Firefox 90 by kragen on Wednesday July 21, 2021 @09:44AM (#27906153)
Yeah, PDF can play embedded sound files. It is an overly complex format. Its character encodings are defined by embedded CMap files, which are a restricted subset of PostScript. It includes by reference the CCITT G3 fax standard, PNG, JPEG, JPEG-2000, JS, Deflate, TrueType, the PostScript Type 1 font format, a separate richtext format that isn't PDF for annotations (ISO 32000-1:2008 §12.7.3.4), and several other things. In different contexts it represents line endings as \r, \n, or your choice of either of those plus \r\n. And the 3-D models thing isn't an extension; it's in the base spec (§13.6), although the actual 3-D format is ECMA-363, which is included by reference, like Deflate and JPEG.

But it's nowhere close to the complexity of the entire web stack, not within an order of magnitude. It's much, much simpler.

Re:Stopping FTP support in Firefox 90 by antisol on Wednesday July 21, 2021 @08:19AM (#27905284)
You still haven't addressed my question.

I'd respond to the rest of your vague and incorrect opinions, but why would I do that if you're not even going to bother to address my points despite me asking you to repeatedly?

Re:Stopping FTP support in Firefox 90 by oblio on Wednesday July 21, 2021 @11:02AM (#27907254)
> You still haven't addressed my question.

If I must spell it out, there you go:

> Why was I forced to install a substandard, feature-poor, ridiculously slow pdf viewer that I never wanted and which took over as the default pdf viewer against my wishes and without asking me, just because you couldn't be bothered to install a decent one?

Because you are part of a minority of Chrome and Firefox users and I'm probably part of the majority of users, in this regard. I don't know this for sure, but if a Google program manager decided to back building and embedding an entire PDF reader into a browser, I'm 99% convinced this is true.

We're dumb and you have to live with us.

Life's tuff.

Re:Stopping FTP support in Firefox 90 by antisol on Wednesday July 21, 2021 @12:52PM (#27908755)
That's.......... actually not a bad answer to my question, goddamnit ;)

BUT: you do have to concede that it's not a technical reason. It boils down to "Adobe are goddamn useless, let's just do their job for them because it will make our life a bit easier". There's no requirement for pdf viewing in the HTML spec or anything like that. It's not required for web browsing and it doesn't really have any place in the browser in a technical/engineering sense - from an "engineering purity" perspective these two things should be separate, even if you do like your pdf viewers written in javascript. The "correct/pure" engineering solution would have been for them to bundle their awful javascript pdf viewer in an electron(ish) app and release it as the "google pdf viewer", with all the requisite spam in gmail and the technical press, and to have chrome default to it if it's installed. Hell, you could make it a separate application and still bundle it with chrome.

There must have been a LOT of support enquiries about "the adobe doesn't work" for it to survive a cost/benefit analysis for implementing an entire pdf viewer. That's not a trivial piece of work that somebody churned out in an afternoon (despite the performance of the thing feeling like it ;) )

If I was that product manager, I would not make that decision lightly. First I'd have built a special page into my support area that redirects the user to adobe.com/support if they type "pdf" or "adobe" into the "search support" bar. (You know what I mean - you've seen it in action on help desk sites where they try to fob you off rather than just giving you a "contact us" box straight away).

This is all a whole lot easier to implement than a pdf viewer. In fact if you're using something like zendesk you get it for free. For me to decide to build a pdf viewer into my browser, I'd have to be getting a high volume of support emails about it after I'd implemented the change above.

I don't think that's what happened.

In the post i largely ignored, you said:

>Multiple web browsers have embedded PDF viewers because the PDF viewing experience for most people sucked so much

Allow me to give you an alternate explanation / interpretation, which I admit might come across as "a little bit cynical" or paranoid, but which I believe to be more fully borne out by the facts than the "cost/benefit analysis" theory you advocate. I don't think "multiple browsers" did that at all. Here's my theory:

1. Google decided to build a pdf viewer into chrome because they were busy trying to turn chrome into an operating system (see also: chrome os), and they knew that would mean including a pdf viewer, since a pdf viewer is a fairly essential tool for an operating system if it wants any kind of mainstream adoption. This had the added side-effect that for many users their pdf viewing experience would improve, because adobe are basically incapable of doing software. So it was really a "two-fer" for google.

2. Mozilla, seeing google's announcement for a pdf viewer built into their browser, did what Mozilla has been doing for the past decade: copy Chrome without giving any thought at all to any of the considerations you and I are discussing today. Or indeed any consideration other than "what is google doing with chrome this week?".

Now, I do try to keep my paranoia and cynicism in check, but to me this seems like a far more likely explanation. Perhaps I'm wrong. It would be kind of nice if I was. If you have some data to support your theory I'd love to see it.

I don't have much data to back up my theory. I can't be bothered looking into what chrome's support site was like pre-pdf-support. But I do have one data point: I can confirm that chrome added pdf support first, with Mozilla aping them almost immediately (they were pretty much at parity within a year or two).

Maybe Mozilla had coincidentally already done a full cost/benefit analysis of adding a pdf viewer before google went live with theirs. It's not impossible. But it seems a little unlikely to me.

</rant> ;)

Re:Stopping FTP support in Firefox 90 by apostacy on Tuesday July 20, 2021 @10:55PM (#27901845)
> It's a cost-benefit analysis. I want Mozilla to do more. If they believe removing FTP support enables them to do more, I'll all for it.

This was the justification for removing RSS support.

And look at what Mozilla has chosen to develop instead.

Re:Stopping FTP support in Firefox 90 by kragen on Tuesday July 20, 2021 @05:01PM (#27899279)
It's not a well-designed protocol, but it's still a relatively simple protocol.

Your reasoning, that "Continuing to support $x means continuing to defend attack surface that's implemented as $y year-old code, to deliver a feature that in $z the majority of people do not use," would ultimately consign every feature on the web to the book-burners' flames, except for the worthless minority of features that the majority of people do use. Chinese HTML text support, I suppose, and biometric authentication, and whatever the latest video codec is.

After all, it's 02045. Who watches videos encoded in VP9 now anyway? It's been obsolete since 02028! Or reads English text? Much less Hebrew? The majority of people do not use those features. Why should we continue to defend that attack surface?

Re:Stopping FTP support in Firefox 90 by billyhoffman on Tuesday July 20, 2021 @05:36PM (#27899690)
Straw men are not helpful. I never suggested removing a language used by millions of people. Let me be more specific: Pruning support for old formats and protocols is a feature, not a bug.

Let's pick something else from this golden age of "browsing HTML pages via the FTP protocol" that people on this thread keep professing: XBM images, the very first image format ever supported by browsers, and used when Marc Andreessen literally invented the IMG tag [0].

XBM is a crazy simple image format [1]. Yet, because it is essentially C code that defines a buffer size and then gives you a char array, caused security bugs over and over [2] in all major browsers. Since virtually no one was using XBM images, the browsers all removed support for it [3].

The browsers removed code that was already written, and abandoned functionality that had already existed, because it reduced attack surface supporting something that virtually no website was using. Exactly like FTP support.

0 - https://eager.io/blog/to-what-extent-did-marc-andreessen-inv...

1- https://en.wikipedia.org/wiki/X_BitMap

2- https://www.cvedetails.com/google-search-results.php?q=xbm+i...

3- https://en.wikipedia.org/wiki/X_BitMap#Support

Re:Stopping FTP support in Firefox 90 by kragen on Tuesday July 20, 2021 @06:10PM (#27900002)
> I never suggested removing a language used by millions of people. Let me be more specific: Pruning support for old formats and protocols is a feature, not a bug.

You're contradicting yourself here; Hebrew is a language used by millions of people (about ten million, so 99.9% of the world's population does not use it) and also an old format (about 3000 years old). "Pruning" support for old formats makes history inaccessible; "pruning" support for old protocols requires constant effort to keep your servers compatible with whatever is fashionable with today's cascade of attention-deficit teenagers [CADT].

And if we follow your originally stated reasoning, "Continuing to support $x means continuing to defend attack surface that's implemented as $y year-old code, to deliver a feature that in $z the majority of people do not use," we ineluctably arrive at the conclusion that we should remove support for languages used by millions of people.

Taken literally, we should remove support for all languages, since no language is used by more than 50% of the world population, but in keeping with the principle of charity, I interpreted your "majority" as "vast majority". I'm not sure where exactly the vast-majority cutoff lies: a feature that 90% of people do not use? That would include all natural languages except English and Chinese. 95%? All languages except those, Hindi, and Spanish. (In particular, it leaves out all those RTL languages that cause so much complication in text rendering, like Arabic.) 99%? That leaves 20 languages, but not, for example, Persian, Swahili, Italian, or Thai. Even a cutoff of 99.9% might leave out Hebrew, Uighur, and Greek.

What percentage of users do you think use View Source? The web inspector? Printing?

That's not a strawman argument; it's a slippery-slope argument. And, I think, it's a valid slippery-slope argument. If we are going to avoid removing support for these things, we need a better basis on which to make the decision than, "Continuing to support $x means continuing to defend attack surface that's implemented as $y year-old code, to deliver a feature that in $z the [vast] majority of people do not use."

I do agree that there needs to be some kind of cutoff. Gopher is probably below it; WAIS and XBM certainly are. But FTP?

XBM was never very widely used in web pages because it didn't support color, grayscale, or compression, although for a little while it was the only image format supported by browsers that supported transparency. I did put it on a few of my web pages, but as soon as Netscape added support for transparent pixels in GIFs, I switched over and never looked back. This would have been about 01994.

By contrast, there are about 1.1 million anonymous FTP servers today, one out of every 4000 public IP addresses, and about one for every 30 HTTP(S) servers: https://zakird.com/papers/dsn-ftp.pdf That's more than the number of HTTP servers that existed for the first seven years of the Web, up to 01997: https://news.netcraft.com/archives/2021/05/31/may-2021-web-s...

You can be sure that there's millions of people using them. Probably more people than speak Hebrew, in fact.

Re:Stopping FTP support in Firefox 90 by billyhoffman on Tuesday July 20, 2021 @06:25PM (#27900117)
We are at an impasse that can only be solved by data: how many unique users downloaded a document via an FTP URI in a web browser in a month? If I were a betting man, I'd wager it's less than the unique number of users who visited a webpage rendered using Hebrew, but we don't know.

Hopefully the browser makers will be transparent with this telemetry.

Re:Stopping FTP support in Firefox 90 by kragen on Tuesday July 20, 2021 @07:11PM (#27900434)
Precisely what I'm arguing is that we should stop destroying access to all information except the most popular—I'm astounded to find that you disagree! That is not an impasse that can be resolved by data.

Popularity is not a valid measure of value. The July 02021 issue of People magazine sold 3 million copies, in a single month, and is almost completely devoid of value. (Maybe in 02068 it will provide valuable insights into vapid 02020s US popular culture.) Amazon tells me Claude Shannon's Mathematical Theory of Communication is outsold by 185,210 other books at present, so perhaps it has sold 100 copies this month, but it is the foundation of data compression, error correction, and significant amounts of artificial intelligence work. One Hundred Years of Solitude has sold about 50 million copies—over the past 54 years, so perhaps it sells 80,000 copies a month, 40 times less than the July 02021 issue of People. (But probably less; it probably doesn't sell as much as it did 30 years ago.)

40:1 is more than the ratio between the number of HTTPS servers and the number of anonymous FTP servers.

Re:Stopping FTP support in Firefox 90 by apostacy on Tuesday July 20, 2021 @10:58PM (#27901869)
> (While I'm talking about browsers and particularly mozilla, I'd just like to take a moment to congratulate them on finally getting their market share down below that of edge. They've been working hard at driving firefox into the ground for a long time now, and I'm sure they must be feeling very proud to have finally achieved this important milestone in their seemingly unending quest to achieve that holy grail of 0 users. So I'd just like to say: Nice work, Mozilla!)

Well said. And the more they fail, the more they double down.

But their decisions go beyond incompetence. They might as well be controlled opposition, actively undermining open web technologies.

They deprecated RSS support with very flimsy justifications, but they make supporting the latest DRM standards a top priority, because they are terrified of losing the blessing of Netflix.

Re:Stopping FTP support in Firefox 90 by antisol on Wednesday July 21, 2021 @04:41AM (#27903862)
> They might as well be controlled opposition, actively undermining open web technologies.

Yeah, this pretty much sums it up. A conspiracy minded person might accuse them of all kinds of nasty shenanigans, especially given who their primary finding source is these days.

>They deprecated RSS support with very flimsy justifications, but they make supporting the latest DRM standards a top priority, because they are terrified of losing the blessing of Netflix.

Oh now you're just being cynical. RSS support was like 150 lines of code! A huge attack surface! And it was invented before the year 2000! That makes it useless!

As for DRM, I'm sure that encryption algorithms are much simpler to implement and have less attack surface than an RSS reader, and that Mozilla added this tech for my own good, and that I just don't understand how it's useful to me because I'm a dumb.

Re:Stopping FTP support in Firefox 90 by dvfjsdhgfv on Tuesday July 20, 2021 @04:22PM (#27898799)
> I also find the incredibly vague and nonspecific "but security!" scaremongering language to be quite hyperbolic

Well, there is nothing vague here: FTP is a cleartext protocol, and we're migrating towards protocols that provide integrity and encryption.

Sometimes I think it's a generational thing. I find it hard to accept this, growing up with testing all protocols with Telnet and so on. But unfortunately the Internet has changed a lot, and especially bad and unscrupulous people learned how to find all possible and sometimes very creative ways to abuse whatever had been created in the past. So I understand that cleartext POP3, IMAP, SMTP and FTP authentication should go away.

Anonymous FTP is a slightly different beast though. Security-wise, it has the same weaknesses as regular HTTP. But nobody is removing HTTP support from web browsers (yet). So I'm a bit sorry to see it removed from FireFox. There are many better things to copy from Chrome.

Re:Stopping FTP support in Firefox 90 by apostacy on Tuesday July 20, 2021 @09:25PM (#27901253)
This is security hypocrisy.

HTTP is a cleartext protocol. Why does your browser quietly navigate to any HTTP site you throw at it? Anonymous FTP isn't any less secure than HTTP.

Why does your browser scream at you for connecting to an encrypted but unverified site, such as a self signed certificate on a closed network, but have no warnings at all for an unverified and unencrypted HTTP connection?

How do you know the context that I am using a plaintext protocol in? How do you know I'm not connecting over a patch cable to the computer next to me? How do you know I'm not connecting over an SSH tunnel?

The user should easily be able to override these safety measures.

The only argument I have heard this is that the user could be tricked into disabling security mechanisms. But that is true of anything in computing. The user could be tricked into typing in rm -rf.

When there is inconstancy like this, it usually implies there is something else going on that we aren't seeing. I have a feeling that companies like Google and Apple have an agenda to move people away from having too much outside of their influence.

Re:Stopping FTP support in Firefox 90 by dvfjsdhgfv on Wednesday July 21, 2021 @03:41AM (#27903446)
> When there is inconstancy like this, it usually implies there is something else going on that we aren't seeing. I have a feeling that companies like Google and Apple have an agenda to move people away from having too much outside of their influence.

I think it's both. For one thing, I think they genuinely do care about security, because any high-profile incident involving their products is a cause of embarrassment for them. At the same time, I have a feeling they would prefer people not inspect the traffic moving in and out of their apps, for example.

Re:Stopping FTP support in Firefox 90 by da_chicken on Tuesday July 20, 2021 @11:25PM (#27902012)
> HTTP is a cleartext protocol. Why does your browser quietly navigate to any HTTP site you throw at it? Anonymous FTP isn't any less secure than HTTP.

This is true, but it ignores the fact that the web has been moving towards depreciation of HTTP in favor of HTTPS.

While FTP is an established standard, FTPS is kind of a nightmare with different and incompatible variants.

Re:Stopping FTP support in Firefox 90 by antisol on Wednesday July 21, 2021 @04:49AM (#27903902)
No, it doesn't.

The parent explicitly mentions that there are no warnings for a cleartext http connection, but warnings for an encrypted connection to a self-signed certificate.

This is security theatre, not actual security.

Re:Stopping FTP support in Firefox 90 by antisol on Tuesday July 20, 2021 @05:05PM (#27899318)
>there is nothing vague here: FTP is a cleartext protocol

Sometimes there's nothing wrong with transferring stuff in cleartext.

Screaming vague and meaningless "for security!" mantras isn't helpful.

Re:Stopping FTP support in Firefox 90 by GekkePrutser on Tuesday July 20, 2021 @05:40PM (#27899741)
You can still test those protocols with OpenSSL stunnel :)
Re:Stopping FTP support in Firefox 90 by fomine3 on Wednesday July 21, 2021 @02:19AM (#27902918)
I can agree that FTP isn't much a attack vector, but definitely against for XUL.
Re:Stopping FTP support in Firefox 90 by antisol on Wednesday July 21, 2021 @02:28AM (#27902961)
How many in-the-wild attacks did you see using XUL from extensions that were in the curated addons ecosystem, i.e not downloaded and manually installed via extra steps a novice is unlikely to go through?
Re:Stopping FTP support in Firefox 90 by fomine3 on Wednesday July 21, 2021 @02:55AM (#27903120)
XUL allows too many modification for browser. It increases attack surface, and it makes hard Firefox developer to modify Firefox's internals to improve things.
Re:Stopping FTP support in Firefox 90 by antisol on Wednesday July 21, 2021 @04:42AM (#27903869)
you didn't answer my question.

I asked how many times you saw this exploited in the wild, not "how would an attack theoretically work".