Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 10th, 2001, 03:45 PM
Michael Caplan Michael Caplan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 14 Michael Caplan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Security issue with apache

Hello,

I am very new to Apache administration, and am looking for some feedback on what I think is a security issue. I have been frequently dealing with httpd maxing out at well over 100 threads, bringing my system to a near standstill. My error log confirms that apache is being maxed out, but also turns up some wierd stuff. Actually, when httpd does max out, the error log pumps out pages of this:

httpd in free(): warning: recursive call.

I have looked around to find an explination for this warning, and have come up empty handed. Any ideas?

Further, the server has been attacked in the past with someone running some sort of "hammer" script on selected pages. Is there away of protecting apache from such types of attacks?

Any thoughts is greatly appreciated.

Regards,

Michael


FYI: I am running

FreeBSD 4.1.1-STABLE
Apache Version Apache/1.3.17
Apache Release 10317100
Apache API Version 19990320
User/Group nobody(65534)/65534
Max Requests Per Child: 30
Keep Alive: on
Max Per Connection: 100
Timeouts Connection: 300
Keep-Alive: 15
Server Root /usr/local/apache
Loaded Modules mod_perl, mod_php4, mod_setenvif, mod_auth, mod_access, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, http_core

Reply With Quote
  #2  
Old September 10th, 2001, 08:33 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> httpd in free(): warning: recursive call

This appears to be a bug in mod_perl. Do a search in google to find out more. If you are running FreeBSD, don't even install perl 5.6.0, stick with 5.005_03. FreeBSD relies on Perl heavily and there are way too many issues need to be resolved before they will upgrade to 5.6.0.

>> Is there away of protecting apache from such types of attacks?

Trust no one and don't host for others. To minimize the damage, limit the number of max memory use. Start here -> http://httpd.apache.org/docs/mod/core.html#rlimitmem

Reply With Quote
  #3  
Old September 10th, 2001, 09:00 PM
Michael Caplan Michael Caplan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 14 Michael Caplan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the reply. I am running:

This is perl, version 5.005_03 built for i386-freebsd

What makes you think that httpd in free(): warning: recursive call has to do with mod perl?

Also, I have been getting another similar error:

httpd in malloc(): warning: recursive call.

What do you make of this?

Thanks for the tip on mod_core.

Regards,

Michael

Quote:
Originally posted by freebsd
>> httpd in free(): warning: recursive call

This appears to be a bug in mod_perl. Do a search in google to find out more. If you are running FreeBSD, don't even install perl 5.6.0, stick with 5.005_03. FreeBSD relies on Perl heavily and there are way too many issues need to be resolved before they will upgrade to 5.6.0.

>> Is there away of protecting apache from such types of attacks?

Trust no one and don't host for others. To minimize the damage, limit the number of max memory use. Start here -> http://httpd.apache.org/docs/mod/core.html#rlimitmem

Reply With Quote
  #4  
Old September 10th, 2001, 09:09 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> What makes you think that httpd in free(): warning: recursive call has to do with mod perl?

Searched google as well as Apache mailing list and that came up with a known bugs in mod_perl. Needless to say, you can also do a search yourself.

Reply With Quote
  #5  
Old September 11th, 2001, 01:50 AM
pippo's Avatar
pippo pippo is offline
A PAtCHy sErver
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Italy
Posts: 410 pippo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Just a note,
maybe you already know that

malloc(), is a function that ley you allocate dynamic memory

free(), is a function that let you 'deallocate' or better free the dynamic memory block allocated with malloc

As I said this will note help you, but think interesting to say.

Reply With Quote
  #6  
Old September 12th, 2001, 09:58 AM
Michael Caplan Michael Caplan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 14 Michael Caplan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
pippo,

thanks for the note. It helps allot.

Regards,

Michael

Quote:
Originally posted by pippo
Just a note,
maybe you already know that

malloc(), is a function that ley you allocate dynamic memory

free(), is a function that let you 'deallocate' or better free the dynamic memory block allocated with malloc

As I said this will note help you, but think interesting to say.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Security issue with apache


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway