hacker access to .php files and Patterns

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
PeterSwiss
-


Joined: 27 Feb 2006
Posts: 20
Location: Zurich, Switzerland

PostPosted: Sat Jun 10, 2006 2:44 pm    Post subject: hacker access to .php files and Patterns Reply with quote

I frequenty receive hacking attempts :
POST /blog/xmlsrv/xmlrpc.php
GET /cvs/index2.php?_REQUEST[option]=com_content&_REQUEST[Itemid]=1...
GET /index.php?option=com_content&do_pdf=1&id=1index2.php?_REQUEST[option]=com_content...
that try weak versions of xmlrpc.php and of mambo (a CMS). The path part in these requests is very varying, i.e. they try every usual path at every conceivable IP address. I do not use these softwares. Abyss is X1.

I would like to block that I little bit more than just a 404. Is a pattern of /*xmlrpc* matching the first request? Is pattern of /*_REQUEST* matching the 2nd and 3rd request (_REQUEST is in the QUERY_STRING part of the URI). Will that work in Access control? Could I do a redirect of these patterns?
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Jun 10, 2006 2:51 pm    Post subject: Reply with quote

You should ignore these hacking attempts if you do not use the software they are trying to hack. It will not harm your system. They happen to everyone at some point.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
PeterSwiss
-


Joined: 27 Feb 2006
Posts: 20
Location: Zurich, Switzerland

PostPosted: Sat Jun 10, 2006 3:21 pm    Post subject: Reply with quote

I would like to catch them somehow to be informed and to have high barriers against them. Redirect would have even more advantages.

The question, whether "a path pattern matches after the ?", is useful by itself.

I will have found out soon by myself.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Jun 10, 2006 4:01 pm    Post subject: Re: hacker access to .php files and Patterns Reply with quote

PeterSwiss,

Antihacking will take care of these bad requests and automatically ban their originating IP if there are too much of them ("too much" is configurable).

You can also add IP access rules for some paths (you can even use patterns) and deny them for all IP addresses.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
PeterSwiss
-


Joined: 27 Feb 2006
Posts: 20
Location: Zurich, Switzerland

PostPosted: Sat Jun 10, 2006 5:12 pm    Post subject: Re: hacker access to .php files and Patterns Reply with quote

aprelium wrote:
You can also add IP access rules for some paths (you can even use patterns) and deny them for all IP addresses.

Thank you. "IP address control" is better than "access control" in this case.

Pattern matching matches file names, thus catches *xmlrpc* and "index2.php" efficiently. Request strings are not matched, what would be needed for index.php. I will add something in the few index.php that I have.

Thanks again!
Peter
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sat Jun 10, 2006 10:16 pm    Post subject: Reply with quote

For Anti-Hacking:

Make sure you have a favicon.ico file in your Document Root (htdocs), otherwise
some of your visitors might get banned because of the absense of a favicon file.

Note: Firefox requests a favicon.ico each time you access the website, but if this
file doesn't exist, it will cause a 404 error, which is a 1/2 Bad Request and could
cause the person to be banned by accident.
Back to top View user's profile Send private message Visit poster's website
PeterSwiss
-


Joined: 27 Feb 2006
Posts: 20
Location: Zurich, Switzerland

PostPosted: Sun Jun 11, 2006 1:02 am    Post subject: Reply with quote

What should be the contents of favicon.ico? respectively, will an empty file make FF enough happy??
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sun Jun 11, 2006 4:28 am    Post subject: Reply with quote

A favicon.ico is simply a web browser icon that is displayed in the bookmarks of
Internet Explorer, and the address bar of Firefox.

Look in the console folder of Abyss Web Server program folder and you will find
the favicon.ico that is used in the console area.
Back to top View user's profile Send private message Visit poster's website
PeterSwiss
-


Joined: 27 Feb 2006
Posts: 20
Location: Zurich, Switzerland

PostPosted: Sun Jun 11, 2006 8:50 am    Post subject: Reply with quote

TRUSTAbyss wrote:
Look in the console folder of Abyss Web Server program folder and you will find
the favicon.ico that is used in the console area.

That's understood, and was, but I do not want to really design an icon, and do not want to use someone else's icon.

I created a text file named favicon.ico with just a tiny text in it (cetainly not in icon format).

Will that be good enough for FF (not just yesterday but for the next few releases)?
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sun Jun 11, 2006 9:50 pm    Post subject: Reply with quote

I don't know, just use whatever icon you can think of. I'm just letting you know
of what might happen if you don't have that file. I don't even use the anti-hack
ing feature to tell you the truth (Don't need it right now).
Back to top View user's profile Send private message Visit poster's website
PeterSwiss
-


Joined: 27 Feb 2006
Posts: 20
Location: Zurich, Switzerland

PostPosted: Sun Jun 11, 2006 11:45 pm    Post subject: Reply with quote

Thank you. A favicon.ico is definitely needed. I let FF figure out how it handles the invalid format.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group