Bug 55611 (CVE-2004-0174) - VUL-0: CVE-2004-0174: apache-1.3 security issues (fixes from 1.3.31)
Summary: VUL-0: CVE-2004-0174: apache-1.3 security issues (fixes from 1.3.31)
Status: RESOLVED FIXED
: CVE-2004-0113 (view as bug list)
Alias: CVE-2004-0174
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: All Linux
: P3 - Medium : Major
Target Milestone: ---
Assignee: Thomas Biege
QA Contact: Security Team bot
URL:
Whiteboard: CVE-2004-0174: CVSS v2 Base Score: 5....
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-14 23:04 UTC by Peter Poeml
Modified: 2021-10-11 13:57 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
patchinfo.apache.sles8.s390x (612 bytes, text/plain)
2004-05-18 20:08 UTC, Thomas Biege
Details
patchinfo.apache.sles8.s390x (612 bytes, text/plain)
2004-05-18 20:09 UTC, Thomas Biege
Details
patchinfo.apache.sles7 (500 bytes, text/plain)
2004-05-18 20:09 UTC, Thomas Biege
Details
patchinfo.apache.sles7.s390x (682 bytes, text/plain)
2004-05-18 20:10 UTC, Thomas Biege
Details
patchinfo.apache.sles8 (552 bytes, text/plain)
2004-05-18 20:18 UTC, Thomas Biege
Details
patchinfo.apache.sles7.s390x (new) (670 bytes, text/plain)
2004-05-18 20:18 UTC, Thomas Biege
Details
patchinfo.apache.sles8.s390x (new) (600 bytes, text/plain)
2004-05-18 20:19 UTC, Thomas Biege
Details
patchinfo-box.apache.8.0 (643 bytes, text/plain)
2004-05-18 20:20 UTC, Thomas Biege
Details
patchinfo-box.apache (547 bytes, text/plain)
2004-05-18 20:21 UTC, Thomas Biege
Details
new patchinfo for all box products (711 bytes, text/plain)
2004-05-18 21:51 UTC, Peter Poeml
Details
new patchinfo for all maintained products (998 bytes, text/plain)
2004-05-18 22:05 UTC, Peter Poeml
Details
new patchinfo with mod_ssl fix added (box) (845 bytes, text/plain)
2004-05-19 17:51 UTC, Peter Poeml
Details
new patchinfo with mod_ssl fix added (1.04 KB, text/plain)
2004-05-19 17:52 UTC, Peter Poeml
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Poeml 2004-05-14 23:04:30 UTC
apache 1.3.31 brings three new security fixes that we don't have yet:


 1) CAN-2003-0987 (cve.mitre.org)
    In mod_digest, verify whether the nonce returned in the client response is one we issued ourselves. This problem does not affect mod_auth_digest.
 2) CAN-2003-0020 (cve.mitre.org)
    Escape arbitrary data before writing into the errorlog.
 3) CAN-2004-0174 (cve.mitre.org)
    Fix starvation issue on listening sockets where a short-lived connection on a rarely-accessed listening socket will cause a child to hold the accept mutex
    and block out new connections until another connection arrives on that rarely-accessed listening socket.
 4) CAN-2003-0993 (cve.mitre.org)
    Fix parsing of Allow/Deny rules using IP addresses without a netmask; issue is only known to affect big-endian 64-bit platforms


The latter, 4), we have already fixed recently. The others I am going to
backport.
Comment 1 Peter Poeml 2004-05-14 23:04:30 UTC
<!-- SBZ_reproduce  -->
http://www.apache.org/dist/httpd/Announcement.html
Comment 2 Roman Drahtmueller 2004-05-17 21:51:39 UTC
Do you have an estimate on this?
And, more important: Will it be fixed in SLES9?
Comment 3 Peter Poeml 2004-05-17 22:18:41 UTC
IMO, backporting the fix for CAN-2003-0020 to apache < 1.3.25 is not worth the time, because   - the escaping of the error-log which was added with 1.3.31 is based on    escaping functions used with the access-log which were added with    1.3.25, and it wouldn't work without the latter being backported too    - we didn't to backport the access log escaping since two years   - it is not fixing a security vulnerability in apache itself. It is    only guarding against possible vulnerabilities in terminal emulators    that are used when viewing apache error logs   - only SLES7 has a version < 1.3.25 and would need this extra work.    I'm not sure how much longer they are going to be maintained?  Security team, what do you think? 
Comment 4 Peter Poeml 2004-05-17 22:19:53 UTC
[okay, here's my comment again. mid-air collision seems to break the
HTML form...]

