Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Johan 7 posts 27 karma points
    Nov 18, 2014 @ 12:22
    Johan
    0

    My umbraco6 site gets filled with spammy html files

    I'm having problems with my Umbraco 6 (6.0.5) site that is running on IIS. Someone is exploiting it in some way and keeps uploading spammy html files to it. I get a lot of traffic to these files, which is not what I want and google webmaster tools have given me hacking attempt notices.

    I have erased the files several times but they keep coming back. I have also followed some of umbraco's security advice and removed the Install folder, etc. I am also about to upgrade to umbraco 7, but havent had the time to do so yet. Sometimes there are completely new subfolders with files uploaded and sometimes files are added to already current folders.

    This is not really my area of expertice. I need to know what can be done to prevent this and also if anyone else have had these problems.

    Please advice on what can be done. Am I missing something in my web.config or is it something else?

    Here is my web.config. One thing to do is the modify the customErrors flag, but surely this isnt enough

    I have posted the same question on Stack owerflow, but thought this Forum might be more appropriate. My web.config is posted on the link below.

    http://stackoverflow.com/questions/26992426/my-umbraco6-site-gets-filled-with-spammy-html-files

  • Johan 7 posts 27 karma points
    Nov 18, 2014 @ 15:40
    Johan
    0

    My webhotell is is beeing moved to another more secure server, hopefully this will stop by then 

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 18, 2014 @ 17:22
    Jan Skovgaard
    0

    Hi Johan

    Also make sure to patch your installation with this fix from earlier this year http://umbraco.com/follow-us/blog-archive/2014/7/21/security-issues-found-in-umbraco-4,-6-and-7.aspx

    /Jan

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Nov 18, 2014 @ 17:25
    Nicholas Westby
    1

    You really need to work on your security practices. For one, it appears you've pasted your web.config without removing your database credentials. You should fix this immediately.

    I recommend you change your database credentials, change your login credentials, and change any other credentials you know about and move to a new machine and upgrade to the latest version of Umbraco 6 (not Umbraco 7... the latest Umbraco 6 should include all known security fixes).

    There are other security practices you can do, but you should start there.

  • Johan 7 posts 27 karma points
    Nov 18, 2014 @ 23:23
    Johan
    0

    ok, what a blunder. I've changed my db-pwd, my admin pwd. I have followed the guide suggested by Jan also. Any other pointers, IIS config is not realy my area of expertice. I tried upgrading locally to a newer version of umbraco 6 but then I got problems with dll's not beeing able to locate dependencies.

  • Johan 7 posts 27 karma points
    Nov 18, 2014 @ 23:27
    Johan
    0

    Nicholas: What do you mean move to a new machine? We are moving the code to a new server if that is what you mean. I've scanned my local pc for any malware or viruses but havent found any

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Nov 19, 2014 @ 00:48
    Nicholas Westby
    0

    Yep, that's what I meant by a new machine.

    By the way, when you say you changed your admin password, I assume that you both changed your database user password and your Umbraco user password.

    IIS also has the ability to protect certain folders based on IP address: http://serverfault.com/questions/605398/iis-access-control-by-ip-address-for-specific-files-and-folders

    It would probably be a good idea to restrict Umbraco access to just those who use Umbraco.

    Hopefully your web server and database server are also setup with appropriate firewall rules.

    And hopefully you can figure out the upgrade issue so you can have the latest security fixes. Remember that you will want to copy your database too when performing an upgrade... the Umbraco upgrade process sometimes modifies the database.

  • Johan 7 posts 27 karma points
    Nov 19, 2014 @ 06:58
    Johan
    0

    the switch to the new server was done early this morning. I did change both the umbraco db-user password as well as the umbraco admin-password for the site. The db only allow connections from certain IPs, it has been like that fo a while. I will have a look at the folder security bits and possibly also upgrade umbraco version if I keep getting the spammy files uploaded.

    To be continued...

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 19, 2014 @ 07:31
    Jan Skovgaard
    0

    Hi Johan

    You need to patch your current Umbraco installation regardless as well. As it says in the blogpost I referenced there is a security issue unless you patch the file mentioned.

    /Jan

  • Johan 7 posts 27 karma points
    Nov 19, 2014 @ 10:26
    Johan
    0

    I already followed this advice already, will try and upgrade version later tonight. I have also asked the hosting responsable to see where the files are coming from to know if the ftp account I use has been exploited or something else. As I myself cannot access the IIS admin tools. Is there anything else in my web.config I can do to remove the possibilities of uploading these files?

  • Johan 7 posts 27 karma points
    Nov 20, 2014 @ 12:31
    Johan
    0

    Havent had any more incidents the last 24 hours. Crossing my fingers

Please Sign in or register to post replies

Write your reply to:

Draft