Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ CMS (All) ⇒ Security :: Archives ⇒ red herring security alert emails? :: Archived


red herring security alert emails? :: Archived
Post any security related questions in here.
Please send discovered reports to security @ cpgnuke.com
Do Not post links to exploits or hacker sites - your post will be edited/deleted.
If you think you've been hacked, FIRST go through your server logs.

Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Security

Topic Archived View previous topic :: View next topic  
Author Message
lanmonkey
Nice poster
Nice poster

Offline Offline
Joined: Aug 21, 2006
Posts: 64

PostPosted: Mon Feb 12, 2007 2:51 pm
Post subject: red herring security alert emails?

I have edited my error.php file to send me emails whenever someone tries to access a blocked folder or file etc. but since then I keep getting lots of emails (about 150 a day) that look like this:

Code::
Error Code:	404 (File does not exist: 
/home/*******/public_html/coppermine/displayimage/album=7/favicon.ico)
Occurred:	Mon Feb 12 12:13:35 GMT 2007
Requested URL:	/coppermine/displayimage/album=7/favicon.ico
and
Code::
Error Code:	404 (File does not exist: 
/home/*******/public_html/coppermine/thumbnails/favicon.ico)
Occurred:	Mon Feb 12 12:13:34 GMT 2007
Requested URL:	/coppermine/thumbnails/favicon.ico
and
Code::
Error Code:	404 (File does not exist: 
/home/*******/public_html/Downloads/details/favicon.ico)
Occurred:	Mon Feb 12 12:20:27 GMT 2007
Requested URL:	/Downloads/details/favicon.ico
I think you get the idea. all the IP addresses in question appear to be from genuin users of the site. its appears that the users brownser is being dircted to look for "favicon.ico" in folders where it doesnt exist.

any ideas?


lanmonkey's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
CentOS/1.3.37 (Unix)/4.1.21/4.4.3/9.0.6.1
Back to top
View user's profile Visit poster's website
lanmonkey
Nice poster
Nice poster

Offline Offline
Joined: Aug 21, 2006
Posts: 64

PostPosted: Mon Feb 12, 2007 2:53 pm
Post subject: Re: red herring security alert emails?

aditionally I also get plenty email alerts that look like the following:

Code::
Error Code:	403 (Directory index forbidden by rule: 
/home/*******/public_html/images/avatars/)
Occurred:	Mon Feb 12 11:58:46 GMT 2007
Requested URL:	/images/avatars/

again the ip addresses apper genuine.


lanmonkey's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
CentOS/1.3.37 (Unix)/4.1.21/4.4.3/9.0.6.1
Back to top
View user's profile Visit poster's website
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Mon Feb 12, 2007 3:09 pm
Post subject: Re: red herring security alert emails?

Could not find server aim2play.org


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Beldak
Nice poster
Nice poster

Offline Offline
Joined: Jun 15, 2005
Posts: 78
Location: Edwards AFB, CA
PostPosted: Mon Feb 12, 2007 7:16 pm
Post subject: Re: red herring security alert emails?

The favicon.ico error spam happens to me also, I had to edit header.php and add BASEHREF to get them to stop.

It looked like the base dir isn't getting set correctly on some modules.

Code::
	if (file_exists($BASEHREF.'themes/'.$CPG_SESS['theme'].'/images/favicon.ico')) {
		$header .= '<link rel="shortcut icon" href="'.$BASEHREF.'themes/'.$CPG_SESS['theme'].'/images/favicon.ico" type="image/x-icon" />'."\n";
	} else if (file_exists('favicon.ico')) {
		$header .= '<link rel="shortcut icon" href="'.$BASEHREF.'favicon.ico" type="image/x-icon" />'."\n";
	}

The 403 avatar error is from having an empty avatar field but having avatar type set to say they have one. Did you upgrade from like a nuke site? If so, might need to go through db and do some cleanup.


Beldak's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.4.32 / Apache 1.3.37 / MySQL 5.0.16 / PHP 5.2.2 / Dragonfly CVS
Back to top
View user's profile Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Mon Feb 12, 2007 11:49 pm
Post subject: Re: red herring security alert emails?

hmm, error.php has its uses, but permanently on, you are equally at risk of having your mail server overloaded by malicious, frequent attacks on non-existent files/directories (been there, done that).

An alternative is to just log them, and check your log from time to time.

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
bart2
Newbie
Newbie

Offline Offline
Joined: Jan 30, 2007
Posts: 38
Location: USA
PostPosted: Fri Feb 16, 2007 7:36 am
Post subject: Re: red herring security alert emails?

Beldak wrote:
The favicon.ico error spam happens to me also, I had to edit header.php and add BASEHREF to get them to stop.

Spam? I guess you just mean frequent and unwanted alerts.

To handle predictable and innocuous 404s like this, you might consider editing error.php, placing a conditional around this line
Code::
mail($notify, "[ $sitename Error: 404 ]", $message, "From: $notifyfrom");
if (!eregi('favicon', $client['request'])) {
or
if (!eregi('avatar', $client['request'])) {

or explode() a comma-delimited string which contains the various "don't bother me about these" patterns and loop through the elements as a send-mail-or-not check


bart2's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
DragonflyCMS version 9.1.1.0
Back to top
View user's profile
Beldak
Nice poster
Nice poster

Offline Offline
Joined: Jun 15, 2005
Posts: 78
Location: Edwards AFB, CA
PostPosted: Fri Feb 16, 2007 8:09 pm
Post subject: Re: red herring security alert emails?

Actually I don't have the stuff emailed to me, but it "spams" up my error log Wink

But that's a good tip with the !eregi matches


Beldak's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.4.32 / Apache 1.3.37 / MySQL 5.0.16 / PHP 5.2.2 / Dragonfly CVS
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Security
Page 1 of 1
All times are GMT

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.
· Removed index.php depency.
· v9 fixed menu hoverings on touch screens.
· Fixed menu hoverings on touch screens.
· Fixed empty $Module object

전문보기

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy