13, February 2012

Hack Attack... - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  Security
Topic: Hack Attack...
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Hack Attack...  (Read 3544 times)
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 619
5660 credits
Members referred : 0


www.dg9.org


« on: Apr 26, 2007, 03:34:23 am »

What do you think of http://www.zone-h.org ... They list a bunch of Hackers and Defacements Attack, 3 sites I operate have been listed here before... and my recent one by this guy and his forum at http://www.numberonehack.org/ ... (anyway you can hide there links on the post since they actually like publicity)...

In this light I have a question, I have a prevention for html inject on my scripts, but how can I protect against them actually putting an index.html file inside my folders when my main index page is on index.php... How can I point my server just to read my index.php rather than the index.html? I think I can do that with htaccess? But im not totally a pro with the access file though, just tried to learn it in the past 6 months...

http://www.dg9.org , Just Visit...
Partners:
http://www.resume-fix.com , Free Resumes

Last blog : Archos: Where are you?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Apr 26, 2007, 07:41:41 am »

while your question is not really clear to me... you should check at the apache site mod_rewrite and maybe the directive "DirectoryIndex"


Last blog : A new Wordpress theme for our blog
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 619
5660 credits
Members referred : 0


www.dg9.org


« Reply #2 on: Apr 26, 2007, 08:12:39 am »

Yep I do use DirectoryIndex on my htaccess, but the problem is the hackers are able to create an index.html file on the root folder... How do I prevent this...

http://www.dg9.org , Just Visit...
Partners:
http://www.resume-fix.com , Free Resumes

Last blog : Archos: Where are you?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Apr 26, 2007, 08:21:09 am »

Yep I do use DirectoryIndex on my htaccess, but the problem is the hackers are able to create an index.html file on the root folder... How do I prevent this...
by securing the server?


Last blog : A new Wordpress theme for our blog
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 619
5660 credits
Members referred : 0


www.dg9.org


« Reply #4 on: Apr 26, 2007, 08:28:48 am »

Thanks for the Answers, yes I want to secure my server, but the problem is not on the server, maybe it's on my scripts...As I checked, theres frequent access on my php file, and maybe there is an open exploit. anyways, I hope I can plug the holes soon...


http://www.dg9.org , Just Visit...
Partners:
http://www.resume-fix.com , Free Resumes

Last blog : Archos: Where are you?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Apr 26, 2007, 08:32:41 am »

Thanks for the Answers, yes I want to secure my server, but the problem is not on the server, maybe it's on my scripts...As I checked, theres frequent access on my php file, and maybe there is an open exploit. anyways, I hope I can plug the holes soon...



sure, what is the function from this script?


Last blog : A new Wordpress theme for our blog
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 619
5660 credits
Members referred : 0


www.dg9.org


« Reply #6 on: Apr 26, 2007, 08:38:23 am »

I cant pinpoint specifically yet, just discovered the problem 2 days ago, and have no time to troubleshoot it, or hard test the script...

http://www.dg9.org , Just Visit...
Partners:
http://www.resume-fix.com , Free Resumes

Last blog : Archos: Where are you?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Apr 26, 2007, 08:40:29 am »

I cant pinpoint specifically yet, just discovered the problem 2 days ago, and have no time to troubleshoot it, or hard test the script...

... but there is some interaction possible with this script?


Last blog : A new Wordpress theme for our blog
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5778
46265 credits
Members referred : 3



« Reply #8 on: Apr 26, 2007, 09:51:23 am »

Have you contacted your host?

Those turks fellas probably are those that I know because I think they used the same trick on you.

1) There is an XSS vulnerability in your site or in another site of your server. Something like include $_GET['something'] ;?>
2) Check your crontab entries. They use it to get more permissions
3) Check the /tmp directory. They upload a service there (a perl script) that do this job (creating an index.html on every wwwroot directory)

Hope that helps Wink

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #9 on: Apr 26, 2007, 10:16:31 am »

I think in this times its not bad to disable this php directive:

allow_url_fopen = 0]

EDIT:

wrong directive:

use
allow_url_include = 0


Last blog : A new Wordpress theme for our blog
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: Apr 26, 2007, 10:18:34 am »

I think in this times its not bad to disable this php directive:

allow_url_fopen = 0]

EDIT:

wrong directive:

use
allow_url_include = 0

hm... just noticed that this setting is for servers with php 5.2 or higher


Last blog : A new Wordpress theme for our blog
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 619
5660 credits
Members referred : 0


www.dg9.org


« Reply #11 on: Apr 26, 2007, 11:48:59 am »

I cant pinpoint specifically yet, just discovered the problem 2 days ago, and have no time to troubleshoot it, or hard test the script...



... but there is some interaction possible with this script?

Yes There is...

Have you contacted your host?

Those turks fellas probably are those that I know because I think they used the same trick on you.

1) There is an XSS vulnerability in your site or in another site of your server. Something like include $_GET['something'] ;?>
2) Check your crontab entries. They use it to get more permissions
3) Check the /tmp directory. They upload a service there (a perl script) that do this job (creating an index.html on every wwwroot directory)

Hope that helps Wink

Good Tip, will check on first two, checked on 3rd one, didn't find anything...

http://www.dg9.org , Just Visit...
Partners:
http://www.resume-fix.com , Free Resumes

Last blog : Archos: Where are you?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5778
46265 credits
Members referred : 3



« Reply #12 on: Apr 26, 2007, 11:56:14 am »

Do they hacked one site or the whole server?

Are your sites running in safe mode?

Another tip. Run this from SSH in your htdocs directory :

Code:
chown root:root -R /var/www/htdocs

Those hack scripts usually don't run with root privileges so there will be no way for them to touch your files this way.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 619
5660 credits
Members referred : 0


www.dg9.org


« Reply #13 on: Apr 26, 2007, 11:59:43 am »

actually on those 3 sites, the two subdirectories and the first attack was a full home page defacement, the home page defacement was due to an insecure host... the subdirectory attacks I think and might be due to my sloppy PHP security...

http://www.dg9.org , Just Visit...
Partners:
http://www.resume-fix.com , Free Resumes

Last blog : Archos: Where are you?
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6459
Tags : hack htaccess index files Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  Security
Topic: Hack Attack...
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Feb 13, 2012, 01:39:52 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.