Happy 50th Birthday FTP (filestash.app) 97
FTP (file transfer protocol) celebrated its 50th anniversary this week. Long-time Slashdot reader sandbagger shares an article commemorating a half-century of FTP:
Over the years, the FTP protocol got refined with 16 different revisions(*1) adding support with TCP/IP, a secure extension also known as FTPS which is leveraging the same tech as HTTPS and more recent addition like IPv6 support.
Fifty years after its inception, FTP is still going very strong with millions of FTP server still being exposed on the internet which is fairly amazing considering the bad press it gets...
Fifty years after its inception, FTP is still going very strong with millions of FTP server still being exposed on the internet which is fairly amazing considering the bad press it gets...
Wow (Score:4, Funny)
I thought you were dead old man. Happy Birthday
Re: (Score:2)
Re: (Score:3)
For some reason the FTP protocol is there because it's supported on almost every platform out there.
It's often a "last resort" when no other alternative works.
Re: (Score:3)
Re: Wow (Score:2)
Think of these protocols as the Serial port of networking. Sure you have all these fast and fancy interconnect these days but almost every single device has a JTAG port that speaks serial
Re: (Score:2)
It's not only because it works on every platform. It's also sometimes the best solution, particularly for huge files or directories. If you need to transfer a 150 GB. file over an unreliable link, FTP is the only protocol that will work. Even if the link breaks at 99% in the transfer, you can resume the transfer.
Re: (Score:2)
WAR FTP (Score:2)
Miss the days of running WAR Ftp on my 1.5mbit adsl ine and sharing music with others and having others upload music to your server you never heard of :)
Re: WAR FTP (Score:1)
Re: (Score:2)
Thats something the torrent cant do!
Re: (Score:2)
Re: (Score:2)
Yes you could set dl/ul ratios. So someone would have to upload 2 files to be able to download 1 file.
Re: WAR FTP (Score:1)
Firefox (Score:5, Informative)
FTP support was recently removed from Firefox nightly and it will soon be officially removed in Firefox 90.
https://blog.mozilla.org/addon... [mozilla.org]
Re: (Score:1)
Re: (Score:3)
No surprise there. Chrome did it already and Firefox always has to copy Chrome.
Re: (Score:3)
Did they drop FTPS, which is _not_ the same thing as SFTP ?
Re: (Score:2)
Thank god. FTP in the browser was a kludge, never properly implemented, didn't support most of what the protocol offered, and nothing more than a workaround for poor HTTP reliability.
Re: (Score:2)
It's relatively irrelevant now, because it's rarely used along with HTTP any more; the primary use case for FTP seems to be to support downloads to or from antiquated and/or limited hardware. But I still feel something is lost when your browser can't embed an IMG from a FTP site...
Re: (Score:2)
But I still feel something is lost when your browser can't embed an IMG from a FTP site...
*shudders* some things are worth losing.
Re: Firefox (Score:2)
"Enter username and password"
"Enter username and password"
"Enter username and password"...
Images on websites should be http~ and nothing else.
Anyone who misses FTP can just use SIP (Score:4, Insightful)
Re: (Score:3)
Same stupid protocol design with in-band addresses and port numbers. It was an understandable mistake in the early days of the Internet, when firewalls seemed unnecessary. In 1996, it was just crazy.
There is some legitimate value in separate signaling and data paths in communications protocols.
The best example I have of this is decoupled signaling useful in prime data paths between peers sitting behind a NAT/SPI so that they can directly communicate. This improves latency and massively reduces operating costs. For example imagine a WebRTC rendezvous site that facilitate say a few hundred thousand concurrent video conferencing sessions. Such a site could easily be operated from a single server with m
Re: Anyone who misses FTP can just use SIP (Score:4, Interesting)
In the case of SIP then you also have the random assignment of data channels that really makes it miserable. Open a range of UDP ports in case one or two will be used.
Re: (Score:2)
Yes, but that range can be very small. Actually, you technically only need 2 ports per concurrent call for each client (one for RTP, other for RTCP). However, typical systems use a range of 10-20 ports in case you have multiple sessions going or different types of media (e.g. one stream for audio, another for video, third for screen sharing). E.g. MS Teams uses ports 50000-50019.
Of course, some legacy systems use insane ranges like 16384-32767...
Re: (Score:3)
The amount of ports open does not really matter.
A firewall basically only makes sense of it blocks ports that are actually in use from outside access.
As long as no (buggy) software is listening on a port: there is no way to attack the machine.
The only slight different (use) case is: your machine is already compromised, some illicit software is listening on a port, and you want your router in front of it not to forward to such a potential malware.
Re: (Score:2)
As long as no (buggy) software is listening on a port: there is no way to attack the machine.
Unless there's a hole in the network stack itself.
This is relatively rare, but you might as well protect against it anyway.
Re: (Score:2)
This is relatively rare, but you might as well protect against it anyway.
Which means you have to trust the network stack of the firewall computer/router.
But that obviously makes it extremely hard to attack the machine behind it (considering your example of a vulnerable network stack).
Re: (Score:2)
Same stupid protocol design with in-band addresses and port numbers. It was an understandable mistake in the early days of the Internet, when firewalls seemed unnecessary. In 1996, it was just crazy.
"Misses" FTP? Approximately every hosting company still provides it.
Re:Anyone who misses FTP can just use SIP (Score:4, Informative)
The difference is that with FTP, the use case where you transferred files completely remotely (from one FTP server to another, without the file coming to the client at all) is remotely rare.
With SIP, it's very common occurrence.
Trivial example: Alice calls Bob. Alice is logged onto server 1. Bob is logged onto server 2. Servers have lookup tables for each other. Signaling path goes A -> 1 -> 2 -> B. If possible, the media path should take direct path A B, istead of flooding the servers.
Anyway, with SIP, this is more or less solved problem with STUN/TURN/ICE. If a direct path exists, they use it. If and only if both Alice and Bob are behind firewall/NAT, they will connect via a proxy server that may or may not be co-located with the registration servers.
This was just a trivial example. You can get lots of different scenarios for media paths. Consider call forwardings. Conference calls where external bridge resource is needed. Roaming to another network (new IP address) during call. Different kinds of service center systems where your call might go via several queues before reaching an agent.
Anyway, the problem is more or less solved, especially if you encrypt the traffic (both signaling and media). That pretty much ensures that the aforementioned STUN/TURN/ICE mechanisms do actually *work* instead of some fancy ALG in the middle starting to alter the signaling content.
Re: (Score:2)
some fancy ALG
Would you like to know why those terrible ALGs were invented? Because of FTP. Stupid, stupid, stupid. I would stop hating on those protocols if they handled inbound connections and the lack thereof gracefully and automatically on the protocol level, but they behave like CGNAT and firewalls don't exist and all ports can be expected to be reachable from anywhere. Can you imagine the world today if SIP had been designed for the internet as it exists, not for the academic all-open internet of bygone years? The
Re: (Score:2)
The POTS would be ancient history, we wouldn't be paying for phone calls, no matter how far, and everyone could talk to anyone, not just Whatsapp to Whatsapp, Skype to Skype, Facetime to Facetime. Try to convince someone to set up SIP telephony instead of those.
Two of your examples already use SIP.
Skype for Business uses SIP (as does MS Teams). Don't know about regular Skype these days (the historical P2P Skype did not). Heck, you can even get the debug logs from the client.
Facetime uses SIP.
Whatsapp I thin
Re: (Score:2)
ACH (Score:2)
Re: (Score:2)
Or SFTP, in which the entire protocol is enrypted with SSH.
Re: (Score:2)
SFTP and FTP have nothing in common, except both can transfer files. It is like saying that there is nothing wrong with FTP as long you use HTTPS.
Re: (Score:2)
I agree that they're distinct technologies. The interface is similar, and deliberately so. It's why it's called SFTP, rather than SCP.
Re: (Score:1)
The "user" interface is similar if you are using some simple minded client programs.
The actual protocols are completely different.
Re: (Score:1)
SFTP is *nothing* like FTP.
SFTP is a RPC interface based on the UNIX filesystem. SFTP is more like the late, lamented, RFS than it is like FTP.
SFTP operations: Open a file, seek on an open file, read an open file, write an open file, close a file, read a directory entry, delete a directory entry...
FTP operations: get a file, put a file, delete a file, get a list of files...
Re: (Score:2)
sftp was designed to emulate the command line behavior of FTP, rather than the much more limited capabilities and command line requirements of scp or the complexities and security ramifications of supporting rsync. Typical users could not care less about the underlying protocol: they want to list, select, and transfer files in a familiar interface, and sftp's command line interface is very similar to that of FTP.
FTP-like interface, and encrypted, are all that matter to most people. The subtleties of the pro
Re: (Score:1)
You're confusing SFTP, the protocol, with sftp, one particular application that uses that protocol.
Lots of people use SFTP without using the sftp client program. Any Gnome user, for example, can open a filename like sftp://some.server/somefile directly from a file open dialog.
Re: ACH (Score:2)
So they have stopped shipping punched cards now?
Rowing Boats over the Pacific (Score:2)
Clearing cheques between Australia and the USA takes about six week either way. I assumed that was because the bank just kept the money, but no. I sent a cheque from my US account to my Australian account and the money arrived before it left the USA.
So I have visions of poor bank tellers rowing boat loads of cheques across the pacific. Of course it probably is not that bad, they probably just use shipping containers...
Re: (Score:1)
What is this "cheque" of which you speak? They don't have SWIFT/IBAN where you live?
Re: (Score:2)
In 1999 I was tasked with moving my employer's data transfers from 9-track tape to some other method before the drive failed. We ended up with a variety of methods, encrypted email, modem transfers, even mailing a burned CD for that "enormous" 40 mb file to headquarters. American Express was, well, unique.
They had us send an unencrypted text file to their FTP site. Logged in as Anonymous with no password. Drop the file in a folder labeled with our account number. The first time I logged in I found that
Re: (Score:1)
We ended up mailing them a CD as well for our monthly 2 mb file, since there was no way we were going to put our customers at that sort of risk.
Which they probably copied into the same FTP directory tree to simplify processing.
ftp? (Score:1)
Umm, I hope nobody is actually using straight ftp. It should be sftp or that would be nuts. Itâ(TM)s like using telnet instead of ssh.
Re: (Score:1)
Umm, I hope nobody is actually using straight ftp. It should be sftp or that would be nuts. Itâ(TM)s like using telnet instead of ssh.
There is a version of FTP (FTP/S) that does some encryption. SFTP is a completely different "animal"
I always made people using SCP or SFTP have passwords on their keys. if they shared the keys and passwords, they would have to
fill out a form and re-request them.
I trust users a little more with a dedicated server that uses 2FA with a web interface, a little more.
Re: ftp? (Score:2)
Re: ftp? (Score:2)
If itâ(TM)s an ISO file transferred unencrypted do you realize people can modify/inject stuff into it as it traverses the network. Are you at least checking the sha256 hash (obtained securely)
Re: (Score:3)
While possible, has anyone actually carried out such an attack? Seems like way more effort than its worth.
Re: (Score:2)
You would need to be on the route of the packages.
Modify them, fake the orgin IP address.
Actually you would need to know what the content is. Makes no sense to change random bytes in a text file.
In other words: if you do some nasty FTP, it is unlikely the packages go via my computer (actually the likelihood is ZERO). Supposed it would go via my computer, I would need to know the filename and more precisely: what the file is about. Otherwise "injecting mallicious code" into a text file, pdf or image, or movi
Re: (Score:2)
Or poison the DNS to connect to your proxy, with faked content for ISO images or fakes tarballs.
Re: (Score:2)
That would be an attack vector with every protocol.
Re: (Score:2)
It's why SSL certificates typically need to be signed, and why many source tarballs and ISO images have published GPG signatures.
Re: (Score:2)
Re: (Score:1)
Just a reminder:
Iâ(TM)m allowing anonymous FTP, so unlike your telnet comparison, I donâ(TM)t even care about a password.
It's 2021 and Slashdot *still* can't do unicode.
Re: (Score:3)
I’m still using UUCP!
Re: ftp? (Score:2)
With base-64 encoding.
Another fun protocol is SAFT.
Re: ftp? (Score:2)
Sftp is basically netcat over ssh, can't compare!
Re: (Score:1)
No, it's not. That's SCP.
SFTP is a RFS over SSH.
Re: (Score:2)
One thing that really sucks is their is no good standard for file sharing. Normal FTP was the closest thing we got. But FTP/s is a mess. SFTP for some reason Microsoft never really embraced. Http/Https does the job. But we really need a PC to PC file share without a server in the middle.
Re: (Score:2)
This is why some people are pushing for IPv6, which has enough numbers such that every device can have its own routable address and not rely on a NAT router.
On the other hand, the need to avoid NAT has largely gone.
Re: (Score:2)
Re: (Score:2)
There is SSHfs, NFS via SSH.
Re: ftp? (Score:2)
NFS? SSHfs has nothing to do with it.
Re: (Score:2)
It's FUSE, not NFs. FUSE is also available for S3 backed storage.
Re: (Score:2)
NFS = network file system
SSHfs = secure file system over a network.
Can't be so har dot grasp.
No ida if they have technically anything to do with each other. Do I need to know that? Why? For what reason?
Re: (Score:2)
You don't. You also don't need to know that a car is not a plane.
Re: (Score:2)
we really need a PC to PC file share without a server in the middle
These days a web server is a triviality, you can run one with acceptable performance for personal use on a cellphone if you don't make many writes. I don't see any reason why it's a problem to just run your own file upload service on your device. It's very slightly easier on Linux than on Windows because all you have to do is run one command and you get all the server stack installed, but it's not horribly difficult on Windows either — or at least it wasn't last time I looked :)
Re: (Score:2)
Not doing the key exchanges for SFTP or FTPS saves some startup time. Not using encryption for bulky data also saves some resources.
Re: (Score:3)
You would be surprised. In previous jobs, I have had to deal with "naked" FTP via a number of solutions, depending on the application and endpoints:
1: Use FTPS. This isn't SFTP, but SSL/TLS enabled FTP, and using client certificates, so an unauthorized connection gets the middle finger before the SSL/TLS handshake is completed.
2: Move to sftp or scp. This is the best in general, because with ed25519 keys, and firewalling to only allow certain IPs to connect, it has quite good security.
3: Due to some a
FTP is da bomb for embedded devices (Score:5, Insightful)
Re: (Score:2)
Most embedded code uses HTTP for that kind of thing. Lower overhead, simpler protocol. Some microcontrollers have a crypto module built in to support HTTPS too.
Re: (Score:2)
Not only lightweight micro-controllers needing firmware. Engineers, scientists, programmers, computers, legacy systems, they just need to get the job done. And FTP suits a couple of tasks very well.
Yes, there are alternatives. Yes, having a publicly facing FTP server may lead to issues. Yes, these days we do not consider the protocol elegant - partly because we standardized on a byte/word size of 8 bit, partly because we think separate data and control channels are a redundant unnecessity. But at the end of
Re: FTP is da bomb for embedded devices (Score:2)
Http doesn't handle file upload very well, unlike ftp or tftp. You need a web page with a file picker button and all. On a microcontroller FTP still has uses.
Re: (Score:2)
You can just do a direct HTTP POST to write files.
Re: (Score:2)
curl [educative.io] --form "fileupload=@my-file.txt" https://example.com/resource.c... [example.com]
(my first hit for "curl http post")
You're not doing FTP by hand, you're using a client.
You don't do the HTTP POST by hand, you use a client. And it's one that's probably on your system already.
Re: (Score:2)
Re: (Score:2)
Why is it da bomb? It sounds like a needlessly complex solution for something which could be better done with one of the existing services no doubt already running on the device.
Re: (Score:1)
Re: (Score:2)
You're missing my point. If a device has network communication to a user it likely already has one of many other interfaces / protocols for doing so, what do you gain from FTP?
$deity damn that makes me feel old. (Score:2)
I'm ahead by a year. Half a century is an eternity.
And an eye blink.
Play accordingly.
https://mywiki.wooledge.org/FtpMustDie (Score:1)
https://mywiki.wooledge.org/Ft... [wooledge.org]
FTP (Score:2)
Feel Truly 'Preciative
For Toil Produced.
Let FTP fade away into the sunset (Score:2)
Friends, Slashdotters, Countrymen - lend me your ears.
I come to bury FTP, not to praise it.
The evil that protocols do lives after them;
The good is oft interred with their bits;
So let it be with FTP
.
The post reads like this: (Score:2)
Happy birthday ftp! ... Your a huge security risk
Re: (Score:2)
not at all, do it right and use the TLS extension
Anyone remember FSP? (Score:2)
Anyone remember FSP, the connectionless failed competitor to FTP?
considering the bad press it gets... (Score:2)
I mean, if it works.... (ignoring the vulns, just like SS7)
Thanks (Score:2)
Thanks for making me feel even older than usual.
Now get off my lawn, I have to go watch Matlock...
Happy Birthday you creaky old fart protocol (Score:2)
You're always OK in my book, no matter what all the HTTP kids say.