First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 29893
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Stephen Tallowitz <dev@tallowitz.ch>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
mod_cgi.c.diff Diff for mod_cgi.c patch Thierry Carrez (RETIRED) 2004-05-07 06:14 0000 23.58 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 29893 depends on: 32271 Show dependency tree
Bug 29893 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-09-29 05:43 0000
As explained at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22030 there's
a problem with mod_cgi. Whenever a perl script tries to write more than 4096
bytes to STDERR, script execution is stopped, but the process (belonging to that
script) is not terminated. If several scripts of that sort are started then many
processes will still be in the system causing apache to refuse new connections
if max connections has been reached by those scripts. This could be used to
start a denial of service on that server.
I do not use apache myself, but have seen that no one has posted a bug on
bugs.gentoo.org. So you might want to check if this has been fixed in the ebuild
of apache.
There should be an update at the apache website in the CVS, which resolves that
problem.

Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3.




Applies to: apache 2.0.47, mod_cgi

------- Comment #1 From Marius Mauch (RETIRED) 2003-09-29 11:57:09 0000 -------
Mandrake has updated packages with the mod_cgi from apache-2.1 cvs:
http://www.mandrakesecure.net/en/advisories/advisory.php?name=MDKSA-2003:096

------- Comment #2 From Donny Davies (RETIRED) 2003-09-29 15:26:06 0000 -------
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22030

author trawick@apache.org of the mod_cgi.c mandrake included in their SRPM
notes a problem with it, and says it will be developed a bit further. 

There is another workaround however offered by bbb@cpan.org... hmm.

------- Comment #3 From solar 2003-10-15 16:13:36 0000 -------
looks like no progress is being made upstream on this bug yet..


------- Comment #4 From Donny Davies (RETIRED) 2003-10-27 15:01:14 0000 -------
Mandrake Update:

 The previous update introduced an experimental mod_cgi.c that while
 fixing the deadlock did not do so in a correct manner and it likewise
 introduced new problems with other scripts.

 These packages roll back to the original mod_cgi.c until such a time as
 the apache team have a proper fix in place.  Both Mandrake Linux 9.1
 and 9.2 are affected with this problem.

--
I knew they were going to regret going with that fix they did :-)

------- Comment #5 From solar 2003-10-29 10:12:51 0000 -------
http://bugs.gentoo.org/show_bug.cgi?id=32271

------- Comment #6 From Donny Davies (RETIRED) 2003-10-30 09:49:54 0000 -------
I think this was addressed in 2.0.48.

Anybody can confirm/deny?

------- Comment #7 From Rajiv Aaron Manglani 2003-10-31 01:09:26 0000 -------
the apache folks still have their bug open. so i do not believe that it is
addressed in 2.0.48.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22030

still waiting on upstream...

------- Comment #8 From Thierry Carrez (RETIRED) 2004-04-01 07:41:06 0000 -------
Status update :

No fix in 2.0.49, and apparently this is not top priority in Apache bugzilla. They appear to consider it more a bug than a security problem. Note that to trigger the DoS you need to install a nasty CGI on the server, this cannot be remote-triggered. Downgrading to normal prio.

-K

------- Comment #9 From Thierry Carrez (RETIRED) 2004-04-19 07:43:56 0000 -------
Status update :

A patch has been posted on Apache bugzilla entry. We should wait for the patch to be included in CVS, and then probably wait for it to be included in an official release, since this is not a serious vuln.

-K

------- Comment #10 From Thierry Carrez (RETIRED) 2004-05-07 06:14:26 0000 -------
Created an attachment (id=30926) [details]
Diff for mod_cgi.c

Status update : the patch committed to HEAD

------- Comment #11 From Thierry Carrez (RETIRED) 2004-05-07 06:16:50 0000 -------
We can apply the patch to 2.0.49 or wait for a release that would include this
patch. Given the low vuln level, I would say wait for a release.

Patch pointers :
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22030
http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/generators/mod_cgi.c

apache herd : your opinion about this ?

------- Comment #12 From Chuck Short (RETIRED) 2004-05-07 06:23:11 0000 -------
My opinnon is better to be safer then sorry.

------- Comment #13 From Thierry Carrez (RETIRED) 2004-05-15 11:19:39 0000 -------
zul : can we have a patch for 2.0.49 then ?
Thanks in advance :)

------- Comment #14 From Chuck Short (RETIRED) 2004-05-16 07:04:44 0000 -------
Oh I guess so. Added patch.

------- Comment #15 From Thierry Carrez (RETIRED) 2004-05-18 06:33:17 0000 -------
Thanks zul !
Ready for a GLSA decision...
s390 : please mark 2.0.49-r1 stable if you want to benefit from this GLSA.

------- Comment #16 From Thierry Carrez (RETIRED) 2004-05-18 07:50:50 0000 -------
Closed without GLSA : it's more a bug than a security issue.

First Last Prev Next    No search results available      Search page      Enter new bug