|
|
|
|
![]() ![]() |
Feb 13 2008, 07:01 PM
Post
#1
|
|
|
the Q Group: [HOSTED] Posts: 1,053 Joined: 13-July 05 From: Lithuania, Vilnius Member No.: 7,059 |
I just found this site: asta-killer dot com
and as you can see, it's a copy of mine index on astahost: http://qzone.astahost.com the strange thing is that when you enter something like: asta-killer dot .com/list/ a directory or file which doesn't exist, you get an error, but the error is from my php script on astahost.. So that means that that index file isn't only copied html, but also somehow they got my php source? what a hell is that? then OK I thought it is a remote thing, but it's impossible on my account to get such an error at all, because the file exists and it is including on any error.. So somebody hacked my account on Astahost in a quite easy way? got the php source and the .htaccess file, due to that error could only evaluate through a my .htaccess file: ErrorDocument 404 /e.do?error=404 but the file which can't be found is not in the public_html dir, so what a hell is that? I just found it through google.. Any ideas? it also can't include the file through php, because I think it has my absolute path.. Notice from OpaQue: Adminstrator:
Please choose Title and Description carefully.
Title: The Title should be descriptive and should summarize your entire post. Description: The description should be used to add further details/information about your post. Thank you. |
|
|
|
Feb 13 2008, 10:02 PM
Post
#2
|
|
|
Super Member Group: Members Posts: 510 Joined: 29-September 06 Member No.: 16,228 |
If the php daemon can read it, other people on the server can read it. It's more likely to be a htaccess on their website, copying each request to your website.
|
|
|
|
Feb 13 2008, 10:22 PM
Post
#3
|
|
|
the Q Group: [HOSTED] Posts: 1,053 Joined: 13-July 05 From: Lithuania, Vilnius Member No.: 7,059 |
so what can I do about it to prevent this kind of stuff???
|
|
|
|
Feb 14 2008, 10:53 AM
Post
#4
|
|
|
Way Out Of Control - You need a life :) Group: [MODERATOR] Posts: 2,042 Joined: 16-August 05 Member No.: 7,896 |
Just a funny suggestion : if you could suffer a downtime for your official site, I woul try temporary renaming your main folders (for instance rename "forum" to "rename_to_forum") and see what would happen to the pirated site.
Another thing would be chown and chmod the php files (chmod go-r) in order to prevent others from reading. The last thing woud be to password the folders (that's done in .htaccess as far as I remember). Good luck Yordan |
|
|
|
Feb 14 2008, 11:37 AM
Post
#5
|
|
|
the Q Group: [HOSTED] Posts: 1,053 Joined: 13-July 05 From: Lithuania, Vilnius Member No.: 7,059 |
To tell the truth, I've done much of those things, my main PHP files are stored not in the public_html folder, I usually password protect my data directories with a .htaccess file, but I do it from the CPanel which is the same if they are in the public_html.. and I never put my passwords in a php file without some encryption which I write myself and I store the passwords with a very good hash in a mysql database if needed, I even only give permission for a mysql user only to SELECT if I am not logged in as an Admin which has a different user with UPDATE and etc. rights..
The chmod thing would really be great, but what I always hate! is that the FTP user and PHP user on the same account are different users and I usually use FTP to chmod and upload my files or if I need to edit a file, I do it through FTP, so on different users chmod needs to be different, if only I could use FTP with the user of PHP that it wouldn't need to be 666 or 777 to write to and etc. You know what I mean.. I just think about all those sites by newbies which aren't protected and how easy it can be to hack them.. |
|
|
|
Feb 14 2008, 01:45 PM
Post
#6
|
|
|
Way Out Of Control - You need a life :) Group: [MODERATOR] Posts: 2,042 Joined: 16-August 05 Member No.: 7,896 |
The chmod thing would really be great, but what I always hate! is that the FTP user and PHP user on the same account are different users and I usually use FTP to chmod and upload my files or if I need to edit a file, I do it through FTP, so on different users chmod needs to be different, if only I could use FTP with the user of PHP that it wouldn't need to be 666 or 777 to write to and etc. You know what I mean.. Sorry, I was thinking about the Unix command line, which is governed by the ssh access here at astahost. I can guess that you have no ssh access, so let's forget about the chmod thing. |
|
|
|
Feb 14 2008, 02:59 PM
Post
#7
|
|
|
Premium Member Group: [HOSTED] Posts: 393 Joined: 9-March 07 From: Tucson, AZ Member No.: 20,794 |
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 12th October 2008 - 09:31 AM |