Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Apache
Author Message
thebishop
Worker
Worker



Joined: Aug 30, 2005
Posts: 244
Location: Flying to close to the sun

PostPosted: Thu Nov 16, 2006 7:30 am Reply with quote

not sure what this means but im seeing it a lot in my error logs.

Code:


[Tue Nov 14 14:26:18 2006] [error] [client 67.149.248.70] mod_security: Warning. Pattern match "([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}" at POST_PAYLOAD [hostname "www.mysite.com"] [uri "/modules.php?name=Your_Account"]


As i am just learning about php & nuke and i know next to nothing about apache so i thought i would ask you guys if you know whats causing this.
it looks to me like something in the Y A module.

I recently added a few charactors to the module/your account/index.php in order to have users not get the invalid username error. this is what the index.php looks like after adding a space and the ( ) charactors.

"if ((!$username) || (empty($username)) || (ereg("[^a-zA-Z0-9_ ()-]",$username)))"

all help appreciated. thanks
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Thu Nov 16, 2006 7:35 am Reply with quote

maybe this helps...

http://www.ravenphpscripts.com/postt8572.html
 
View user's profile Send private message
thebishop







PostPosted: Thu Nov 16, 2006 7:49 am Reply with quote

Thanks for that link hitwalker, ill try to ask my host which is "Ipowerweb" about this. i have to say i dont really have a problem with Ipowerweb but im sure there tech support could be more knowledgeable about php/nuke.

I would be happy to move to ravens hosting if he can give me 100 gigs of space and 500 gigs of Xfer or more as long as the latency to the site is good.
 
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Thu Nov 16, 2006 9:03 am Reply with quote

Your mod_security problem is unlikely to be related to a your_account problem. Mod_security (as I understand it) is a "filter" that is applied by your host prior to a client's request ever getting to your site. So, in a case like Ipowerweb, all the sites (and there may be many) on a given server ... and probably on all their servers ... are being filtered the same way thru mod_security. You can call their tech support but it is unlikely that they will change anything for you. They take a cookie cutter approach to things and are unlikely to change mod_security for any one client.
 
View user's profile Send private message Visit poster's website
hitwalker







PostPosted: Thu Nov 16, 2006 9:43 am Reply with quote

well maybe,maybe not but the other topics deals with the same problem....and also ipowerweb , also known as ipowernothing.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Fri Nov 17, 2006 6:10 am Reply with quote

Just ran across this from another post by kguske, but not sure your host will let you do this. Try adding this code to your .htaccess:

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

However, doubtful your host will allow this and also you lost the extra "protection". Just thought I'd share it in case it actually could be useful.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
thebishop







PostPosted: Fri Nov 17, 2006 6:36 am Reply with quote

i was just wondering what the mod security warning was all about.
unless its insecure or is causing something to happen that shoudn't or causes other problems, i guess i dont need to do anything about it. Do i ?.... Confused
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Fri Nov 17, 2006 7:52 am Reply with quote

The warning is 'exactly what it says on the tin' - a url was passed to your site which matched a pattern listed in mod_security.
If you think about how Nuke Sentinel works for script blocking - it looks for matches against known hacks in the uri and if it finds them, it blocks them.

mod_security is slightly more complex and it is run at server level but the principle is similar.
 
View user's profile Send private message Send e-mail
thebishop







PostPosted: Fri Nov 17, 2006 9:39 am Reply with quote

Thanks for clearing that up for me Guardian2003. Wink
 
Guardian2003







PostPosted: Fri Nov 17, 2006 10:02 am Reply with quote

No problem.
The reason you see the errors in your server log (and no where else) is because the message is generated at server level (by the server) and not the website itself.
 
gregexp
The Mouse Is Extension Of Arm



Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Fri Nov 17, 2006 8:12 pm Reply with quote

IMO as Im no guru, but I do believe somewhere it is trying to create:
http://www.mysite.com//modules.php?name=Your_account.

Notice the 2 slashes instead of just one, Ive tested this on my system and it seems to throw up the warnings as well.
Hopefully this will help.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Apache

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©