IMO, backporting the fix for CAN-2003-0020 to apache < 1.3.25 is not
worth the time, because

 - the escaping of the error-log which was added with 1.3.31 is based on
   escaping functions used with the access-log which were added with
   1.3.25, and it wouldn't work without the latter being backported too

 - we didn't to backport the access log escaping since two years

 - it is not fixing a security vulnerability in apache itself. It is
   only guarding against possible vulnerabilities in terminal emulators
   that are used when viewing apache error logs

 - only SLES7 has a version < 1.3.25 and would need this extra work.
   I'm not sure how much longer they are going to be maintained?

Security team, what do you think?

Comment 5 Peter Poeml 2004-05-17 22:21:02 UTC
ad comment #2: I have already submitted a fixed package for SLES9
earlier, and I'll finish the rest today. 
Comment 6 Peter Poeml 2004-05-17 23:24:48 UTC
Hhm, the changes that came with 1.3.25 do not just escape stuff before
it is written to the log files, but actually hook in earlier: they add
checks to the request line syntax. ...This is what I find when digging
in the CVS about the required change:

http://cvs.apache.org/viewcvs.cgi/apache-1.3/src/include/httpd.h?r1=1.360&r2=1.361
http://cvs.apache.org/viewcvs.cgi/apache-1.3/src/main/gen_test_char.c?r1=1.7&r2=1.8
http://cvs.apache.org/viewcvs.cgi/apache-1.3/src/main/http_protocol.c?r1=1.314&r2=1.315
http://cvs.apache.org/viewcvs.cgi/apache-1.3/src/main/util.c?r1=1.203&r2=1.205
http://cvs.apache.org/viewcvs.cgi/apache-1.3/src/modules/standard/mod_log_config.c?r1=1.87&r2=1.88

I'll have a further look.
Comment 7 Peter Poeml 2004-05-17 23:44:19 UTC
With those, a backport seems feasible. 
Comment 8 Peter Poeml 2004-05-18 03:38:43 UTC
Okay, apart from backporting the mod_digest fix for 1.3.19 (sles7) I'm
done. I'm working on that.
Comment 9 Peter Poeml 2004-05-18 07:28:37 UTC
I now submitted the following fixed packages:

.../7.2/all/apache              -> /work/src/done/SLES7
.../7.2/arch/sles-i386/apache   -> /work/src/done/SLES7/sles-i386
.../7.2/arch/sles-s390x/apache  -> /work/src/done/SLES7-S390X
.../7.3/all/apache              -> /work/src/done/SLES7-PPC
.../8.0/all/apache              -> /work/src/done/8.0
.../8.1/UL/all/apache           -> /work/src/done/8.1
.../8.2/all/apache              -> /work/src/done/8.2
.../9.0/all/apache              -> /work/src/done/9.0

Comment 10 Thomas Biege 2004-05-18 15:43:54 UTC
Thank you! I'll reassign it to us... (or is something missing?) 
Comment 11 Peter Poeml 2004-05-18 15:55:06 UTC
If you want to go ahead with the patchinfos: you're welcome :)

Two things to remember:
 - Bug 54600, where previous updates are missing for SLES8. The
   patchinfo files should probably mention what was fixed in the
   past
 - patchinfo for the box needs to include 9.1. A fixed 9.1 package was 
   also submitted, as mentioned above. It's also still waiting to be
   checked in under /work/src/done.
That's it I think.
Comment 12 Thomas Biege 2004-05-18 18:12:57 UTC
*** Bug 50450 has been marked as a duplicate of this bug. ***
Comment 13 Thomas Biege 2004-05-18 18:13:19 UTC
Peter, this update replaces bug 50450, right? 
 
Old package gots rejected: 
Date: Fri, 14 May 2004 15:10:52 +0200 (CEST) 
From: patch_system@suse.de 
Reply-To: patch-management@suse.de 
To: patch-management@suse.de, poeml@suse.de 
Subject: [pm] [patchinfo] ID 61cfb952b4858a2d106efe4c17a6fb3a has been 
rejected 
 
I'll make a dup resolv on the old one. 
Comment 14 Peter Poeml 2004-05-18 18:17:18 UTC
Exactly, that's the one that was supposed to fix CAN-2003-0993 and was
rejected since it's obsoleted now.
Comment 15 Thomas Biege 2004-05-18 18:34:16 UTC
Peter, you said a backport of the access-log code was doable, so was it 
submitted too? 
 
I'll attach the patchinfo files ASAP. 
 
Peter, do you have a list of old bugs that I can add to the sles8 
patchinfo? 
Comment 16 Thomas Biege 2004-05-18 18:42:25 UTC
This one is already fixed: 
 3) CAN-2004-0174 (cve.mitre.org) 
    Fix starvation issue on listening sockets where a short-lived connection 
    on a rarely-accessed listening socket will cause a child to hold the 
    accept mutex and block out new connections until another connection 
    arrives on that rarely-accessed listening socket. 
Comment 17 Peter Poeml 2004-05-18 18:50:45 UTC
ad comment #15: yes, I backported that, it is added as an additional
patch to apache 1.3.19-1.3.24 (which corresponds to the SLES7 and 8.0
packages). Thus, all four issues are fixed.

+- for the CAN-2003-0020 fix, add apache-1.3.24-escape_requests.dif (backport
+  from 1.3.25): stricter check to the request line syntax


ad comment #16: the starvation issue had been fixed for apache2 only, so
far.
Comment 18 Peter Poeml 2004-05-18 18:54:41 UTC
about the missing fix in SLES8, see Bug 54600, I just updated it. Hm, I
didn't check the maintenance web for completeness of SLES7 updates yet.
Comment 19 Thomas Biege 2004-05-18 20:08:40 UTC
Created attachment 19816 [details]
patchinfo.apache.sles8.s390x
Comment 20 Thomas Biege 2004-05-18 20:09:09 UTC
Created attachment 19817 [details]
patchinfo.apache.sles8.s390x
Comment 21 Thomas Biege 2004-05-18 20:09:49 UTC
Created attachment 19818 [details]
patchinfo.apache.sles7
Comment 22 Thomas Biege 2004-05-18 20:10:22 UTC
Created attachment 19819 [details]
patchinfo.apache.sles7.s390x
Comment 23 Thomas Biege 2004-05-18 20:15:53 UTC
Comment on attachment 11816 [details]
Patch to change ext2/3 deafults

will be replaced
Comment 24 Thomas Biege 2004-05-18 20:16:04 UTC
Comment on attachment 11817 [details]
crashing diagram

will be replaced
Comment 25 Thomas Biege 2004-05-18 20:17:06 UTC
Comment on attachment 11819 [details]
new patch using right diff

will be replaced
Comment 26 Thomas Biege 2004-05-18 20:18:16 UTC
Created attachment 19822 [details]
patchinfo.apache.sles8
Comment 27 Thomas Biege 2004-05-18 20:18:47 UTC
Created attachment 19823 [details]
patchinfo.apache.sles7.s390x (new)
Comment 28 Thomas Biege 2004-05-18 20:19:19 UTC
Created attachment 19824 [details]
patchinfo.apache.sles8.s390x (new)
Comment 29 Thomas Biege 2004-05-18 20:20:54 UTC
Created attachment 19825 [details]
patchinfo-box.apache.8.0
Comment 30 Thomas Biege 2004-05-18 20:21:25 UTC
Created attachment 19826 [details]
patchinfo-box.apache
Comment 31 Thomas Biege 2004-05-18 20:23:39 UTC
Ok, this update is a little patchinfo nightmare. :) 
 
Please check each file before submitting it. 
Comment 32 Peter Poeml 2004-05-18 21:46:21 UTC
Checking... 

slight misunderstanding: CAN-2003-0020 (the escaping business) is fixed
in _all_ packages, not only 8.0 and older. The latter just needed
another fix to make it possible (no CVE number was ever assigned to that
one afaik)

I'll fix the patchinfos...
Comment 33 Peter Poeml 2004-05-18 21:51:22 UTC
Created attachment 19841 [details]
new patchinfo for all box products
Comment 34 Peter Poeml 2004-05-18 22:02:22 UTC
The SLES7 maintenance web seems to miss the same update as SLES8 (Bug
54600).

I think I can make one patchinfo for them all...
Comment 35 Peter Poeml 2004-05-18 22:05:25 UTC
Created attachment 19844 [details]
new patchinfo for all maintained products
Comment 36 Peter Poeml 2004-05-18 22:10:38 UTC
Should have done 'mv patchinfo.apache.sles8 patchinfo.apache' before
attaching the last file...

I have now submitted those two patchinfo files.
Comment 37 Peter Poeml 2004-05-19 03:15:38 UTC
removed them again, since another patch was added, see Bug 55603
Comment 38 Peter Poeml 2004-05-19 17:48:24 UTC
Correction: bug 55791 is the one that I intended to refer to in my last
comment
Comment 39 Peter Poeml 2004-05-19 17:51:43 UTC
Created attachment 19905 [details]
new patchinfo with mod_ssl fix added (box)
Comment 40 Peter Poeml 2004-05-19 17:52:30 UTC
Created attachment 19906 [details]
new patchinfo with mod_ssl fix added
Comment 41 Peter Poeml 2004-05-19 17:53:25 UTC
submitted to /work/src/done/PATCHINFO
I re-assign to security-team for further processing then.
Comment 42 Thomas Biege 2004-05-21 19:02:18 UTC
Thanks! 
Comment 43 Sebastian Krahmer 2004-06-04 15:45:27 UTC
Approved packages. have been annoucned in section 2 of last advisory.

Comment 44 Thomas Biege 2009-10-13 20:22:22 UTC
CVE-2004-0174: CVSS v2 Base Score: 5.0 (AV:N/AC:L/Au:N/C:N/I:N/A:P)