Slashdot Mirror


Ask Slashdot: What To Do When Finding a Security Breach On Shared Hosting?

An anonymous reader writes "A few months ago I stumbled across an interesting security hole with my webhost. I was able to access any file on the server, including those of other users. When I called the company, they immediately contacted the server team and said they would fix the problem that day. Since all you need when calling them is your username, and I was able to list out all 500 usernames on the server, this was rather a large security breach. To their credit, they did patch the server. It wasn't a perfect fix, but close enough that moving to a new web host was moved down on my list of priorities. Jump a head to this week: they experienced server issues, and I asked to be moved to a different server. Once it was done, the first thing I did was run my test script, and I was able to list out everyone's files again. The hosting company only applied the patch to old server. I'm now moving off this web host all together. However, I do fear for the thousands of customers that have no clue about this security issue. With about 10 minutes of coding, someone could search for the SQL connection string and grab the username/password required to access their hosting account. What's the best way to handle this type of situation?"

22 of 168 comments (clear)

  1. Do nothing by Gutboy · · Score: 5, Insightful

    Move to a new host. Don't talk about the old host, don't post the script, don't describe it at all. You don't want the lawsuit/criminal charges that will follow.

    1. Re:Do nothing by serialband · · Score: 5, Insightful

      You might want to tell them why you're moving to a new host. Explain that their security is insufficient for your needs which is why you're moving. You don't have to give them more detail than that.

    2. Re:Do nothing by Zontar_Thing_From_Ve · · Score: 5, Informative

      You absolutely cannot post the script or make any kind of public statement about the company and what it takes to get this information. The US and the UK have laws that I know of that cover hacking activities and your discovery of this problem could potentially be legally viewed as running afoul of those laws. If you live in the USA, trust me on this. You really do not want a possible fine and jail term hanging on the whims of the US jury system.

    3. Re:Do nothing by JMJimmy · · Score: 4, Interesting

      I always wondered why no one has tried a 2nd amendment challenge to those laws. The US officially recognizes 'cyberwarfare' so these "hacking tools" can now be classified as arms in digital warfare.

    4. Re:Do nothing by rgbrenner · · Score: 4, Insightful

      So rather than be dealt with as a civilian, you would prefer to be 'unlawfully engaged in warfare against another state'?

      I don't think that would be an improvement...

    5. Re:Do nothing by Chris+Mattern · · Score: 3, Insightful

      Which is great, until you find out the Somebody Else regards it as Not His Problem.

    6. Re:Do nothing by Anonymous Coward · · Score: 5, Interesting

      OK I'll post his "test script":
      ls -al /home/*

      huge surprise, most shared hosts run suphp with 755 on all directories inside of ~/public_html/.

      COME AT ME HOSTGATOR

  2. Responsible Disclosure by TubeSteak · · Score: 3, Informative

    Tell the webhost they have XYZ days to fix the problem before you publish the exploit.

    https://forms.us-cert.gov/report/ is also a good place to report exploits.
    But if you're shy, I'd also consider forwarding the details to a reputable security research company,
    so that maybe they can alert others with misconfigured systems and CERT.

    --
    [Fuck Beta]
    o0t!
    1. Re:Responsible Disclosure by mysidia · · Score: 4, Informative

      Tell the webhost they have XYZ days to fix the problem before you publish the exploit.

      If you do that, be prepared for them to shut off your account immediately, and for them to file a complaint/police report, listing you as the offender, with possible criminal charges, for you hacking their service.

      Their lawyers may also send you a cease-and-decist letter, warning that you will be sued if you publish the information.

    2. Re:Responsible Disclosure by Anonymous Coward · · Score: 4, Interesting

      Tell the webhost they have XYZ days to fix the problem before you publish the exploit.

      If you do that, be prepared for them to shut off your account immediately, and for them to file a complaint/police report,
      listing you as the offender, with possible criminal charges, for you hacking their service.

      Their lawyers may also send you a cease-and-decist letter, warning that you will be sued if you publish the information.

      I keep seeing these shills on this thread telling people to "do nothing, or ELSE!"... WTF? Why tell people this? (hint: citations needed) Is there some huge list of all the security experts rotting in prison for disclosing Windows/Flash/Android exploits that I'm not aware of?

      Why not call the police yourself as a CYA preemptive strike to go along with your "full disclosure notice?"

      Police non-emergency operator: "How can I help you?"
      You: "I'm calling to report a security breach with my ISP/host/whatever."
      Police non-emergency operator: "What do you mean?"
      You: "Well I've discovered an exploit that would allow hackers to compromise my computer servers."
      Police non-emergency operator: "What would like us to do about it?"
      You: "I just needed to file a report, because I want to notify the service provider as well as make a public disclosure."
      Police non-emergency operator: "Ok, but why did you need to let us know?"
      You: "Because a bunch of assholes on /. told me if I exposed the flaw you would arrest me for hacking."
      Police non-emergency operator: "ROFLCOPTER"

  3. Security and shared hosting don't mix by Giant+Electronic+Bra · · Score: 4, Informative

    You have no idea what idiotic web applications people are running. You should ASSUME that any shared host is compromised. Don't store any unencrypted data there which is at all sensitive. Given the low cost of renting a virtual or physical host machine these days it seems there's little reason to bother with shared hosting (yes, it is cheaper, but honestly the cost of an AWS micro instance is pretty low).

    The real problem is bulk shared hosting facilities just can't afford to tinker. There are often 100 or more accounts on a server, sometimes even 1000's. One stupid tweak to fix a security hole can break a LOT of scripts. These places will always prefer to just set up servers and not EVER patch them.

    The ultimate observation is just that driving the cost of hosting down to $2.99 a month means doing absolutely nothing beyond what is absolutely needed to make it work. You get what you pay for.

    --
    "Malo periculosam, libertatem quam quietam servitutem." -- Jefferson
  4. Try responsible disclosure by kop · · Score: 4, Informative

    http://en.wikipedia.org/wiki/Responsible_disclosure
    Contact them to agree a timeframe to patch.

  5. Be careful! by wmelnick · · Score: 4, Informative

    If you live in the US, or your hosting is in the US, what you have done is technically cyber-crime. While I hate to say this, your best recourse is to move to another host and leave it all behind you. Should the hosting company start losing business because of you warning other users you could face all kinds of civil lawsuits and possibly even criminal penalties.

  6. Re:Public shaming is all you need by Seor+Jojoba · · Score: 3, Informative

    I wouldn't do that. Original poster has described his history with the company. Effectively, he is no longer anonymous. Lawsuits could follow public statements here.

  7. If you are in Europe by Neil_Brown · · Score: 4, Insightful

    and attempting to speak with the ISP has not worked (it's not clear if you have tried to inform them that the bug remains on this, and likely other, servers, and given them the chance to fix it (albeit a second chance)), call up your data protection regulator on Monday morning, and explain the nature of the issue and its impact?

  8. Inform the users by mkraft · · Score: 3, Interesting

    Back in the days of dial up, I used a dial-up ISP that offered free scripting (CGI, ASP, you name it) on a Windows server. While teaching myself scripting, I discovered that files I wrote as part of scripts ended up in the c:\windows\system32 directory of the server instead of my user folder. Worse still cgi scripts allowed running executables. Needless to say that is bad as it allowed me to get remote shell access to the box. Finally to complete the incompetence, I found that the ISP was storing the customer records on the server as an access database. When I mean records, I mean everything: names, addresses, credit cards, etc.

    I informed the ISP of the problem. They responded, but said it was a "windows" problem and couldn't be fixed so I posted on a message board for customers about the problem (but not the details on how to do it), wiped my own customer records from their database (yes I could read and write) and canceled service. I don't know what ever happened to them, but I'm assuming they went out of business like most other dial up ISPs.

  9. The same as I do when I see illegal stuff by houghi · · Score: 5, Interesting

    I do the same as I do when I see other illegal stuff. I report it.

    I have once reported childporn. I was ordered to go to go to the police station where they tried to put the following on me:
    1) Spreading of childporn (Remember that I was the one who reported it)
    2) Obstruction of the law (because I called the newspaper, after wich they finaly closed the site)
    3) Falsification of my person (because my trow away email address did not have any official address)

    I send the report from work. They called there to say they needed to speak to me concerning a childporn case. Luckily I had VERY understand management (who even offered to pay for lawyers if anything would come of it towards me) otherwise I could have been out of a job.

    So if I ever see anything illegal again, I would do the right thing and report it.

    But somehow I never have seen anything illegal after that. Not even people speeding or pedestrians walking through a red light. Strange, isn't it?

    --
    Don't fight for your country, if your country does not fight for you.
  10. Web server security hole by Simonetta · · Score: 3, Informative

    Contact the company again with your findings. They patched the hole that you pointed out before but kept the details of the exploit limited to senior programmers and support. When they reloaded the server after a down period, a SNAFU recreated the hole.

        So there are two problems. One is the security hole that you found and the other is their back-up and security breach repair process. Point out both problems to them.
        Then review the security of your data that you are exchanging with them. How important is it that this data remain secret? And secret to who? To another user who might have stumbled onto the same exploit window? To a Soviet/Russian criminal organization? (a three-way redundancy, yes, I know) To the American feds? To your wife or kid that looks over your shoulder while you type?

        Please understand, all this technology is still basically new. It has problems. Tech problems and social problems. The tech issues get discovered and solved faster than the social problems, i.e. crime issues. For example, we (the American government and Interpol) can not go after criminal organizations in the (former) Soviet Union because many of them are in alliance with the corrupt Soviet/Russian/Gangster government that still controls thousands of nuclear bombs. So criminal organizations there can loot American banks and businesses with stolen credit card information with near impunity. It's a defect of the modern computer age. It will get fixed someday, but for now, guard your data and be aware that every data and login password that you type on an internet-linked PC can be stolen.
        If the web-server company can't and/or won't fix the issue after you point it out to them several times, document the issue and submit this documentation in writing (not on-line) to both the local Better Business Bureau and your state Attorney General's Office. When they get inquiries from both parties about this issue, they will get the fear of God and fix it right. Until then, be patient and remind people to guard their data.

  11. Re:Which entry-level VPS provider? by Anonymous Coward · · Score: 3, Interesting

    I've been using Linode for the last 8 months or so, and have been pretty happy with it.

    $20 per month gets you 1 static ip address, 512 MB of ram, 20 GB of disk space, 200 GB of upload bandwidth, unlimited download bandwidth, and up to 4 cpu cores.

  12. Notify them via Certified letter by Maow · · Score: 3, Insightful

    Others have made a good case for simply moving on, but another thought would be to move to another provider, then notify them via certified letter why you're moving and informing them that if/when the hole is exploited (and reiterate that you will not exploit it yourself), then the certified letter will be shared with the legal teams of those customers who have suffered damages.

    i.e. "Here's your official notice of a potential exploit, don't say you weren't warned."

    It won't provide preemptive help for their other customers but may make their damages somewhat recoverable through legal means.

  13. Re:Which entry-level VPS provider? by hawguy · · Score: 4, Interesting

    I've been using Linode for the last 8 months or so, and have been pretty happy with it.

    $20 per month gets you 1 static ip address, 512 MB of ram, 20 GB of disk space, 200 GB of upload bandwidth, unlimited download bandwidth, and up to 4 cpu cores.

    If you don't need much bandwidth or CPU, check out an Amazon Micro instances. If you buy a reserved instance, a Micro instance ends up costing around $7/month plus $0.10/GB for disk and $0.10/GB for outbound bandwidth.

    They are cheap enough to run multiple instances - I have my public website on one instance and use the other one for my mail server, and other things I don't want on the public server giving me complete separation between the two. If the webserver ever gets hacked, I can just restore it from an S3 snapshot. I had started looking at chroot'ing Apache or running it in a VM for better isolation, but spinning up a second micro instance was much easier.

    If you need to use significant CPU, a micro instance is probably not going to be a good choice, as I've heard that Amazon throttles back CPU to Micro instances that use a lot of sustained CPU. But it runs my PHP based photo gallery software pretty well (shared only to family/friends, so it's not super busy).

    The bandwidth costs could get expensive quickly at 10 cents/GB if you have a busy website. I run a script that checks my bandwidth utilization and if I hit more than 10GB in one day it shuts down Apache and notifies me so I don't end up with a huge bandwidth bill if my site ever slashdotted.

    Even with multiple S3 snapshots, my total hosting bill is always less than $20/month, less than I was paying for a single VPS server (that was having performance issues due to being oversubscribed so heavily by the ISP)

  14. Dealing with Vulnerabilities The American Way ... by golodh · · Score: 5, Interesting
    Today's lecture is on dealing with accidental vulnerabilities you accidentally stumbled into while accidentally probing a system that accidentally happens to have a lot of potential interest. You know what I mean.

    I read a lot of indignant posts and a few moany warning ones on the subject. The authors of either kinds of post have obviously lost touch with the American Way.

    When you find a vulnerability, the first thing to do is to disassociate yourself from it. Wipe your data and close down your account (many posts correctly advised this). Then get two sets of some cheap one-off hardware (second-hand paid-in-cash stuff is best). Use one of those to assess the economic potential of your find as best as you can (or you'll get fleeced later on).

    Then you Monetize your find. Quickly, before someone else beats you to it. That's the American Way right there.

    Use the second piece of old kit you bought to surf the web. There are certain websites, often in Eastern Europe, on which you will find people who'll use a peculiar form of English but who will be prepared to pay smallish but reasonable amounts for such information. Depending on e.g. whether the flaw leads to credit card data (that's why you ascertained the economic potential of your find first) or advanced military technology (in which case you may be able to get better quotes from buyers in the Middle East or the Far East).

    Be aware that there is a certain protocol to be followed when conducting this sort of transaction. Contacting them from home, work, or any other place that can easily be traced to you is a beginner's mistake. Secondly, don't *ever* give out information like your real name, physical address, bank account or credit card to them. They won't do that either, and besides, you'll *really* value your privacy when dealing with them.

    Use e.g. an old second-hand laptop and work from an Internet cafe or use a prepaid smart phone with Internet browsing facilities. Don't ever use that hardware for *anything* but completing this one transaction. Wipe, disassemble, smash, and ditch said hardware component-wise as soon as the transaction is completed.

    The trick is of course to get the money to where you can spend it. Having it wired into your account will show up and may be a bit difficult to explain. Even when done from a US account (you can negotiate for this but it costs extra). They will pay you in bitcoin or E-gold if you insist, but that too is tricky. Asking for cash in the mail is asking to be fleeced, and likewise a bit conspicuous should they actually do it (amateurs).

    I'm leaving the question of arranging secure and discreet transfer as homework. Additional points will be awarded (optionally off the record or against a discreet little cash bonus) for really good solutions. Remember: should government officials come calling at your doorstep you'll automatically fail the course and all traces of your enrollment will mysteriously have vanished. No refunds.