Slashdot Mirror


FTP Hacking on the Rise

yahoi writes "The disco-era File Transfer Protocol (FTP) is making a comeback, but not in a good way — spammers are now using the old-school file transfer technology to serve up bot malware, and even as a backdoor into some enterprises that neglect to lock down their oft-forgotten FTP servers. Researchers at F-Secure have spotted a new wave of exploits that use FTP — rather than a malicious URL, or an email attachment — to deliver their malware payloads because few gateways scan for FTP attachments these days."

51 of 212 comments (clear)

  1. What's next? by Anonymous Coward · · Score: 5, Funny

    Gopher?

    1. Re:What's next? by gnick · · Score: 5, Funny

      Gophers are actually not that hard to hack, although most of my experience is with prairie dogs. About 250 yards out with a decent scope and 'opening a port' is not that hard. Known exploit.

      --
      He's getting rather old, but he's a good mouse.
    2. Re:What's next? by PitaBred · · Score: 2, Funny

      Every try opening a port with a .30-06? You don't have much left to hack...

    3. Re:What's next? by 3p1ph4ny · · Score: 2, Funny

      It depends on the architecture.

    4. Re:What's next? by ObsessiveMathsFreak · · Score: 4, Funny

      WARNING: Attempting to hack Groundhogs may result in an infinite loop.

      --
      May the Maths Be with you!
    5. Re:What's next? by CronoCloud · · Score: 2, Insightful

      nobody has a client that can handle it anymore


      Actually Lynx, Camino, Konqueror, Firefox, Mozilla/Seamonkey suite, and IE7 can all handle Gopher.

  2. Uh oh by B3ryllium · · Score: 4, Insightful

    Further proof that FTP is for chumps. :) scp to the rescue!

    1. Re:Uh oh by Brian+Gordon · · Score: 3, Informative

      SCP? Still disco-era. Try sftp, might as well since we tunnel every other service under the sun through ssh.

    2. Re:Uh oh by B3ryllium · · Score: 5, Insightful

      Disco-era? It was first implemented in 1995. That's the New Kids era, not the Disco era.

    3. Re:Uh oh by Critical+Facilities · · Score: 2, Interesting

      Yeah, cause no one uses FTP anymore, right?

    4. Re:Uh oh by ivan256 · · Score: 5, Insightful

      Some of us don't care to waste cycles encrypting data that doesn't need to be encrypted.

    5. Re:Uh oh by winkydink · · Score: 5, Funny

      Agree. The disco era ended sometime in the late 70's / early 80's. Of course, that's before half of the /. posters were born, so it's understandable that they wouldn't know this.

      Hey! You! Get off my lawn!

      --

      "I'd rather be a lightning rod than a seismometer." -Ken Kesey

    6. Re:Uh oh by B3ryllium · · Score: 3, Funny

      ... you probably recycle your waste electrons, too, don't you?

    7. Re:Uh oh by Anonymous Coward · · Score: 2, Informative

      Disco-era? It was first implemented in 1995.

      Then why were people writing about it in 1971?
      http://tools.ietf.org/html/rfc114

    8. Re:Uh oh by B3ryllium · · Score: 2, Insightful

      "Disco-era" is meant literally in the case of the original post, since its advent coincides with that of disco music.

      And being one of the most widely used protocols doesn't mean it's not for chumps. It just means there are a lot of chumps.

    9. Re:Uh oh by Anonymous Coward · · Score: 5, Funny

      The disco era ended sometime in the late 70's / early 80's. It didn't end, it just got too cool for you.

      -- Disco Stu
    10. Re:Uh oh by fizzup · · Score: 4, Informative

      I think you may have misunderstood. RFC 114 refers to FTP, which is from the 70s. The poster was talking about scp, which is certainly from the mid-90s.

      Now, whether 1971 counts as disco-era is another question. I would say that it is pre-disco, since every school child knows that the disco era started with Soul Makossa in 1973.

    11. Re:Uh oh by nschubach · · Score: 2, Funny

      Disco is NOT dead. Disco is LIFE!

      --
      Every time I start to have faith in humanity, I ruin it by driving to work between 7 and 8 am.
    12. Re:Uh oh by HTH+NE1 · · Score: 4, Informative

      Hmm, scp has built-in support for transfering an entire directory with one command natively, but sftp can be used to transfer files between two servers while being controlled from a third site such that the transfer doesn't pass through the controlling client (useful for maintaining from a dial-up connection two high-speed servers that don't grant shell access).

      Decisions, decisions.

      --
      Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?
    13. Re:Uh oh by B3ryllium · · Score: 2, Informative

      Yes, you're correct, except for the fact that the GP had called SCP "disco-era", in apparent disregard for the context of that phrase's usage. I was merely correcting the timeframe of SCP's inception.

  3. Big deal.. by Junta · · Score: 5, Insightful

    First off, since when is a 'URL' considered a transport mechanism rather than syntax for specifying a transport mechanism and location? Is ftp://whatever.example.com/badcode/ not a URL because it's ftp now? That's a goofy statement.

    And then, this isn't about ftp being hacked, just that bad software is being hosted using ftp as well as http (which I presume is what is meant by 'URL' or being emailed.

    And, ftp is not merely an ancient, deprecated protocol. It's still widely used because it does what is intended for well and works under high load readily.

    --
    XML is like violence. If it doesn't solve the problem, use more.
    1. Re:Big deal.. by PlusFiveTroll · · Score: 2, Insightful

      Yes because http is the best way to download a directory of uncompressed files all at once

      Stuffing everything in a big compressed file sucks for dial up users, ftp has its purpose.

    2. Re:Big deal.. by garett_spencley · · Score: 3, Informative

      "For authenticated file transfers, is there any reason to use ftp instead of the ssh file transfer protocol (sftp)?"

      Unfortunately there's a lot of software that simply does not support ssh/scp/sftp and will only work with FTP. Joomla is an example of a CMS that uses FTP to update template files and such that the web server can not write to. In this case you create an FTP server that listens on 127.0.0.1:21 and the PHP script, run under the web server user, FTPs to the host and logs in under a different user to upload the changes.

      I've also got some business software that I run on my local machine that FTPs to my web server to upload new files. I really wish it would support ssh but it doesn't.

      Maybe ssh tunnels are the way to go for such situations ? Either way FTP is still used for such circumstances. These programmers really need to get with the times.

    3. Re:Big deal.. by Mr.+Sketch · · Score: 4, Insightful

      is there any reason to use ftp instead of the ssh file transfer protocol (sftp)? Well, since no version of Windows I know of comes with SSH/SCP/SFTP support out of the box, I think you have your reason right there. People don't want to have to download third party programs to do what they consider basic tasks, so providers fall back to protocols that have wide support (HTTP/FTP). Bittorrent seems to be an anomaly in this argument, but probably because it has more uses.
    4. Re:Big deal.. by Hatta · · Score: 2, Informative

      I trust the security of vsftpd more than I do apache.

      --
      Give me Classic Slashdot or give me death!
  4. And the newest exploit... by downix · · Score: 4, Funny

    They have conquered WWW and Email, now FTP, next on their list... NTP! Yes, hacking through your clock, I can see it now! Malware which will make you either cronically early, or late!

    --
    Karma Whoring for Fun and Profit.
    1. Re:And the newest exploit... by Frozen+Void · · Score: 3, Informative

      google "NTP exploit"

    2. Re:And the newest exploit... by Idiomatick · · Score: 2, Funny

      Oddly enough this post showed up as 4th on google right after your post. Time loop?

    3. Re:And the newest exploit... by skeeto · · Score: 3, Informative

      Actually, the OpenBSD guys believed the original NTP implementation to be a security risk and thus created their own: see Using OpenNTPD and this post by the OpenNTPD maintainer.

  5. Different protocol, but same stupidity by DigitalSorceress · · Score: 5, Informative

    Well, for my money, anyone who blindly clicks on a link.... FTP or HTTP and runs an executable that comes from it is going to get infected regardless of what protocol was used for it.

    The fact that a lot of gateways prevent certain actions based on the protocol just makes the "any key" users blindly click on stuff without worry - after all, they've "got protection"

    When it comes to any infection vector that involves social engineering, your brain (should you choose to use it) is your best virus protection.

    --

    The Digital Sorceress
  6. FTP attachments? by Anonymous Coward · · Score: 5, Insightful

    because few gateways scan for FTP attachments these days.

    Er, that's because there's no such thing as an FTP attachment? If you are referring to links, then I'm not aware of any virus checkers that automatically download and check HTTP links either.

    Can anybody translate this into something that makes sense?

    1. Re:FTP attachments? by phaunt · · Score: 3, Informative

      because few gateways scan for FTP attachments these days.


      Er, that's because there's no such thing as an FTP attachment? If you are referring to links, then I'm not aware of any virus checkers that automatically download and check HTTP links either.

      Can anybody translate this into something that makes sense?

      I believe the writer of the summary has mixed up two things:
      • Gateways don't bother with FTP traffic
      • Instead of malicious attachments, e-mails include links to ftp servers.
    2. Re:FTP attachments? by WK2 · · Score: 2, Interesting

      Can anybody translate this into something that makes sense?

      OK. Via spam, F-Secure found a malware web page with an ftp link. They think this is going to be a trend. Some businesses proxy http connections, and scan downloads for viruses. They believe that malware authors will shift away from http to ftp because there is a less likely chance that downloads will be scanned.

      I don't see this happening. It is speculation, and I think malware authors will just use whatever servers they have access to, or whatever they know how to set up. Few organizations scan http or ftp files that go through their gateways.

      To be fair to F-Secure, though, they used tech terms correctly. They properly distinguished between email attachments, http, and ftp. They didn't use the word URL in the entire article. The reporter (or possibly CmdrTaco) likely didn't fully understand what the article says, and thought, "ZOMG!! NEW HAX ATTACKS!! MUST ALERT SLASHDOT!!!"

      --
      Write your own Choose Your Own Adventure. http://www.freegameengines.org/gamebook-engine/
  7. FTP Attachment? by flajann · · Score: 3, Insightful

    What the hell is a "FTP attachment"?
    Doesn't make sense.

    1. Re:FTP Attachment? by Blue+Stone · · Score: 2, Funny
      >What the hell is a "FTP attachment"?

      Doesn't make sense.

      I've only skimmed the summary, but from what I can tell it's something bad that you can get from the tubes like a malicious 'IM file' or a dodgy 'virus bug' that you might get from a pirated CD or something.

      --
      Corporation, n. An ingenious device for obtaining individual profit without individual responsibility. - Ambrose Bierce
  8. Dear Internets by phoxix · · Score: 2, Funny
    Lets kill FTP once and for all! It doesn't serve a purpose anymoar! Its been replaced with HTTP, Rsync, and BT!

    k thx bye!

    1. Re:Dear Internets by nacturation · · Score: 2, Insightful

      Please explain how to upload pages to a shared webserver in co-lo using BitTorrent. WebDAV over SSL doesn't require FTP.
      --
      Want to improve your Karma? Instead of "Post Anonymously", try the "Post Humously" option.
  9. F-Secure are FUDmeisters by Werrismys · · Score: 3, Informative

    Just ignore them. It's good business for them to constantly cry "wolf".

    --
    'Once scientists, even the dim-witted social scientists, get muzzled, the Western Civilization is finished.' - oldhack
    1. Re:F-Secure are FUDmeisters by IBBoard · · Score: 3, Insightful
      And it's all in the final line of TFA:

      Better make sure your gateway scanner is configured to scan FTP traffic as well. Our F-Secure Internet Gatekeeper does this by default.

      "This wasn't done as a sales pitch, but buy our Gatekeeper software!"

      So what's the major difference between an FTP hosted file and a HTTP hosted file for most people? Either way it downloads a file from a site that they can be convinced to run. Sounds all about the same to me.
  10. NEXT! by Frosty+Piss · · Score: 3, Insightful

    I'm sorry, but if when setting up server services the admin "forgets" to lock down FTP, they need to be canned. That is all. NEXT.

    --
    If you want news from today, you have to come back tomorrow.
  11. FTP through email by whitehatlurker · · Score: 4, Interesting
    This has come full circle - back before internet connectivity was so wide spread, there were a few ftp via email gateways. (Yes, there were other networks alongside the internet.) You'd send your ftp commands and get email back (a few days later or the next week) with the uuencoded result.

    Now you have email viruses delivered via FTP. Cool.

    Yeah I'm old - get off my lawn!

    --
    .. paranoid crackpot leftover from the days of Amiga.
  12. 3rd Party Services by boris111 · · Score: 2, Interesting

    Speaking of FTP I was appalled the other day when my girlfriend told me their small company is paying $100 a month for a service to use FTP for their clients. This service has a space limit of 300 MB!!! With GMAIL and Yahoo email offering unlimited storage this seems unbelievably small.

  13. FTP is BAD! About DAMN time THAT makes press by spitek · · Score: 4, Informative

    Clear TXT PASSWD = BAD Might as well bend over. I've made my hosting customers use SFTP/SCP for YEARS. Been very happy I have. Just like POP3 one day.. IF we are lucky people will stop using it. It's like sending your tax return to the IRS in a clear envelope with your name birth date and SS # showing. Just plan STUPID!

    1. Re:FTP is BAD! About DAMN time THAT makes press by Aceticon · · Score: 2, Insightful

      Well, when the username is "guest" and the password is "anyemail@example.com" it hardly needs encrypting.

      PS: The typical way to anonymously access and FTP server is using the "guest" or "anonymous" usernames and any e-mail address as password. This is actually the way a browser will access an ftp:// URL.

  14. What the article infers... by johnlcallaway · · Score: 2, Interesting

    It sounds like that 'trusted' sites have been hacked, and that nefarious forces may place files on those trusted sites, then send emails that look authentic. That is, the email looks like it is from a responsible site and has an FTP URL for that site, but the file on the trusted site contains malware of some type.

    I have gotten fake hallmark cards in the past, and only because the URLs were obviously not hallmark did I check the headers. Transform this into a malware that installs a back door, grabs your address book, then sends the address book full of trusted names back to the originator. Now you have an email from a trusted source that has URLs to a trusted site to help spread it.

    Maybe I shouldn't have typed all that out.....

    --
    I rarely read replies, it's my opinion and if you thought about your opinion a little more, I'm OK with that.
  15. Nothing wrong with ftp by koffie · · Score: 4, Insightful

    except perhaps for the sloppy authentication in the clear and the awkward use of random ports initiated in the wrong direction (from server to client).

    What is wrong is that there are ftp servers allowing anonymous write access. That is how those miscreants work: they put a malicious file up on an anonymous ftp server (that allows write access) and then craft ftp URLs to spam people with.

    I remember we warned all ftp server administrators about the issue 10 or more years ago, back when I was a rookie.

    Of course scp/sftp is way better, everyone knows that. Or not?

  16. Got hit by it by ajs318 · · Score: 3, Informative

    My company got hit by this. Basically, someone found a username / password combination on a web server and FTP'ed up a phishing website. This user didn't have a valid login shell {it was set to /bin/false} but that didn't matter here because they didn't need to run shell commands {and in any case, if they needed to, they had a perfectly good cgi-bin directory they could use}.

    Obviously you have to have FTP and web servers on the same machine, otherwise your hosting customers can't upload their pages. To limit the potential damage, disable mod_userdir -- all your users should already have their own domain names anyway. And if you have any "email only" users {usually, these will be secondary mailbox accounts, i.e. when you have things like fred@freds-shed.org.uk going into one mailbox and charlie@freds-shed.org.uk going into another} whose only way of accessing files is by POP3 or IMAP, use a different shell for them. {I recommend /bin/true for FTP-enabled users without shell access -- this needs to be mentioned in /etc/shells, of course, for FTP access to work -- and /bin/false for non-FTP users. This should not be in /etc/shells.}

    If you have users who want to use scp or fish to upload stuff, they'll have to have a Bourne-like shell such as /bin/bash or /bin/ash. In which case, as a bare minimum you should disable password-based logins. There are better solutions involving chroot and per-user bin folders.

    --
    Je fume. Tu fumes. Nous fûmes!
  17. I'm a victim by TheGreatOrangePeel · · Score: 2, Interesting

    I fell victim to an FTP security issue in January of last year. The hosting provider for my website allows for anonymous FTP by default and an organization of hackers was able to use this to upload files which somehow enabled them to edit content on my Drupal powered website (I've seen Wordpress sites fall victim to the same hack). All they did was a meta-redirect, but I had about a week of downtime as I restored from dated backups and got technical questions answered on the Drupal.org forums.

    As it turns out, my hosting provider doesn't offer any real real capacity to disable anonymous FTP and I had to set the maximum allowed data transfer amount to 0KB for anyone except myself.

  18. ntpd-exp.c by commodoresloat · · Score: 2, Informative

    Check it out. That, my friends, is a real Clock Gobbler.

  19. Pay more attention... by timbck2 · · Score: 2, Informative

    GP was talking about scp being implemented in 1995, not FTP.

    --
    Absurdity: A statement or belief manifestly inconsistent with one's own opinion. -- Ambrose Bierce
  20. It is a big deal knot. by HTH+NE1 · · Score: 2, Interesting

    Firefox spell-check agrees: two Ns, one L in "tunneling". Further, no ambiguity is introduced by not doubling the L.

    It's a peculiar Americanism. There is robbing, but there's also robing as in the opposite of to disrobe. Raping and rapping are formed from rape and rap respectively, so there's where ambiguity steps in to set the rule. However, it is impelling and not impeling, or even compelling and not compeling. Is it the rule to limit how many repeated adjacent letters you have in a word? There's potterring (Brit.) and pottering (US) but there is only puttering and not putterring anywhere?

    For me, it's trust the spell checker, but when in doubt verify. I'd rather have consistent rules, but English is such a mongrel language anyway, borrowing words everywhere. It's annoying, but at least it isn't annoyying. ;D

    --
    Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?