ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved WordPress Site Redirecting Sometimes to Hijacked Page

    IT Discussion
    wordpress security
    9
    52
    6.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • IRJI
      IRJ
      last edited by

      Try migrating the site to a new host first since this is the easiest step. It probably won't resolve the issue, but it is worth a shot. You will use the backup in your next troubleshooting step anyway (see below)

      Create a backup using Updraft Plus. Updraft will create individual backups for the database, uploads, plugins, etc.

      Once your backup is complete build another empty wordpress site. Then restore just the DB. The DB will have the wrong URL, but Updraft Plus has a premium feature called the migrator. This will automatically update all the old URLs to reflect the new domain name.

      With just the DB loaded see if you are still getting redirected. If you are, then you have a serious issue, but the good news is not all is lost since you can export pages, and you already have a backup of uploads, plugins, etc.

      1 Reply Last reply Reply Quote 0
      • dafyreD
        dafyre
        last edited by

        It definitely sounds like the scripts are in the database... 58k files does seem a bit high for a small site, but I've seen more.

        Does the site redirect you to an IP address or an actual domain URL?

        search the database for script tags, eval( or eval ( ... or the IP address / hostname that you are being redirected to.

        Depending on your Wordpress install, eval( and eval ( will generate a lot of false positives.

        scottalanmillerS 2 Replies Last reply Reply Quote 1
        • scottalanmillerS
          scottalanmiller
          last edited by

          I'm stumped, but still looking. Here is the site that we are struggling with. Let me know if anyone has any ideas.

          www.fle.com

          I've tried converting it to static, but even that static plugin sees the hijacked data, not the original.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @dafyre
            last edited by

            @dafyre said in WordPress Site Redirecting Sometimes to Hijacked Page:

            It definitely sounds like the scripts are in the database... 58k files does seem a bit high for a small site, but I've seen more.

            It's autogenerating false pages so it just goes on forever.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @dafyre
              last edited by

              @dafyre said in WordPress Site Redirecting Sometimes to Hijacked Page:

              Does the site redirect you to an IP address or an actual domain URL?

              Neither. Not an actual redirect. Whatever bad is going on, it's hosted locally.

              1 Reply Last reply Reply Quote 0
              • stacksofplatesS
                stacksofplates
                last edited by

                Apparently Google sees it also.

                0_1477775451230_fle.com.png

                1 Reply Last reply Reply Quote 0
                • stacksofplatesS
                  stacksofplates
                  last edited by

                  I see the same thing. If I use IP address, it's fine. Hostname shows all of the junk.

                  scottalanmillerS 1 Reply Last reply Reply Quote 1
                  • scottalanmillerS
                    scottalanmiller @stacksofplates
                    last edited by

                    @stacksofplates said in WordPress Site Redirecting Sometimes to Hijacked Page:

                    I see the same thing. If I use IP address, it's fine. Hostname shows all of the junk.

                    Yeah, but I don't see anything that would cause that to work the way that it does 😞

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      Apache file looks normal...

                      0_1477775911912_Screenshot from 2016-10-29 17-18-18.png

                      1 Reply Last reply Reply Quote 0
                      • stacksofplatesS
                        stacksofplates
                        last edited by stacksofplates

                        So looking through developer tools I see a lot of "kanebo-cosmetics.co.jp", CSS files linked there.

                        Can you search MariaDB (or MySQL) for that string?

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • stacksofplatesS
                          stacksofplates
                          last edited by

                          Here's the builtwith in case it helps:

                          https://builtwith.com/fle.com

                          1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @stacksofplates
                            last edited by

                            @stacksofplates said in WordPress Site Redirecting Sometimes to Hijacked Page:

                            So looking through developer tools I see a lot of "kanebo-cosmetics.co.jp", CSS files linked there.

                            Can you search MariaDB (or MySQL) for that string?

                            Search results come up blank 😞

                            1 Reply Last reply Reply Quote 0
                            • stacksofplatesS
                              stacksofplates
                              last edited by

                              The fingerlakes.engineering redirected to fle.com with the junk. The fingerlakes.engineering IP goes to the site correctly. chillcon.com and it's IP is just spinning.

                              test.fle.com does work though ( I noticed a js file linked there).

                              scottalanmillerS 1 Reply Last reply Reply Quote 0
                              • stacksofplatesS
                                stacksofplates
                                last edited by

                                So this is what it's trying to load. But the images aren't absolute paths so they don't work.

                                http://www.kanebo-cosmetics.co.jp/

                                1 Reply Last reply Reply Quote 0
                                • stacksofplatesS
                                  stacksofplates
                                  last edited by stacksofplates

                                  Also just to make sure. Amazon DNS looks ok?

                                  Eh nm. Stupid question.

                                  1 Reply Last reply Reply Quote 1
                                  • stacksofplatesS
                                    stacksofplates
                                    last edited by

                                    Can you shut Apache down and use the Python simple http server to check that it isn't Apache?

                                    1 Reply Last reply Reply Quote 1
                                    • scottalanmillerS
                                      scottalanmiller @stacksofplates
                                      last edited by

                                      @stacksofplates said in WordPress Site Redirecting Sometimes to Hijacked Page:

                                      The fingerlakes.engineering redirected to fle.com with the junk. The fingerlakes.engineering IP goes to the site correctly. chillcon.com and it's IP is just spinning.

                                      test.fle.com does work though ( I noticed a js file linked there).

                                      This suggests that there is a detection script looking for those names and transforming things when they are present.

                                      1 Reply Last reply Reply Quote 1
                                      • stacksofplatesS
                                        stacksofplates
                                        last edited by

                                        I guess you could do a find and exec grep for that other other domain name.

                                        Do all of the modules look normal? (Or whatever wordpress calls them).

                                        scottalanmillerS 1 Reply Last reply Reply Quote 1
                                        • scottalanmillerS
                                          scottalanmiller @stacksofplates
                                          last edited by

                                          @stacksofplates said in WordPress Site Redirecting Sometimes to Hijacked Page:

                                          I guess you could do a find and exec grep for that other other domain name.

                                          Do all of the modules look normal? (Or whatever wordpress calls them).

                                          Seem normal to me. I've run scams on them, too.

                                          gjacobseG 1 Reply Last reply Reply Quote 0
                                          • gjacobseG
                                            gjacobse @scottalanmiller
                                            last edited by

                                            @scottalanmiller said in WordPress Site Redirecting Sometimes to Hijacked Page:

                                            @stacksofplates said in WordPress Site Redirecting Sometimes to Hijacked Page:

                                            I guess you could do a find and exec grep for that other other domain name.

                                            Do all of the modules look normal? (Or whatever wordpress calls them).

                                            Seem normal to me. I've run scams on them, too.

                                            scaMs or scaNs...

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post